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

Side by Side Diff: content/browser/debugger/worker_devtools_manager.h

Issue 9052007: Create an API around WorkerService that chrome consumes. Rename the existing WorkerService to Wor... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 12 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_DEBUGGER_WORKER_DEVTOOLS_MANAGER_H_ 5 #ifndef CONTENT_BROWSER_DEBUGGER_WORKER_DEVTOOLS_MANAGER_H_
6 #define CONTENT_BROWSER_DEBUGGER_WORKER_DEVTOOLS_MANAGER_H_ 6 #define CONTENT_BROWSER_DEBUGGER_WORKER_DEVTOOLS_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <list> 9 #include <list>
10 #include <string> 10 #include <string>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/memory/singleton.h" 14 #include "base/memory/singleton.h"
15 #include "content/common/content_export.h" 15 #include "content/common/content_export.h"
16 #include "content/browser/worker_host/worker_service_observer.h" 16 #include "content/public/browser/worker_service_observer.h"
17 17
18 namespace IPC { 18 namespace IPC {
19 class Message; 19 class Message;
20 } 20 }
21 21
22 namespace content { 22 namespace content {
23 23
24 class DevToolsAgentHost; 24 class DevToolsAgentHost;
25 25
26 // All methods are supposed to be called on the IO thread. 26 // All methods are supposed to be called on the IO thread.
(...skipping 19 matching lines...) Expand all
46 typedef std::pair<int, int> WorkerId; 46 typedef std::pair<int, int> WorkerId;
47 class AgentHosts; 47 class AgentHosts;
48 class DetachedClientHosts; 48 class DetachedClientHosts;
49 class WorkerDevToolsAgentHost; 49 class WorkerDevToolsAgentHost;
50 struct InspectedWorker; 50 struct InspectedWorker;
51 typedef std::list<InspectedWorker> InspectedWorkersList; 51 typedef std::list<InspectedWorker> InspectedWorkersList;
52 52
53 WorkerDevToolsManager(); 53 WorkerDevToolsManager();
54 virtual ~WorkerDevToolsManager(); 54 virtual ~WorkerDevToolsManager();
55 55
56 // WorkerServiceOberver implementation. 56 // WorkerServiceObserver implementation.
57 virtual void WorkerCreated( 57 virtual void WorkerCreated(
58 WorkerProcessHost* process, 58 WorkerProcessHost* process,
59 const WorkerProcessHost::WorkerInstance& instance) OVERRIDE; 59 const WorkerProcessHost::WorkerInstance& instance) OVERRIDE;
60 virtual void WorkerDestroyed( 60 virtual void WorkerDestroyed(
61 WorkerProcessHost* process, 61 WorkerProcessHost* process,
62 int worker_route_id) OVERRIDE; 62 int worker_route_id) OVERRIDE;
63 virtual void WorkerContextStarted(WorkerProcessHost* process, 63 virtual void WorkerContextStarted(WorkerProcessHost* process,
64 int worker_route_id) OVERRIDE; 64 int worker_route_id) OVERRIDE;
65 65
66 void RemoveInspectedWorkerData(const WorkerId& id); 66 void RemoveInspectedWorkerData(const WorkerId& id);
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 // worker. 108 // worker.
109 // - Existing DevTools client was reattached to the new worker. 109 // - Existing DevTools client was reattached to the new worker.
110 PausedWorkers paused_workers_; 110 PausedWorkers paused_workers_;
111 111
112 DISALLOW_COPY_AND_ASSIGN(WorkerDevToolsManager); 112 DISALLOW_COPY_AND_ASSIGN(WorkerDevToolsManager);
113 }; 113 };
114 114
115 } // namespace content 115 } // namespace content
116 116
117 #endif // CONTENT_BROWSER_DEBUGGER_WORKER_DEVTOOLS_MANAGER_H_ 117 #endif // CONTENT_BROWSER_DEBUGGER_WORKER_DEVTOOLS_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/workers_ui.cc ('k') | content/browser/debugger/worker_devtools_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698