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