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

Unified Diff: public/web/WebServiceWorkerContextProxy.h

Issue 61763004: Add EmbeddedWorker interfaces in Blink API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: updated Created 7 years, 1 month 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: public/web/WebServiceWorkerContextProxy.h
diff --git a/public/platform/WebContentDecryptionModule.h b/public/web/WebServiceWorkerContextProxy.h
similarity index 73%
copy from public/platform/WebContentDecryptionModule.h
copy to public/web/WebServiceWorkerContextProxy.h
index d0e54734f70ed1624b0098cb4f88ab51790d064c..d011778335492029d5faa6375a75cec86996d509 100644
--- a/public/platform/WebContentDecryptionModule.h
+++ b/public/web/WebServiceWorkerContextProxy.h
@@ -28,21 +28,24 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebContentDecryptionModule_h
-#define WebContentDecryptionModule_h
-
-#include "public/platform/WebContentDecryptionModuleSession.h"
+#ifndef WebServiceWorkerContextProxy_h
+#define WebServiceWorkerContextProxy_h
namespace blink {
-class BLINK_PLATFORM_EXPORT WebContentDecryptionModule {
+// A proxy interface to talk to the worker's GlobalScope implementation.
+// All methods of this class must be called on the worker thread.
+class WebServiceWorkerContextProxy {
public:
- virtual ~WebContentDecryptionModule();
+ // FIXME: Add service-worker specific methods.
- // Must return non-null.
- virtual WebContentDecryptionModuleSession* createSession(WebContentDecryptionModuleSession::Client*) = 0;
+ virtual void resumeWorkerContext() { }
+ virtual void attachDevTools() { }
+ virtual void reattachDevTools(const WebString& savedState) { }
+ virtual void detachDevTools() { }
+ virtual void dispatchDevToolsMessage(const WebString&) { }
};
} // namespace blink
-#endif // WebContentDecryptionModule_h
+#endif // WebServiceWorkerContextProxy_h
« public/web/WebEmbeddedWorkerStartData.h ('K') | « public/web/WebServiceWorkerContextClient.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698