| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 // A part of browser-side server debugger exposed to DebuggerWrapper. | 5 // A part of browser-side server debugger exposed to DebuggerWrapper. |
| 6 | 6 |
| 7 #ifndef CHROME_BROWSER_DEBUGGER_DEBUGGER_HOST_H_ | 7 #ifndef CHROME_BROWSER_DEBUGGER_DEBUGGER_HOST_H_ |
| 8 #define CHROME_BROWSER_DEBUGGER_DEBUGGER_HOST_H_ | 8 #define CHROME_BROWSER_DEBUGGER_DEBUGGER_HOST_H_ |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 virtual void OnDebugAttach() = 0; | 27 virtual void OnDebugAttach() = 0; |
| 28 // The renderer we're attached to is gone. | 28 // The renderer we're attached to is gone. |
| 29 virtual void OnDebugDisconnect() = 0; | 29 virtual void OnDebugDisconnect() = 0; |
| 30 | 30 |
| 31 virtual void DidDisconnect() = 0; | 31 virtual void DidDisconnect() = 0; |
| 32 virtual void DidConnect() {} | 32 virtual void DidConnect() {} |
| 33 virtual void ProcessCommand(const std::wstring& data) {} | 33 virtual void ProcessCommand(const std::wstring& data) {} |
| 34 | 34 |
| 35 // Handles messages from debugger UI. | 35 // Handles messages from debugger UI. |
| 36 virtual void OnDebuggerHostMsg(const ListValue* args) {} | 36 virtual void OnDebuggerHostMsg(const ListValue* args) {} |
| 37 |
| 38 // Shows the debugger UI and returns true if it has any. |
| 39 virtual bool ShowWindow() { return false; } |
| 40 |
| 37 private: | 41 private: |
| 38 | 42 |
| 39 DISALLOW_COPY_AND_ASSIGN(DebuggerHost); | 43 DISALLOW_COPY_AND_ASSIGN(DebuggerHost); |
| 40 }; | 44 }; |
| 41 | 45 |
| 42 #endif // CHROME_BROWSER_DEBUGGER_DEBUGGER_HOST_H_ | 46 #endif // CHROME_BROWSER_DEBUGGER_DEBUGGER_HOST_H_ |
| OLD | NEW |