| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_BROWSER_DEBUGGER_DEVTOOLS_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_DEBUGGER_DEVTOOLS_MANAGER_H_ |
| 6 #define CHROME_BROWSER_DEBUGGER_DEVTOOLS_MANAGER_H_ | 6 #define CHROME_BROWSER_DEBUGGER_DEVTOOLS_MANAGER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/ref_counted.h" | 12 #include "base/ref_counted.h" |
| 13 #include "chrome/browser/debugger/devtools_client_host.h" | 13 #include "chrome/browser/debugger/devtools_client_host.h" |
| 14 #include "chrome/browser/debugger/devtools_toggle_action.h" | 14 #include "chrome/browser/debugger/devtools_toggle_action.h" |
| 15 #include "chrome/common/devtools_messages.h" | 15 #include "chrome/common/devtools_messages.h" |
| 16 #include "webkit/glue/resource_loader_bridge.h" |
| 16 | 17 |
| 17 namespace IPC { | 18 namespace IPC { |
| 18 class Message; | 19 class Message; |
| 19 } | 20 } |
| 20 | 21 |
| 22 class DevToolsNetLogObserver; |
| 21 class GURL; | 23 class GURL; |
| 24 class IOThread; |
| 22 class PrefService; | 25 class PrefService; |
| 23 class RenderViewHost; | 26 class RenderViewHost; |
| 27 using webkit_glue::ResourceLoaderBridge; |
| 24 | 28 |
| 25 // This class is a singleton that manages DevToolsClientHost instances and | 29 // This class is a singleton that manages DevToolsClientHost instances and |
| 26 // routes messages between developer tools clients and agents. | 30 // routes messages between developer tools clients and agents. |
| 27 class DevToolsManager : public DevToolsClientHost::CloseListener, | 31 class DevToolsManager : public DevToolsClientHost::CloseListener, |
| 28 public base::RefCounted<DevToolsManager> { | 32 public base::RefCounted<DevToolsManager> { |
| 29 public: | 33 public: |
| 30 static DevToolsManager* GetInstance(); | 34 static DevToolsManager* GetInstance(); |
| 31 | 35 |
| 32 static void RegisterUserPrefs(PrefService* prefs); | 36 static void RegisterUserPrefs(PrefService* prefs); |
| 33 | 37 |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 typedef std::map<int, | 146 typedef std::map<int, |
| 143 std::pair<DevToolsClientHost*, DevToolsRuntimeProperties> > | 147 std::pair<DevToolsClientHost*, DevToolsRuntimeProperties> > |
| 144 OrphanClientHosts; | 148 OrphanClientHosts; |
| 145 OrphanClientHosts orphan_client_hosts_; | 149 OrphanClientHosts orphan_client_hosts_; |
| 146 int last_orphan_cookie_; | 150 int last_orphan_cookie_; |
| 147 | 151 |
| 148 DISALLOW_COPY_AND_ASSIGN(DevToolsManager); | 152 DISALLOW_COPY_AND_ASSIGN(DevToolsManager); |
| 149 }; | 153 }; |
| 150 | 154 |
| 151 #endif // CHROME_BROWSER_DEBUGGER_DEVTOOLS_MANAGER_H_ | 155 #endif // CHROME_BROWSER_DEBUGGER_DEVTOOLS_MANAGER_H_ |
| OLD | NEW |