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

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

Issue 2196833002: Propagate proper FROM_HERE to postTask() in worker code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 4 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 void onScriptLoaderFinished(); 124 void onScriptLoaderFinished();
125 125
126 static void connectTask(WebMessagePortChannelUniquePtr, ExecutionContext*); 126 static void connectTask(WebMessagePortChannelUniquePtr, ExecutionContext*);
127 // Tasks that are run on the main thread. 127 // Tasks that are run on the main thread.
128 void workerGlobalScopeClosedOnMainThread(); 128 void workerGlobalScopeClosedOnMainThread();
129 void workerThreadTerminatedOnMainThread(); 129 void workerThreadTerminatedOnMainThread();
130 130
131 void postMessageToPageInspectorOnMainThread(const String& message); 131 void postMessageToPageInspectorOnMainThread(const String& message);
132 132
133 // WorkerLoaderProxyProvider 133 // WorkerLoaderProxyProvider
134 void postTaskToLoader(std::unique_ptr<ExecutionContextTask>) override; 134 void postTaskToLoader(const WebTraceLocation&, std::unique_ptr<ExecutionCont extTask>) override;
135 bool postTaskToWorkerGlobalScope(std::unique_ptr<ExecutionContextTask>) over ride; 135 bool postTaskToWorkerGlobalScope(const WebTraceLocation&, std::unique_ptr<Ex ecutionContextTask>) override;
136 136
137 // 'shadow page' - created to proxy loading requests from the worker. 137 // 'shadow page' - created to proxy loading requests from the worker.
138 Persistent<ExecutionContext> m_loadingDocument; 138 Persistent<ExecutionContext> m_loadingDocument;
139 WebView* m_webView; 139 WebView* m_webView;
140 Persistent<WebLocalFrameImpl> m_mainFrame; 140 Persistent<WebLocalFrameImpl> m_mainFrame;
141 bool m_askedToTerminate; 141 bool m_askedToTerminate;
142 142
143 // This one is bound to and used only on the main thread. 143 // This one is bound to and used only on the main thread.
144 std::unique_ptr<WebServiceWorkerNetworkProvider> m_networkProvider; 144 std::unique_ptr<WebServiceWorkerNetworkProvider> m_networkProvider;
145 145
(...skipping 14 matching lines...) Expand all
160 RefPtr<WorkerLoaderProxy> m_loaderProxy; 160 RefPtr<WorkerLoaderProxy> m_loaderProxy;
161 161
162 WebURL m_url; 162 WebURL m_url;
163 WebString m_name; 163 WebString m_name;
164 WebAddressSpace m_creationAddressSpace; 164 WebAddressSpace m_creationAddressSpace;
165 }; 165 };
166 166
167 } // namespace blink 167 } // namespace blink
168 168
169 #endif // WebSharedWorkerImpl_h 169 #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