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

Side by Side Diff: Source/web/ServiceWorkerGlobalScopeProxy.h

Issue 1008533005: Initial implementation of stashed message ports, blink side (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 5 years, 7 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 virtual void dispatchActivateEvent(int) override; 72 virtual void dispatchActivateEvent(int) override;
73 virtual void dispatchCrossOriginConnectEvent(int, const WebCrossOriginServic eWorkerClient&) override; 73 virtual void dispatchCrossOriginConnectEvent(int, const WebCrossOriginServic eWorkerClient&) override;
74 virtual void dispatchCrossOriginMessageEvent(const WebCrossOriginServiceWork erClient&, const WebString& message, const WebMessagePortChannelArray&) override ; 74 virtual void dispatchCrossOriginMessageEvent(const WebCrossOriginServiceWork erClient&, const WebString& message, const WebMessagePortChannelArray&) override ;
75 virtual void dispatchFetchEvent(int, const WebServiceWorkerRequest&) overrid e; 75 virtual void dispatchFetchEvent(int, const WebServiceWorkerRequest&) overrid e;
76 virtual void dispatchGeofencingEvent(int, WebGeofencingEventType, const WebS tring& regionID, const WebCircularGeofencingRegion&) override; 76 virtual void dispatchGeofencingEvent(int, WebGeofencingEventType, const WebS tring& regionID, const WebCircularGeofencingRegion&) override;
77 virtual void dispatchInstallEvent(int) override; 77 virtual void dispatchInstallEvent(int) override;
78 virtual void dispatchMessageEvent(const WebString& message, const WebMessage PortChannelArray&) override; 78 virtual void dispatchMessageEvent(const WebString& message, const WebMessage PortChannelArray&) override;
79 virtual void dispatchNotificationClickEvent(int, int64_t notificationID, con st WebNotificationData&) override; 79 virtual void dispatchNotificationClickEvent(int, int64_t notificationID, con st WebNotificationData&) override;
80 virtual void dispatchPushEvent(int, const WebString& data) override; 80 virtual void dispatchPushEvent(int, const WebString& data) override;
81 virtual void dispatchSyncEvent(int) override; 81 virtual void dispatchSyncEvent(int) override;
82 virtual void addStashedMessagePorts(const WebMessagePortChannelArray&, const WebVector<WebString>& webChannelNames) override;
82 83
83 // WorkerReportingProxy overrides: 84 // WorkerReportingProxy overrides:
84 virtual void reportException(const String& errorMessage, int lineNumber, int columnNumber, const String& sourceURL, int exceptionId) override; 85 virtual void reportException(const String& errorMessage, int lineNumber, int columnNumber, const String& sourceURL, int exceptionId) override;
85 virtual void reportConsoleMessage(PassRefPtrWillBeRawPtr<ConsoleMessage>) ov erride; 86 virtual void reportConsoleMessage(PassRefPtrWillBeRawPtr<ConsoleMessage>) ov erride;
86 virtual void postMessageToPageInspector(const String&) override; 87 virtual void postMessageToPageInspector(const String&) override;
87 virtual void postWorkerConsoleAgentEnabled() override { } 88 virtual void postWorkerConsoleAgentEnabled() override { }
88 virtual void didEvaluateWorkerScript(bool success) override; 89 virtual void didEvaluateWorkerScript(bool success) override;
89 virtual void workerGlobalScopeStarted(WorkerGlobalScope*) override; 90 virtual void workerGlobalScopeStarted(WorkerGlobalScope*) override;
90 virtual void workerGlobalScopeClosed() override; 91 virtual void workerGlobalScopeClosed() override;
91 virtual void willDestroyWorkerGlobalScope() override; 92 virtual void willDestroyWorkerGlobalScope() override;
92 virtual void workerThreadTerminated() override; 93 virtual void workerThreadTerminated() override;
93 94
94 private: 95 private:
95 ServiceWorkerGlobalScopeProxy(WebEmbeddedWorkerImpl&, Document&, WebServiceW orkerContextClient&); 96 ServiceWorkerGlobalScopeProxy(WebEmbeddedWorkerImpl&, Document&, WebServiceW orkerContextClient&);
96 97
97 WebEmbeddedWorkerImpl& m_embeddedWorker; 98 WebEmbeddedWorkerImpl& m_embeddedWorker;
98 Document& m_document; 99 Document& m_document;
99 100
100 WebServiceWorkerContextClient& m_client; 101 WebServiceWorkerContextClient& m_client;
101 102
102 ServiceWorkerGlobalScope* m_workerGlobalScope; 103 ServiceWorkerGlobalScope* m_workerGlobalScope;
103 }; 104 };
104 105
105 } // namespace blink 106 } // namespace blink
106 107
107 #endif // ServiceWorkerGlobalScopeProxy_h 108 #endif // ServiceWorkerGlobalScopeProxy_h
OLDNEW
« no previous file with comments | « Source/web/ServiceWorkerGlobalScopeClientImpl.cpp ('k') | Source/web/ServiceWorkerGlobalScopeProxy.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698