| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // Include this file if you need to access the Debugger outside of the debugger | 5 // Include this file if you need to access the Debugger outside of the debugger |
| 6 // project. Don't include debugger.h directly. If there's functionality from | 6 // project. Don't include debugger.h directly. If there's functionality from |
| 7 // Debugger needed, add new wrapper methods to this file. | 7 // Debugger needed, add new wrapper methods to this file. |
| 8 | 8 |
| 9 #ifndef CHROME_BROWSER_DEBUGGER_DEBUGGER_WRAPPER_H_ | 9 #ifndef CHROME_BROWSER_DEBUGGER_DEBUGGER_WRAPPER_H_ |
| 10 #define CHROME_BROWSER_DEBUGGER_DEBUGGER_WRAPPER_H_ | 10 #define CHROME_BROWSER_DEBUGGER_DEBUGGER_WRAPPER_H_ |
| 11 #pragma once | 11 #pragma once |
| 12 | 12 |
| 13 #include <string> | |
| 14 | |
| 15 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
| 16 #include "base/ref_counted.h" | 14 #include "base/ref_counted.h" |
| 17 | 15 |
| 18 class DebuggerHost; | 16 class DebuggerHost; |
| 19 class DevToolsHttpProtocolHandler; | 17 class DevToolsHttpProtocolHandler; |
| 20 class DevToolsProtocolHandler; | 18 class DevToolsProtocolHandler; |
| 21 class DevToolsRemoteListenSocket; | 19 class DevToolsRemoteListenSocket; |
| 22 | 20 |
| 23 class DebuggerWrapper : public base::RefCountedThreadSafe<DebuggerWrapper> { | 21 class DebuggerWrapper : public base::RefCountedThreadSafe<DebuggerWrapper> { |
| 24 public: | 22 public: |
| 25 DebuggerWrapper(int port, bool useHttp); | 23 DebuggerWrapper(int port, bool useHttp); |
| 26 | 24 |
| 27 private: | 25 private: |
| 28 friend class base::RefCountedThreadSafe<DebuggerWrapper>; | 26 friend class base::RefCountedThreadSafe<DebuggerWrapper>; |
| 29 | 27 |
| 30 virtual ~DebuggerWrapper(); | 28 virtual ~DebuggerWrapper(); |
| 31 | 29 |
| 32 scoped_refptr<DevToolsProtocolHandler> proto_handler_; | 30 scoped_refptr<DevToolsProtocolHandler> proto_handler_; |
| 33 scoped_refptr<DevToolsHttpProtocolHandler> http_handler_; | 31 scoped_refptr<DevToolsHttpProtocolHandler> http_handler_; |
| 34 }; | 32 }; |
| 35 | 33 |
| 36 #endif // CHROME_BROWSER_DEBUGGER_DEBUGGER_WRAPPER_H_ | 34 #endif // CHROME_BROWSER_DEBUGGER_DEBUGGER_WRAPPER_H_ |
| OLD | NEW |