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 chromecast { | 15 namespace chromecast { |
16 namespace shell { | 16 namespace shell { |
17 | 17 |
18 class CastDevToolsManagerDelegate; | |
19 | |
20 class RemoteDebuggingServer { | 18 class RemoteDebuggingServer { |
21 public: | 19 public: |
22 explicit RemoteDebuggingServer(bool start_immediately); | 20 explicit RemoteDebuggingServer(bool start_immediately); |
23 ~RemoteDebuggingServer(); | 21 ~RemoteDebuggingServer(); |
24 | 22 |
25 private: | 23 private: |
26 // Called when pref_enabled_ is changed. | 24 // Called when pref_enabled_ is changed. |
27 void OnEnabledChanged(); | 25 void OnEnabledChanged(); |
28 BooleanPrefMember pref_enabled_; | 26 BooleanPrefMember pref_enabled_; |
29 uint16_t port_; | 27 uint16_t port_; |
30 bool is_started_; | 28 bool is_started_; |
31 | 29 |
32 DISALLOW_COPY_AND_ASSIGN(RemoteDebuggingServer); | 30 DISALLOW_COPY_AND_ASSIGN(RemoteDebuggingServer); |
33 }; | 31 }; |
34 | 32 |
35 } // namespace shell | 33 } // namespace shell |
36 } // namespace chromecast | 34 } // namespace chromecast |
37 | 35 |
38 #endif // CHROMECAST_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_ | 36 #endif // CHROMECAST_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_ |
OLD | NEW |