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

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

Issue 2645613006: Worker: Stop using ExecutionContextTask on WorkerLoaderProxy::postTaskToWorkerGlobalScope (Closed)
Patch Set: address review comments Created 3 years, 11 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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 void didCloseWorkerGlobalScopeOnMainThread(); 149 void didCloseWorkerGlobalScopeOnMainThread();
150 void didTerminateWorkerThreadOnMainThread(); 150 void didTerminateWorkerThreadOnMainThread();
151 151
152 void postMessageToPageInspectorOnMainThread(const String& message); 152 void postMessageToPageInspectorOnMainThread(const String& message);
153 153
154 // WorkerLoaderProxyProvider 154 // WorkerLoaderProxyProvider
155 void postTaskToLoader(const WebTraceLocation&, 155 void postTaskToLoader(const WebTraceLocation&,
156 std::unique_ptr<ExecutionContextTask>) override; 156 std::unique_ptr<ExecutionContextTask>) override;
157 void postTaskToWorkerGlobalScope( 157 void postTaskToWorkerGlobalScope(
158 const WebTraceLocation&, 158 const WebTraceLocation&,
159 std::unique_ptr<ExecutionContextTask>) override; 159 std::unique_ptr<WTF::CrossThreadClosure>) override;
160 160
161 // 'shadow page' - created to proxy loading requests from the worker. 161 // 'shadow page' - created to proxy loading requests from the worker.
162 Persistent<ExecutionContext> m_loadingDocument; 162 Persistent<ExecutionContext> m_loadingDocument;
163 WebView* m_webView; 163 WebView* m_webView;
164 Persistent<WebLocalFrameImpl> m_mainFrame; 164 Persistent<WebLocalFrameImpl> m_mainFrame;
165 bool m_askedToTerminate; 165 bool m_askedToTerminate;
166 166
167 // This one is bound to and used only on the main thread. 167 // This one is bound to and used only on the main thread.
168 std::unique_ptr<WebServiceWorkerNetworkProvider> m_networkProvider; 168 std::unique_ptr<WebServiceWorkerNetworkProvider> m_networkProvider;
169 169
(...skipping 14 matching lines...) Expand all
184 RefPtr<WorkerLoaderProxy> m_loaderProxy; 184 RefPtr<WorkerLoaderProxy> m_loaderProxy;
185 185
186 WebURL m_url; 186 WebURL m_url;
187 WebString m_name; 187 WebString m_name;
188 WebAddressSpace m_creationAddressSpace; 188 WebAddressSpace m_creationAddressSpace;
189 }; 189 };
190 190
191 } // namespace blink 191 } // namespace blink
192 192
193 #endif // WebSharedWorkerImpl_h 193 #endif // WebSharedWorkerImpl_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp ('k') | third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698