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_BROWSER_DEVTOOLS_DEVTOOLS_AGENT_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_AGENT_HOST_IMPL_H_ |
6 #define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_AGENT_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_AGENT_HOST_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 void Detach(); | 34 void Detach(); |
35 virtual void DispatchOnInspectorBackend(const std::string& message); | 35 virtual void DispatchOnInspectorBackend(const std::string& message); |
36 void InspectElement(int x, int y); | 36 void InspectElement(int x, int y); |
37 void AddMessageToConsole(ConsoleMessageLevel level, | 37 void AddMessageToConsole(ConsoleMessageLevel level, |
38 const std::string& message); | 38 const std::string& message); |
39 | 39 |
40 void set_close_listener(CloseListener* listener) { | 40 void set_close_listener(CloseListener* listener) { |
41 close_listener_ = listener; | 41 close_listener_ = listener; |
42 } | 42 } |
43 | 43 |
44 int id() { return id_; } | 44 // DevToolsAgentHost implementation. |
| 45 virtual int id() OVERRIDE { return id_; } |
45 | 46 |
46 // DevToolsAgentHost implementation. | |
47 virtual RenderViewHost* GetRenderViewHost() OVERRIDE; | 47 virtual RenderViewHost* GetRenderViewHost() OVERRIDE; |
48 | 48 |
| 49 virtual bool attached() OVERRIDE; |
| 50 |
| 51 virtual std::string title() OVERRIDE; |
| 52 |
| 53 virtual GURL url() OVERRIDE; |
| 54 |
| 55 virtual GURL thumbnail_url() OVERRIDE; |
| 56 |
| 57 virtual GURL favicon_url() OVERRIDE; |
| 58 |
49 protected: | 59 protected: |
50 DevToolsAgentHostImpl(); | 60 DevToolsAgentHostImpl(); |
51 virtual ~DevToolsAgentHostImpl() {} | 61 virtual ~DevToolsAgentHostImpl() {} |
52 | 62 |
53 virtual void SendMessageToAgent(IPC::Message* msg) = 0; | 63 virtual void SendMessageToAgent(IPC::Message* msg) = 0; |
54 virtual void NotifyClientAttaching() = 0; | 64 virtual void NotifyClientAttaching() = 0; |
55 virtual void NotifyClientDetaching() = 0; | 65 virtual void NotifyClientDetaching() = 0; |
56 | 66 |
57 void NotifyCloseListener(); | 67 void NotifyCloseListener(); |
58 | 68 |
59 CloseListener* close_listener_; | 69 CloseListener* close_listener_; |
60 | 70 |
61 private: | 71 private: |
62 int id_; | 72 int id_; |
63 }; | 73 }; |
64 | 74 |
65 } // namespace content | 75 } // namespace content |
66 | 76 |
67 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_AGENT_HOST_IMPL_H_ | 77 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_AGENT_HOST_IMPL_H_ |
OLD | NEW |