| OLD | NEW |
| 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_DEVTOOLS_MANAGER_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_DEBUGGER_DEVTOOLS_MANAGER_IMPL_H_ |
| 6 #define CONTENT_BROWSER_DEBUGGER_DEVTOOLS_MANAGER_IMPL_H_ | 6 #define CONTENT_BROWSER_DEBUGGER_DEVTOOLS_MANAGER_IMPL_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/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/memory/singleton.h" | 13 #include "base/memory/singleton.h" |
| 14 #include "content/browser/debugger/devtools_agent_host.h" | 14 #include "content/browser/debugger/devtools_agent_host.h" |
| 15 #include "content/common/content_export.h" | 15 #include "content/common/content_export.h" |
| 16 #include "content/public/browser/devtools_client_host.h" | 16 #include "content/public/browser/devtools_client_host.h" |
| 17 #include "content/public/browser/devtools_manager.h" | 17 #include "content/public/browser/devtools_manager.h" |
| 18 | 18 |
| 19 class GURL; | 19 class GURL; |
| 20 class RenderViewHost; | |
| 21 class TabContents; | 20 class TabContents; |
| 22 | 21 |
| 23 namespace IPC { | 22 namespace IPC { |
| 24 class Message; | 23 class Message; |
| 25 } | 24 } |
| 26 | 25 |
| 27 namespace content { | 26 namespace content { |
| 28 | 27 |
| 29 class DevToolsAgentHost; | 28 class DevToolsAgentHost; |
| 29 class RenderViewHost; |
| 30 | 30 |
| 31 // This class is a singleton that manages DevToolsClientHost instances and | 31 // This class is a singleton that manages DevToolsClientHost instances and |
| 32 // routes messages between developer tools clients and agents. | 32 // routes messages between developer tools clients and agents. |
| 33 // | 33 // |
| 34 // Methods below that accept inspected RenderViewHost as a parameter are | 34 // Methods below that accept inspected RenderViewHost as a parameter are |
| 35 // just convenience methods that call corresponding methods accepting | 35 // just convenience methods that call corresponding methods accepting |
| 36 // DevToolAgentHost. | 36 // DevToolAgentHost. |
| 37 class CONTENT_EXPORT DevToolsManagerImpl | 37 class CONTENT_EXPORT DevToolsManagerImpl |
| 38 : public DevToolsAgentHost::CloseListener, | 38 : public DevToolsAgentHost::CloseListener, |
| 39 public DevToolsManager { | 39 public DevToolsManager { |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 OrphanClientHosts; | 130 OrphanClientHosts; |
| 131 OrphanClientHosts orphan_client_hosts_; | 131 OrphanClientHosts orphan_client_hosts_; |
| 132 int last_orphan_cookie_; | 132 int last_orphan_cookie_; |
| 133 | 133 |
| 134 DISALLOW_COPY_AND_ASSIGN(DevToolsManagerImpl); | 134 DISALLOW_COPY_AND_ASSIGN(DevToolsManagerImpl); |
| 135 }; | 135 }; |
| 136 | 136 |
| 137 } // namespace content | 137 } // namespace content |
| 138 | 138 |
| 139 #endif // CONTENT_BROWSER_DEBUGGER_DEVTOOLS_MANAGER_IMPL_H_ | 139 #endif // CONTENT_BROWSER_DEBUGGER_DEVTOOLS_MANAGER_IMPL_H_ |
| OLD | NEW |