Chromium Code Reviews| 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_DEBUGGER_DEVTOOLS_AGENT_HOST_H_ | 5 #ifndef CONTENT_BROWSER_DEBUGGER_DEVTOOLS_AGENT_HOST_H_ |
| 6 #define CONTENT_BROWSER_DEBUGGER_DEVTOOLS_AGENT_HOST_H_ | 6 #define CONTENT_BROWSER_DEBUGGER_DEVTOOLS_AGENT_HOST_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| (...skipping 17 matching lines...) Expand all Loading... | |
| 28 | 28 |
| 29 // Sends the message to the devtools agent hosted by this object. | 29 // Sends the message to the devtools agent hosted by this object. |
| 30 void Attach(); | 30 void Attach(); |
| 31 void Reattach(const std::string& saved_agent_state); | 31 void Reattach(const std::string& saved_agent_state); |
| 32 void Detach(); | 32 void Detach(); |
| 33 void DipatchOnInspectorBackend(const std::string& message); | 33 void DipatchOnInspectorBackend(const std::string& message); |
| 34 void InspectElement(int x, int y); | 34 void InspectElement(int x, int y); |
| 35 void AddMessageToConsole(ConsoleMessageLevel level, | 35 void AddMessageToConsole(ConsoleMessageLevel level, |
| 36 const std::string& message); | 36 const std::string& message); |
| 37 | 37 |
| 38 virtual void NotifyClientOpening() = 0; | |
|
yurys
2012/08/21 19:52:55
These two notification methods should be protected
Matt Perry
2012/08/21 20:13:46
Done.
| |
| 38 // TODO(yurys): get rid of this method | 39 // TODO(yurys): get rid of this method |
|
yurys
2012/08/21 19:52:55
Please remove this comment.
Matt Perry
2012/08/21 20:13:46
Done.
| |
| 39 virtual void NotifyClientClosing() = 0; | 40 virtual void NotifyClientClosing() = 0; |
| 40 | 41 |
| 41 virtual int GetRenderProcessId() = 0; | 42 virtual int GetRenderProcessId() = 0; |
| 42 | 43 |
| 43 void set_close_listener(CloseListener* listener) { | 44 void set_close_listener(CloseListener* listener) { |
| 44 close_listener_ = listener; | 45 close_listener_ = listener; |
| 45 } | 46 } |
| 46 | 47 |
| 47 protected: | 48 protected: |
| 48 DevToolsAgentHost(); | 49 DevToolsAgentHost(); |
| 49 virtual ~DevToolsAgentHost() {} | 50 virtual ~DevToolsAgentHost() {} |
| 50 | 51 |
| 51 virtual void SendMessageToAgent(IPC::Message* msg) = 0; | 52 virtual void SendMessageToAgent(IPC::Message* msg) = 0; |
| 52 void NotifyCloseListener(); | 53 void NotifyCloseListener(); |
| 53 | 54 |
| 54 CloseListener* close_listener_; | 55 CloseListener* close_listener_; |
| 55 }; | 56 }; |
| 56 | 57 |
| 57 } // namespace content | 58 } // namespace content |
| 58 | 59 |
| 59 #endif // CONTENT_BROWSER_DEBUGGER_DEVTOOLS_AGENT_HOST_H_ | 60 #endif // CONTENT_BROWSER_DEBUGGER_DEVTOOLS_AGENT_HOST_H_ |
| OLD | NEW |