| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 // Returns render view host instance for this host if any. | 59 // Returns render view host instance for this host if any. |
| 60 virtual RenderViewHost* GetRenderViewHost() = 0; | 60 virtual RenderViewHost* GetRenderViewHost() = 0; |
| 61 | 61 |
| 62 // Temporarily detaches render view host from this host. Must be followed by | 62 // Temporarily detaches render view host from this host. Must be followed by |
| 63 // a call to ConnectRenderViewHost (may leak the host instance otherwise). | 63 // a call to ConnectRenderViewHost (may leak the host instance otherwise). |
| 64 virtual void DisconnectRenderViewHost() = 0; | 64 virtual void DisconnectRenderViewHost() = 0; |
| 65 | 65 |
| 66 // Attaches render view host to this host. | 66 // Attaches render view host to this host. |
| 67 virtual void ConnectRenderViewHost(RenderViewHost* rvh) = 0; | 67 virtual void ConnectRenderViewHost(RenderViewHost* rvh) = 0; |
| 68 | 68 |
| 69 // Returns true if DevToolsAgentHost is for worker. |
| 70 virtual bool IsWorker() = 0; |
| 71 |
| 69 protected: | 72 protected: |
| 70 friend class base::RefCounted<DevToolsAgentHost>; | 73 friend class base::RefCounted<DevToolsAgentHost>; |
| 71 virtual ~DevToolsAgentHost() {} | 74 virtual ~DevToolsAgentHost() {} |
| 72 }; | 75 }; |
| 73 | 76 |
| 74 } // namespace content | 77 } // namespace content |
| 75 | 78 |
| 76 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_AGENT_HOST_H_ | 79 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_AGENT_HOST_H_ |
| OLD | NEW |