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

Unified Diff: content/public/browser/android/devtools_server.h

Issue 10540094: Add RemoteDebuggingController.java and its (native) dependencies. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync Created 8 years, 5 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
« no previous file with comments | « content/public/android/java/src/org/chromium/content/browser/RemoteDebuggingController.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/android/devtools_server.h
diff --git a/content/public/browser/android/devtools_server.h b/content/public/browser/android/devtools_server.h
new file mode 100644
index 0000000000000000000000000000000000000000..6bcf1dd3e0ccc63aedae4b379dc4679bd4debaf8
--- /dev/null
+++ b/content/public/browser/android/devtools_server.h
@@ -0,0 +1,53 @@
+// Copyright (c) 2012 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 CONTENT_PUBLIC_BROWSER_ANDROID_DEVTOOLS_SERVER_H_
+#define CONTENT_PUBLIC_BROWSER_ANDROID_DEVTOOLS_SERVER_H_
+
+#include <string>
+
+#include "base/callback_forward.h"
+
+namespace net {
+class URLRequestContextGetter;
+}
+
+namespace content {
+
+class DevToolsHttpHandlerDelegate;
+
+// This class controls Developer Tools remote debugging server.
+class DevToolsServer {
+ public:
+ // A callback being called each time the server restarts.
+ // The delegate instance is deleted on server stop, so the creator must
+ // provide the new instance on each call.
+ typedef base::Callback<content::DevToolsHttpHandlerDelegate*(void)>
+ DelegateCreator;
+
+ // Returns the singleton instance (and initializes it if necessary).
+ static DevToolsServer* GetInstance();
+
+ // Initializes the server. Must be called prior to the first call of |Start|.
+ virtual void Init(const std::string& frontend_version,
+ net::URLRequestContextGetter* url_request_context,
+ const DelegateCreator& delegate_creator) = 0;
+
+ // Opens linux abstract socket to be ready for remote debugging.
+ virtual void Start() = 0;
+
+ // Closes debugging socket, stops debugging.
+ virtual void Stop() = 0;
+
+ virtual bool IsInitialized() const = 0;
+
+ virtual bool IsStarted() const = 0;
+
+ protected:
+ virtual ~DevToolsServer() {}
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_BROWSER_ANDROID_DEVTOOLS_SERVER_H_
« no previous file with comments | « content/public/android/java/src/org/chromium/content/browser/RemoteDebuggingController.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698