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

Unified Diff: Source/modules/serviceworkers/ServiceWorkerGlobalScope.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/modules.gypi ('k') | Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/serviceworkers/ServiceWorkerGlobalScope.h
diff --git a/Source/modules/serviceworkers/ServiceWorkerGlobalScope.h b/Source/modules/serviceworkers/ServiceWorkerGlobalScope.h
index f14f9506e012b7fe881e463cfe21cd1b94daa519..fcd3d1816c319af2d8f159a2f80d2e3dc976d4de 100644
--- a/Source/modules/serviceworkers/ServiceWorkerGlobalScope.h
+++ b/Source/modules/serviceworkers/ServiceWorkerGlobalScope.h
@@ -47,6 +47,7 @@ class ScriptState;
class ServiceWorkerClients;
class ServiceWorkerRegistration;
class ServiceWorkerThread;
+class StashedPortCollection;
class WaitUntilObserver;
class WebServiceWorkerRegistration;
class WorkerThreadStartupData;
@@ -67,6 +68,7 @@ public:
// ServiceWorkerGlobalScope.idl
ServiceWorkerClients* clients();
ServiceWorkerRegistration* registration();
+ PassRefPtrWillBeRawPtr<StashedPortCollection> ports();
ScriptPromise fetch(ScriptState*, const RequestInfo&, const Dictionary&, ExceptionState&);
@@ -102,6 +104,7 @@ private:
PersistentWillBeMember<ServiceWorkerClients> m_clients;
PersistentWillBeMember<ServiceWorkerRegistration> m_registration;
+ RefPtrWillBeMember<StashedPortCollection> m_ports;
bool m_didEvaluateScript;
bool m_hadErrorInTopLevelEventHandler;
unsigned m_eventNestingLevel;
@@ -110,6 +113,8 @@ private:
size_t m_scriptCachedMetadataTotalSize;
};
+DEFINE_TYPE_CASTS(ServiceWorkerGlobalScope, ExecutionContext, context, context->isServiceWorkerGlobalScope(), context.isServiceWorkerGlobalScope());
+
} // namespace blink
#endif // ServiceWorkerGlobalScope_h
« no previous file with comments | « Source/modules/modules.gypi ('k') | Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698