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> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 | 14 |
15 namespace devtools_http_handler { | |
16 class DevToolsHttpHandler; | |
17 } | |
18 | |
19 class RemoteDebuggingServer { | 15 class RemoteDebuggingServer { |
20 public: | 16 public: |
21 static void EnableTetheringForDebug(); | 17 static void EnableTetheringForDebug(); |
22 | 18 |
23 // Bind remote debugging service to the given |ip| and |port|. | 19 // Bind remote debugging service to the given |ip| and |port|. |
24 // Empty |ip| stands for 127.0.0.1 or ::1. | 20 // Empty |ip| stands for 127.0.0.1 or ::1. |
25 RemoteDebuggingServer(const std::string& ip, uint16_t port); | 21 RemoteDebuggingServer(const std::string& ip, uint16_t port); |
26 virtual ~RemoteDebuggingServer(); | 22 virtual ~RemoteDebuggingServer(); |
27 | 23 |
28 private: | 24 private: |
29 std::unique_ptr<devtools_http_handler::DevToolsHttpHandler> | |
30 devtools_http_handler_; | |
31 DISALLOW_COPY_AND_ASSIGN(RemoteDebuggingServer); | 25 DISALLOW_COPY_AND_ASSIGN(RemoteDebuggingServer); |
32 }; | 26 }; |
33 | 27 |
34 #endif // CHROME_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_ | 28 #endif // CHROME_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_ |
OLD | NEW |