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

Unified Diff: content/common/webmessageportchannel_impl.h

Issue 7477027: Support Transferable objects (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Update for interface changes. Created 9 years, 4 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
« no previous file with comments | « no previous file | content/common/webmessageportchannel_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/webmessageportchannel_impl.h
diff --git a/content/common/webmessageportchannel_impl.h b/content/common/webmessageportchannel_impl.h
index adde1a4f2b4123a0d1d9c68f734d364a6cf05534..9ac0e98d0c2169bcfbf95d4108803dcc94cd5f48 100644
--- a/content/common/webmessageportchannel_impl.h
+++ b/content/common/webmessageportchannel_impl.h
@@ -16,6 +16,16 @@
#include "ipc/ipc_channel.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebMessagePortChannel.h"
+#ifndef WebTransferableReceipt_h
+#ifndef STUB_WebTransferableReceipt_h
+#define STUB_WebTransferableReceipt_h
+namespace WebKit {
+typedef WebMessagePortChannel WebTransferableReceipt;
+typedef WebVector<WebTransferableReceipt*> WebTransferableReceiptArray;
+} // namespace WebKit
+#endif // STUB_WebTransferableReceipt_h
+#endif // WebTransferableReceipt_h
+
// This is thread safe.
class WebMessagePortChannelImpl
: public WebKit::WebMessagePortChannel,
@@ -39,9 +49,15 @@ class WebMessagePortChannelImpl
virtual void destroy();
virtual void entangle(WebKit::WebMessagePortChannel* channel);
virtual void postMessage(const WebKit::WebString& message,
- WebKit::WebMessagePortChannelArray* channels);
+ WebKit::WebTransferableReceiptArray* receipts);
+#ifndef WebTransferableReceipt_h
virtual bool tryGetMessage(WebKit::WebString* message,
- WebKit::WebMessagePortChannelArray& channels);
+ WebKit::WebTransferableReceiptArray& receipts);
+#else
+ virtual bool tryGetMessageWithNewReceipts(
+ WebKit::WebString* message,
+ WebKit::WebTransferableReceiptArray& receipts);
+#endif
void Init();
void Entangle(scoped_refptr<WebMessagePortChannelImpl> channel);
« no previous file with comments | « no previous file | content/common/webmessageportchannel_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698