OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROMECAST_SHELL_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_ |
| 6 #define CHROMECAST_SHELL_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_ |
| 7 |
| 8 #include "base/prefs/pref_member.h" |
| 9 |
| 10 namespace content { |
| 11 class DevToolsHttpHandler; |
| 12 } // namespace content |
| 13 |
| 14 namespace chromecast { |
| 15 namespace shell { |
| 16 |
| 17 class RemoteDebuggingServer { |
| 18 public: |
| 19 RemoteDebuggingServer(); |
| 20 ~RemoteDebuggingServer(); |
| 21 |
| 22 private: |
| 23 // Called on port number changed. |
| 24 void OnPortChanged(); |
| 25 |
| 26 // Returns whether or not the remote debugging server should be available |
| 27 // on device startup. |
| 28 bool ShouldStartImmediately(); |
| 29 |
| 30 content::DevToolsHttpHandler* devtools_http_handler_; |
| 31 |
| 32 IntegerPrefMember pref_port_; |
| 33 int port_; |
| 34 |
| 35 DISALLOW_COPY_AND_ASSIGN(RemoteDebuggingServer); |
| 36 }; |
| 37 |
| 38 } // namespace shell |
| 39 } // namespace chromecast |
| 40 |
| 41 #endif // CHROMECAST_SHELL_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_ |
OLD | NEW |