| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PUBLIC_BROWSER_DEVTOOLS_AGENT_HOST_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_DEVTOOLS_AGENT_HOST_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_AGENT_HOST_H_ | 6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_AGENT_HOST_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 class WebContents; | 22 class WebContents; |
| 23 | 23 |
| 24 // Describes interface for managing devtools agents from browser process. | 24 // Describes interface for managing devtools agents from browser process. |
| 25 class CONTENT_EXPORT DevToolsAgentHost | 25 class CONTENT_EXPORT DevToolsAgentHost |
| 26 : public base::RefCounted<DevToolsAgentHost> { | 26 : public base::RefCounted<DevToolsAgentHost> { |
| 27 public: | 27 public: |
| 28 enum Type { | 28 enum Type { |
| 29 // Agent host associated with WebContents. | 29 // Agent host associated with WebContents. |
| 30 TYPE_WEB_CONTENTS, | 30 TYPE_WEB_CONTENTS, |
| 31 | 31 |
| 32 // Agent host associated with RenderFrameHost. |
| 33 TYPE_FRAME, |
| 34 |
| 32 // Agent host associated with shared worker. | 35 // Agent host associated with shared worker. |
| 33 TYPE_SHARED_WORKER, | 36 TYPE_SHARED_WORKER, |
| 34 | 37 |
| 35 // Agent host associated with service worker. | 38 // Agent host associated with service worker. |
| 36 TYPE_SERVICE_WORKER, | 39 TYPE_SERVICE_WORKER, |
| 37 | 40 |
| 38 // Agent host associated with DevToolsExternalAgentProxyDelegate. | 41 // Agent host associated with DevToolsExternalAgentProxyDelegate. |
| 39 TYPE_EXTERNAL, | 42 TYPE_EXTERNAL, |
| 40 }; | 43 }; |
| 41 | 44 |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 static void RemoveAgentStateCallback(const AgentStateCallback& callback); | 131 static void RemoveAgentStateCallback(const AgentStateCallback& callback); |
| 129 | 132 |
| 130 protected: | 133 protected: |
| 131 friend class base::RefCounted<DevToolsAgentHost>; | 134 friend class base::RefCounted<DevToolsAgentHost>; |
| 132 virtual ~DevToolsAgentHost() {} | 135 virtual ~DevToolsAgentHost() {} |
| 133 }; | 136 }; |
| 134 | 137 |
| 135 } // namespace content | 138 } // namespace content |
| 136 | 139 |
| 137 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_AGENT_HOST_H_ | 140 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_AGENT_HOST_H_ |
| OLD | NEW |