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

Side by Side Diff: content/browser/worker_host/worker_process_host.h

Issue 213423008: Add pause_on_start flag to WorkerProcessMsg_CreateWorker_Params. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: incorporated yurys's comment Created 6 years, 9 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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ 5 #ifndef CONTENT_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_
6 #define CONTENT_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ 6 #define CONTENT_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 163
164 // IPC::Sender implementation: 164 // IPC::Sender implementation:
165 virtual bool Send(IPC::Message* message) OVERRIDE; 165 virtual bool Send(IPC::Message* message) OVERRIDE;
166 166
167 // Starts the process. Returns true iff it succeeded. 167 // Starts the process. Returns true iff it succeeded.
168 // |render_process_id| and |render_frame_id| are the renderer process and the 168 // |render_process_id| and |render_frame_id| are the renderer process and the
169 // renderer frame responsible for starting this worker. 169 // renderer frame responsible for starting this worker.
170 bool Init(int render_process_id, int render_frame_id); 170 bool Init(int render_process_id, int render_frame_id);
171 171
172 // Creates a worker object in the process. 172 // Creates a worker object in the process.
173 void CreateWorker(const WorkerInstance& instance); 173 void CreateWorker(const WorkerInstance& instance, bool pause_on_start);
174 174
175 // Returns true iff the given message from a renderer process was forwarded to 175 // Returns true iff the given message from a renderer process was forwarded to
176 // the worker. 176 // the worker.
177 bool FilterMessage(const IPC::Message& message, WorkerMessageFilter* filter); 177 bool FilterMessage(const IPC::Message& message, WorkerMessageFilter* filter);
178 178
179 void FilterShutdown(WorkerMessageFilter* filter); 179 void FilterShutdown(WorkerMessageFilter* filter);
180 180
181 // Shuts down any shared workers that are no longer referenced by active 181 // Shuts down any shared workers that are no longer referenced by active
182 // documents. 182 // documents.
183 void DocumentDetached(WorkerMessageFilter* filter, 183 void DocumentDetached(WorkerMessageFilter* filter,
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 public: 279 public:
280 WorkerProcessHostIterator() 280 WorkerProcessHostIterator()
281 : BrowserChildProcessHostTypeIterator<WorkerProcessHost>( 281 : BrowserChildProcessHostTypeIterator<WorkerProcessHost>(
282 PROCESS_TYPE_WORKER) { 282 PROCESS_TYPE_WORKER) {
283 } 283 }
284 }; 284 };
285 285
286 } // namespace content 286 } // namespace content
287 287
288 #endif // CONTENT_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ 288 #endif // CONTENT_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/devtools/worker_devtools_manager.cc ('k') | content/browser/worker_host/worker_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698