| 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" | |
| 16 #include "webkit/glue/resource_loader_bridge.h" | 15 #include "webkit/glue/resource_loader_bridge.h" |
| 17 | 16 |
| 18 namespace IPC { | 17 namespace IPC { |
| 19 class Message; | 18 class Message; |
| 20 } | 19 } |
| 21 | 20 |
| 22 class DevToolsNetLogObserver; | 21 class DevToolsNetLogObserver; |
| 23 class GURL; | 22 class GURL; |
| 24 class IOThread; | 23 class IOThread; |
| 25 class PrefService; | 24 class PrefService; |
| 26 class RenderViewHost; | 25 class RenderViewHost; |
| 27 class TabContentsWraper; | 26 class TabContentsWraper; |
| 28 | 27 |
| 29 using webkit_glue::ResourceLoaderBridge; | 28 using webkit_glue::ResourceLoaderBridge; |
| 30 | 29 |
| 30 typedef std::map<std::string, std::string> DevToolsRuntimeProperties; |
| 31 |
| 31 // This class is a singleton that manages DevToolsClientHost instances and | 32 // This class is a singleton that manages DevToolsClientHost instances and |
| 32 // routes messages between developer tools clients and agents. | 33 // routes messages between developer tools clients and agents. |
| 33 class DevToolsManager : public DevToolsClientHost::CloseListener, | 34 class DevToolsManager : public DevToolsClientHost::CloseListener, |
| 34 public base::RefCounted<DevToolsManager> { | 35 public base::RefCounted<DevToolsManager> { |
| 35 public: | 36 public: |
| 36 static DevToolsManager* GetInstance(); | 37 static DevToolsManager* GetInstance(); |
| 37 | 38 |
| 38 static void RegisterUserPrefs(PrefService* prefs); | 39 static void RegisterUserPrefs(PrefService* prefs); |
| 39 | 40 |
| 40 DevToolsManager(); | 41 DevToolsManager(); |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 typedef std::map<int, | 154 typedef std::map<int, |
| 154 std::pair<DevToolsClientHost*, DevToolsRuntimeProperties> > | 155 std::pair<DevToolsClientHost*, DevToolsRuntimeProperties> > |
| 155 OrphanClientHosts; | 156 OrphanClientHosts; |
| 156 OrphanClientHosts orphan_client_hosts_; | 157 OrphanClientHosts orphan_client_hosts_; |
| 157 int last_orphan_cookie_; | 158 int last_orphan_cookie_; |
| 158 | 159 |
| 159 DISALLOW_COPY_AND_ASSIGN(DevToolsManager); | 160 DISALLOW_COPY_AND_ASSIGN(DevToolsManager); |
| 160 }; | 161 }; |
| 161 | 162 |
| 162 #endif // CHROME_BROWSER_DEBUGGER_DEVTOOLS_MANAGER_H_ | 163 #endif // CHROME_BROWSER_DEBUGGER_DEVTOOLS_MANAGER_H_ |
| OLD | NEW |