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

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: Created 5 years, 8 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
Index: Source/modules/serviceworkers/ServiceWorkerGlobalScope.h
diff --git a/Source/modules/serviceworkers/ServiceWorkerGlobalScope.h b/Source/modules/serviceworkers/ServiceWorkerGlobalScope.h
index f14f9506e012b7fe881e463cfe21cd1b94daa519..3fbb19711953d592f3321dd758e3664082d37f4d 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;
@@ -68,6 +69,8 @@ public:
ServiceWorkerClients* clients();
ServiceWorkerRegistration* registration();
scheib 2015/05/06 21:44:30 Remove blank line and have ports() in same group a
Marijn Kruisselbrink 2015/05/12 06:56:40 Done, although all the methods upto the next comme
+ PassRefPtrWillBeRawPtr<StashedPortCollection> ports();
+
ScriptPromise fetch(ScriptState*, const RequestInfo&, const Dictionary&, ExceptionState&);
void close(ExceptionState&);
@@ -102,6 +105,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 +114,8 @@ private:
size_t m_scriptCachedMetadataTotalSize;
};
+DEFINE_TYPE_CASTS(ServiceWorkerGlobalScope, ExecutionContext, context, context->isServiceWorkerGlobalScope(), context.isServiceWorkerGlobalScope());
+
} // namespace blink
#endif // ServiceWorkerGlobalScope_h

Powered by Google App Engine
This is Rietveld 408576698