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); |