Index: content/public/browser/devtools_remote_frontend_util.h |
diff --git a/content/public/browser/devtools_remote_frontend_util.h b/content/public/browser/devtools_remote_frontend_util.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..79a43a8d0bd97c4c4e785e2fd4f8e86fed275ee1 |
--- /dev/null |
+++ b/content/public/browser/devtools_remote_frontend_util.h |
@@ -0,0 +1,36 @@ |
+// Copyright (c) 2013 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_DEVTOOLS_REMOTE_FRONTEND_UTIL_H_ |
+#define CONTENT_PUBLIC_BROWSER_DEVTOOLS_REMOTE_FRONTEND_UTIL_H_ |
+ |
+#include <string> |
+ |
+#include "content/common/content_export.h" |
+ |
+class GURL; |
+ |
+namespace content { |
+ |
+// Returns the URL for a DevTools resource with the given |path| |
+CONTENT_EXPORT std::string GetDevToolsFrontendResourceURL( |
pfeldman
2013/06/18 17:20:01
It sounds like both: consumers and providers for t
|
+ const std::string& path); |
+ |
+// Returns the URL of the DevTools frontend main page (devtools.html) |
+CONTENT_EXPORT std::string GetDevToolsFrontendMainResourceURL(); |
+ |
+// Checks, if |url| points to DevTools frontend cloud host |
+CONTENT_EXPORT bool IsDevToolsFrontendHost(const GURL& url); |
+ |
+// Creates a socket name for DevTools backend on a mobile device with |
+// the given |prefix| |
+CONTENT_EXPORT std::string GetDevToolsServerSocketName( |
+ const std::string& prefix); |
+ |
+// Returns the common suffix for DevTools backend socket names |
+CONTENT_EXPORT std::string GetDevToolsServerSocketSuffix(); |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_REMOTE_FRONTEND_UTIL_H_ |