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

Side by Side Diff: content/browser/devtools/worker_devtools_manager.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, 8 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
« no previous file with comments | « no previous file | content/browser/devtools/worker_devtools_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_DEVTOOLS_WORKER_DEVTOOLS_MANAGER_H_ 5 #ifndef CONTENT_BROWSER_DEVTOOLS_WORKER_DEVTOOLS_MANAGER_H_
6 #define CONTENT_BROWSER_DEVTOOLS_WORKER_DEVTOOLS_MANAGER_H_ 6 #define CONTENT_BROWSER_DEVTOOLS_WORKER_DEVTOOLS_MANAGER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 22 matching lines...) Expand all
33 int worker_route_id); 33 int worker_route_id);
34 34
35 void ForwardToDevToolsClient(int worker_process_id, 35 void ForwardToDevToolsClient(int worker_process_id,
36 int worker_route_id, 36 int worker_route_id,
37 const std::string& message); 37 const std::string& message);
38 void SaveAgentRuntimeState(int worker_process_id, 38 void SaveAgentRuntimeState(int worker_process_id,
39 int worker_route_id, 39 int worker_route_id,
40 const std::string& state); 40 const std::string& state);
41 41
42 // Called on the IO thread. 42 // Called on the IO thread.
43 void WorkerCreated( 43 // Returns true when the worker must be paused on start.
44 bool WorkerCreated(
44 WorkerProcessHost* process, 45 WorkerProcessHost* process,
45 const WorkerProcessHost::WorkerInstance& instance); 46 const WorkerProcessHost::WorkerInstance& instance);
46 void WorkerDestroyed(WorkerProcessHost* process, int worker_route_id); 47 void WorkerDestroyed(WorkerProcessHost* process, int worker_route_id);
47 void WorkerContextStarted(WorkerProcessHost* process, int worker_route_id); 48 void WorkerContextStarted(WorkerProcessHost* process, int worker_route_id);
48 49
49 private: 50 private:
50 friend struct DefaultSingletonTraits<WorkerDevToolsManager>; 51 friend struct DefaultSingletonTraits<WorkerDevToolsManager>;
51 class DetachedClientHosts; 52 class DetachedClientHosts;
52 struct InspectedWorker; 53 struct InspectedWorker;
53 typedef std::list<InspectedWorker> InspectedWorkersList; 54 typedef std::list<InspectedWorker> InspectedWorkersList;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 // worker. 101 // worker.
101 // - Existing DevTools client was reattached to the new worker. 102 // - Existing DevTools client was reattached to the new worker.
102 PausedWorkers paused_workers_; 103 PausedWorkers paused_workers_;
103 104
104 DISALLOW_COPY_AND_ASSIGN(WorkerDevToolsManager); 105 DISALLOW_COPY_AND_ASSIGN(WorkerDevToolsManager);
105 }; 106 };
106 107
107 } // namespace content 108 } // namespace content
108 109
109 #endif // CONTENT_BROWSER_DEVTOOLS_WORKER_DEVTOOLS_MANAGER_H_ 110 #endif // CONTENT_BROWSER_DEVTOOLS_WORKER_DEVTOOLS_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/devtools/worker_devtools_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698