Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8111)

Unified Diff: chromecast/shell/browser/devtools/remote_debugging_server.h

Issue 454063004: Adds remote devtools support to cast_shell. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698