diff --git a/CefSharp/CefFormsWebBrowser.cpp b/CefSharp/CefFormsWebBrowser.cpp index 77d837b26..c5c5def7c 100644 --- a/CefSharp/CefFormsWebBrowser.cpp +++ b/CefSharp/CefFormsWebBrowser.cpp @@ -1,6 +1,7 @@ #include "stdafx.h" #include "CefFormsWebBrowser.h" +#include "ScriptException.h" using namespace System::Drawing; diff --git a/CefSharp/CefSharp.h b/CefSharp/CefSharp.h index 1787cb321..e304ff8a3 100644 --- a/CefSharp/CefSharp.h +++ b/CefSharp/CefSharp.h @@ -49,7 +49,7 @@ namespace CefSharp { String^ get() { - return "trunk r293"; + return "trunk r391"; } } @@ -57,7 +57,7 @@ namespace CefSharp { String^ get() { - return "trunk r102269"; + return "trunk r110703"; } } diff --git a/CefSharp/CefSharp.vcproj b/CefSharp/CefSharp.vcproj index 5a43e3a56..179e31fd0 100644 --- a/CefSharp/CefSharp.vcproj +++ b/CefSharp/CefSharp.vcproj @@ -258,6 +258,10 @@ RelativePath=".\SchemeHandler.cpp" > + + @@ -364,6 +368,10 @@ RelativePath=".\SchemeHandler.h" > + + diff --git a/CefSharp/Request.cpp b/CefSharp/Request.cpp index 5e525fe55..0487ba1cc 100644 --- a/CefSharp/Request.cpp +++ b/CefSharp/Request.cpp @@ -52,11 +52,9 @@ namespace CefSharp { CefString name = toNative(pair->Key); CefString value = toNative(pair->Value); - hm[name] = value; + hm.insert(std::make_pair(name, value)); } _wrappedRequest->SetHeaderMap(hm); } - - } \ No newline at end of file diff --git a/CefSharp/ScriptException.cpp b/CefSharp/ScriptException.cpp new file mode 100644 index 000000000..0d39ff256 --- /dev/null +++ b/CefSharp/ScriptException.cpp @@ -0,0 +1,5 @@ +#include "stdafx.h" + +namespace CefSharp +{ +} \ No newline at end of file diff --git a/CefSharp/ScriptException.h b/CefSharp/ScriptException.h new file mode 100644 index 000000000..0f7daaf31 --- /dev/null +++ b/CefSharp/ScriptException.h @@ -0,0 +1,28 @@ +#include "stdafx.h" +#pragma once + +using namespace System; +using namespace System::Runtime::Serialization; + +namespace CefSharp +{ + public ref class ScriptException : public Exception + { + public: ScriptException() + : Exception() + {} + + public: ScriptException(String^ message) + : Exception(message) + {} + + public: ScriptException(String^ message, Exception^ innerException) + : Exception(message, innerException) + {} + + public: ScriptException(SerializationInfo^ info, StreamingContext context) + : Exception(info, context) + {} + }; + +} \ No newline at end of file