| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_ | 5 #ifndef CHROME_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_ |
| 6 #define CHROME_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_ | 6 #define CHROME_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "chrome/browser/ui/host_desktop.h" | 12 #include "chrome/browser/ui/host_desktop.h" |
| 13 | 13 |
| 14 namespace devtools_http_handler { | 14 namespace devtools_http_handler { |
| 15 class DevToolsHttpHandler; | 15 class DevToolsHttpHandler; |
| 16 } | 16 } |
| 17 | 17 |
| 18 class ChromeDevToolsManagerDelegate; | |
| 19 | |
| 20 class RemoteDebuggingServer { | 18 class RemoteDebuggingServer { |
| 21 public: | 19 public: |
| 22 static void EnableTetheringForDebug(); | 20 static void EnableTetheringForDebug(); |
| 23 | 21 |
| 24 RemoteDebuggingServer(chrome::HostDesktopType host_desktop_type, | 22 RemoteDebuggingServer(chrome::HostDesktopType host_desktop_type, |
| 25 const std::string& ip, | 23 const std::string& ip, |
| 26 uint16 port); | 24 uint16 port); |
| 27 | 25 |
| 28 virtual ~RemoteDebuggingServer(); | 26 virtual ~RemoteDebuggingServer(); |
| 29 | 27 |
| 30 private: | 28 private: |
| 31 // TODO(dgozman): remove once devtools_discovery component is extracted. | |
| 32 scoped_ptr<ChromeDevToolsManagerDelegate> manager_delegate_; | |
| 33 scoped_ptr<devtools_http_handler::DevToolsHttpHandler> devtools_http_handler_; | 29 scoped_ptr<devtools_http_handler::DevToolsHttpHandler> devtools_http_handler_; |
| 34 DISALLOW_COPY_AND_ASSIGN(RemoteDebuggingServer); | 30 DISALLOW_COPY_AND_ASSIGN(RemoteDebuggingServer); |
| 35 }; | 31 }; |
| 36 | 32 |
| 37 #endif // CHROME_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_ | 33 #endif // CHROME_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_ |
| OLD | NEW |