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

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

Issue 2539443004: Worker: Move ParentFrameTaskRunners from WorkerReportingProxy to ObjectProxy (Closed)
Patch Set: Created 4 years 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 120
121 // WorkerReportingProxy overrides: 121 // WorkerReportingProxy overrides:
122 void reportException(const String& errorMessage, 122 void reportException(const String& errorMessage,
123 std::unique_ptr<SourceLocation>, 123 std::unique_ptr<SourceLocation>,
124 int exceptionId) override; 124 int exceptionId) override;
125 void reportConsoleMessage(MessageSource, 125 void reportConsoleMessage(MessageSource,
126 MessageLevel, 126 MessageLevel,
127 const String& message, 127 const String& message,
128 SourceLocation*) override; 128 SourceLocation*) override;
129 void postMessageToPageInspector(const String&) override; 129 void postMessageToPageInspector(const String&) override;
130 ParentFrameTaskRunners* getParentFrameTaskRunners() override;
131 void didCreateWorkerGlobalScope(WorkerOrWorkletGlobalScope*) override; 130 void didCreateWorkerGlobalScope(WorkerOrWorkletGlobalScope*) override;
132 void didInitializeWorkerContext() override; 131 void didInitializeWorkerContext() override;
133 void willEvaluateWorkerScript(size_t scriptSize, 132 void willEvaluateWorkerScript(size_t scriptSize,
134 size_t cachedMetadataSize) override; 133 size_t cachedMetadataSize) override;
135 void willEvaluateImportedScript(size_t scriptSize, 134 void willEvaluateImportedScript(size_t scriptSize,
136 size_t cachedMetadataSize) override; 135 size_t cachedMetadataSize) override;
137 void didEvaluateWorkerScript(bool success) override; 136 void didEvaluateWorkerScript(bool success) override;
138 void didCloseWorkerGlobalScope() override; 137 void didCloseWorkerGlobalScope() override;
139 void willDestroyWorkerGlobalScope() override; 138 void willDestroyWorkerGlobalScope() override;
140 void didTerminateWorkerThread() override; 139 void didTerminateWorkerThread() override;
(...skipping 14 matching lines...) Expand all
155 154
156 WebServiceWorkerContextClient& client() const; 155 WebServiceWorkerContextClient& client() const;
157 Document& document() const; 156 Document& document() const;
158 ServiceWorkerGlobalScope* workerGlobalScope() const; 157 ServiceWorkerGlobalScope* workerGlobalScope() const;
159 158
160 // Non-null until the WebEmbeddedWorkerImpl explicitly detach()es 159 // Non-null until the WebEmbeddedWorkerImpl explicitly detach()es
161 // as part of its finalization. 160 // as part of its finalization.
162 WebEmbeddedWorkerImpl* m_embeddedWorker; 161 WebEmbeddedWorkerImpl* m_embeddedWorker;
163 Member<Document> m_document; 162 Member<Document> m_document;
164 163
165 Member<ParentFrameTaskRunners> m_parentFrameTaskRunners;
166
167 HeapHashMap<int, Member<FetchEvent>> m_pendingPreloadFetchEvents; 164 HeapHashMap<int, Member<FetchEvent>> m_pendingPreloadFetchEvents;
168 165
169 WebServiceWorkerContextClient* m_client; 166 WebServiceWorkerContextClient* m_client;
170 167
171 CrossThreadPersistent<ServiceWorkerGlobalScope> m_workerGlobalScope; 168 CrossThreadPersistent<ServiceWorkerGlobalScope> m_workerGlobalScope;
172 }; 169 };
173 170
174 } // namespace blink 171 } // namespace blink
175 172
176 #endif // ServiceWorkerGlobalScopeProxy_h 173 #endif // ServiceWorkerGlobalScopeProxy_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698