Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Unified Diff: third_party/WebKit/Source/core/frame/Location.h

Issue 2640123006: Use the current context as the creation context for cross-origin objects. (Closed)
Patch Set: Tweak Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/frame/Location.h
diff --git a/third_party/WebKit/Source/core/frame/Location.h b/third_party/WebKit/Source/core/frame/Location.h
index 2618f7902d3610eb1c71ca63c432991a7089bb46..a075dcaa693c62214f0e821d11aa1a7723cef817 100644
--- a/third_party/WebKit/Source/core/frame/Location.h
+++ b/third_party/WebKit/Source/core/frame/Location.h
@@ -34,6 +34,7 @@
#include "core/CoreExport.h"
#include "core/dom/DOMStringList.h"
#include "wtf/text/WTFString.h"
+#include <v8/include/v8.h>
namespace blink {
@@ -117,6 +118,9 @@ class CORE_EXPORT Location final : public GarbageCollected<Location>,
// a hook to change the string conversion behavior of location objects.
ScriptValue valueOf(const ScriptValue& thisObject) { return thisObject; }
+ // v8 wrapper used only for cross-origin accesses.
+ v8::Local<v8::Object> crossOriginWrapper(v8::Isolate*);
+
DECLARE_VIRTUAL_TRACE();
private:
@@ -132,6 +136,7 @@ class CORE_EXPORT Location final : public GarbageCollected<Location>,
const KURL& url() const;
Member<Frame> m_frame;
+ v8::Persistent<v8::Object> m_crossOriginWrapper;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698