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

Unified Diff: content/browser/debugger/worker_devtools_manager.h

Issue 9317026: Hide WorkerProcessHost from chrome. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/debugger/worker_devtools_manager.h
===================================================================
--- content/browser/debugger/worker_devtools_manager.h (revision 119868)
+++ content/browser/debugger/worker_devtools_manager.h (working copy)
@@ -14,18 +14,14 @@
#include "base/memory/scoped_ptr.h"
#include "base/memory/singleton.h"
#include "content/common/content_export.h"
-#include "content/public/browser/worker_service_observer.h"
+#include "content/browser/worker_host/worker_process_host.h"
-namespace IPC {
-class Message;
-}
-
namespace content {
class DevToolsAgentHost;
// All methods are supposed to be called on the IO thread.
-class WorkerDevToolsManager : private WorkerServiceObserver {
+class WorkerDevToolsManager {
public:
// Returns the WorkerDevToolsManager singleton.
static WorkerDevToolsManager* GetInstance();
@@ -42,6 +38,13 @@
int worker_route_id,
const std::string& state);
+ // Called on the IO thread.
+ void WorkerCreated(
+ WorkerProcessHost* process,
+ const WorkerProcessHost::WorkerInstance& instance);
+ void WorkerDestroyed(WorkerProcessHost* process, int worker_route_id);
+ void WorkerContextStarted(WorkerProcessHost* process, int worker_route_id);
+
private:
friend struct DefaultSingletonTraits<WorkerDevToolsManager>;
typedef std::pair<int, int> WorkerId;
@@ -54,16 +57,6 @@
WorkerDevToolsManager();
virtual ~WorkerDevToolsManager();
- // WorkerServiceObserver implementation.
- virtual void WorkerCreated(
- WorkerProcessHost* process,
- const WorkerProcessHost::WorkerInstance& instance) OVERRIDE;
- virtual void WorkerDestroyed(
- WorkerProcessHost* process,
- int worker_route_id) OVERRIDE;
- virtual void WorkerContextStarted(WorkerProcessHost* process,
- int worker_route_id) OVERRIDE;
-
void RemoveInspectedWorkerData(const WorkerId& id);
InspectedWorkersList::iterator FindInspectedWorker(int host_id, int route_id);
« 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