OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROMECAST_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_ | 5 #ifndef CHROMECAST_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_ |
6 #define CHROMECAST_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_ | 6 #define CHROMECAST_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 | 11 |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "components/prefs/pref_member.h" | 13 #include "components/prefs/pref_member.h" |
14 | 14 |
15 namespace devtools_http_handler { | |
16 class DevToolsHttpHandler; | |
17 } | |
18 | |
19 namespace chromecast { | 15 namespace chromecast { |
20 namespace shell { | 16 namespace shell { |
21 | 17 |
22 class CastDevToolsManagerDelegate; | 18 class CastDevToolsManagerDelegate; |
23 | 19 |
24 class RemoteDebuggingServer { | 20 class RemoteDebuggingServer { |
25 public: | 21 public: |
26 explicit RemoteDebuggingServer(bool start_immediately); | 22 explicit RemoteDebuggingServer(bool start_immediately); |
27 ~RemoteDebuggingServer(); | 23 ~RemoteDebuggingServer(); |
28 | 24 |
29 private: | 25 private: |
30 // Called when pref_enabled_ is changed. | 26 // Called when pref_enabled_ is changed. |
31 void OnEnabledChanged(); | 27 void OnEnabledChanged(); |
32 | |
33 std::unique_ptr<devtools_http_handler::DevToolsHttpHandler> | |
34 devtools_http_handler_; | |
35 | |
36 BooleanPrefMember pref_enabled_; | 28 BooleanPrefMember pref_enabled_; |
37 uint16_t port_; | 29 uint16_t port_; |
| 30 bool is_started_; |
38 | 31 |
39 DISALLOW_COPY_AND_ASSIGN(RemoteDebuggingServer); | 32 DISALLOW_COPY_AND_ASSIGN(RemoteDebuggingServer); |
40 }; | 33 }; |
41 | 34 |
42 } // namespace shell | 35 } // namespace shell |
43 } // namespace chromecast | 36 } // namespace chromecast |
44 | 37 |
45 #endif // CHROMECAST_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_ | 38 #endif // CHROMECAST_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_ |
OLD | NEW |