Index: chromecast/shell/browser/devtools/remote_debugging_server.h |
diff --git a/chromecast/shell/browser/devtools/remote_debugging_server.h b/chromecast/shell/browser/devtools/remote_debugging_server.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f4351fa998f77756a2bda8707ad110a57a777639 |
--- /dev/null |
+++ b/chromecast/shell/browser/devtools/remote_debugging_server.h |
@@ -0,0 +1,41 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROMECAST_SHELL_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_ |
+#define CHROMECAST_SHELL_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_ |
+ |
+#include "base/prefs/pref_member.h" |
+ |
+namespace content { |
+class DevToolsHttpHandler; |
+} // namespace content |
+ |
+namespace chromecast { |
+namespace shell { |
+ |
+class RemoteDebuggingServer { |
+ public: |
+ RemoteDebuggingServer(); |
+ ~RemoteDebuggingServer(); |
+ |
+ private: |
+ // Called on port number changed. |
+ void OnPortChanged(); |
+ |
+ // Returns whether or not the remote debugging server should be available |
+ // on device startup. |
+ bool ShouldStartImmediately(); |
+ |
+ content::DevToolsHttpHandler* devtools_http_handler_; |
+ |
+ IntegerPrefMember pref_port_; |
+ int port_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(RemoteDebuggingServer); |
+}; |
+ |
+} // namespace shell |
+} // namespace chromecast |
+ |
+#endif // CHROMECAST_SHELL_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_ |