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

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

Issue 2642113002: Worker: Reduce use of ExecutionContextTask in core/workers (Closed)
Patch Set: fix build failures 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 // Shuts down the worker thread. 136 // Shuts down the worker thread.
137 void terminateWorkerThread(); 137 void terminateWorkerThread();
138 138
139 // Creates the shadow loader used for worker network requests. 139 // Creates the shadow loader used for worker network requests.
140 void initializeLoader(); 140 void initializeLoader();
141 141
142 void loadShadowPage(); 142 void loadShadowPage();
143 void didReceiveScriptLoaderResponse(); 143 void didReceiveScriptLoaderResponse();
144 void onScriptLoaderFinished(); 144 void onScriptLoaderFinished();
145 145
146 static void connectTask(WebMessagePortChannelUniquePtr, ExecutionContext*); 146 void connectTask(WebMessagePortChannelUniquePtr);
147 147
148 // Tasks that are run on the main thread. 148 // Tasks that are run on the main thread.
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;
(...skipping 27 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

Powered by Google App Engine
This is Rietveld 408576698