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 <stdint.h> |
| 9 |
8 #include <string> | 10 #include <string> |
9 | 11 |
10 #include "base/basictypes.h" | 12 #include "base/macros.h" |
11 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
12 #include "chrome/browser/ui/host_desktop.h" | 14 #include "chrome/browser/ui/host_desktop.h" |
13 | 15 |
14 namespace devtools_http_handler { | 16 namespace devtools_http_handler { |
15 class DevToolsHttpHandler; | 17 class DevToolsHttpHandler; |
16 } | 18 } |
17 | 19 |
18 class RemoteDebuggingServer { | 20 class RemoteDebuggingServer { |
19 public: | 21 public: |
20 static void EnableTetheringForDebug(); | 22 static void EnableTetheringForDebug(); |
21 | 23 |
22 RemoteDebuggingServer(chrome::HostDesktopType host_desktop_type, | 24 RemoteDebuggingServer(chrome::HostDesktopType host_desktop_type, |
23 const std::string& ip, | 25 const std::string& ip, |
24 uint16 port); | 26 uint16_t port); |
25 | 27 |
26 virtual ~RemoteDebuggingServer(); | 28 virtual ~RemoteDebuggingServer(); |
27 | 29 |
28 private: | 30 private: |
29 scoped_ptr<devtools_http_handler::DevToolsHttpHandler> devtools_http_handler_; | 31 scoped_ptr<devtools_http_handler::DevToolsHttpHandler> devtools_http_handler_; |
30 DISALLOW_COPY_AND_ASSIGN(RemoteDebuggingServer); | 32 DISALLOW_COPY_AND_ASSIGN(RemoteDebuggingServer); |
31 }; | 33 }; |
32 | 34 |
33 #endif // CHROME_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_ | 35 #endif // CHROME_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_ |
OLD | NEW |