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

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

Issue 1893983002: Simplify handling of Transferable objects while (de)serializing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove Transferable.cpp, not needed after all. Created 4 years, 8 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/DOMWindow.h
diff --git a/third_party/WebKit/Source/core/frame/DOMWindow.h b/third_party/WebKit/Source/core/frame/DOMWindow.h
index bb4f489001611124bdcab936d032efdf677c3665..5876e09197d1e90e48ed1196299187be99deb2cd 100644
--- a/third_party/WebKit/Source/core/frame/DOMWindow.h
+++ b/third_party/WebKit/Source/core/frame/DOMWindow.h
@@ -5,10 +5,10 @@
#ifndef DOMWindow_h
#define DOMWindow_h
+#include "bindings/core/v8/Transferables.h"
#include "core/CoreExport.h"
#include "core/events/EventTarget.h"
#include "core/frame/DOMWindowBase64.h"
-#include "core/frame/Location.h"
#include "platform/heap/Handle.h"
#include "platform/scroll/ScrollableArea.h"
@@ -31,6 +31,7 @@ class FrameRequestCallback;
class History;
class IdleRequestCallback;
class IdleRequestOptions;
+class Location;
class LocalDOMWindow;
class MediaQueryList;
class Navigator;
@@ -40,8 +41,6 @@ class SerializedScriptValue;
class Storage;
class StyleMedia;
-typedef HeapVector<Member<MessagePort>, 1> MessagePortArray;
-
class CORE_EXPORT DOMWindow : public EventTargetWithInlineData, public DOMWindowBase64 {
DEFINE_WRAPPERTYPEINFO();
public:
@@ -185,7 +184,7 @@ public:
// window[index]...
DOMWindow* anonymousIndexedGetter(uint32_t) const;
- void postMessage(PassRefPtr<SerializedScriptValue> message, const MessagePortArray*, const String& targetOrigin, LocalDOMWindow* source, ExceptionState&);
+ void postMessage(PassRefPtr<SerializedScriptValue> message, const MessagePortArray&, const String& targetOrigin, LocalDOMWindow* source, ExceptionState&);
String sanitizedCrossDomainAccessErrorMessage(const LocalDOMWindow* callingWindow) const;
String crossDomainAccessErrorMessage(const LocalDOMWindow* callingWindow) const;

Powered by Google App Engine
This is Rietveld 408576698