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