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

Unified Diff: Source/modules/serviceworkers/ServiceWorker.h

Issue 185643009: Implement ServiceWorker::postMessage() [Blink] (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Pass raw pointer -> PassOwnPtr Created 6 years, 9 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 | « Source/core/dom/MessagePort.cpp ('k') | Source/modules/serviceworkers/ServiceWorker.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/serviceworkers/ServiceWorker.h
diff --git a/Source/modules/serviceworkers/ServiceWorker.h b/Source/modules/serviceworkers/ServiceWorker.h
index ff1e849158426d1f5d88fdec02e3e7901bec97d2..d0eeb1060f73db3e0658f25358cc8289d57015f7 100644
--- a/Source/modules/serviceworkers/ServiceWorker.h
+++ b/Source/modules/serviceworkers/ServiceWorker.h
@@ -31,6 +31,7 @@
#ifndef ServiceWorker_h
#define ServiceWorker_h
+#include "bindings/v8/SerializedScriptValue.h"
#include "public/platform/WebServiceWorker.h"
#include "wtf/OwnPtr.h"
#include "wtf/PassOwnPtr.h"
@@ -59,6 +60,8 @@ public:
~ServiceWorker() { }
+ void postMessage(PassRefPtr<SerializedScriptValue> message, const MessagePortArray*, ExceptionState&);
+
private:
explicit ServiceWorker(PassOwnPtr<blink::WebServiceWorker>);
« no previous file with comments | « Source/core/dom/MessagePort.cpp ('k') | Source/modules/serviceworkers/ServiceWorker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698