OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2013 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 CONTENT_PUBLIC_BROWSER_DEVTOOLS_REMOTE_FRONTEND_UTIL_H_ | |
6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_REMOTE_FRONTEND_UTIL_H_ | |
7 | |
8 #include <string> | |
9 | |
10 #include "content/common/content_export.h" | |
11 | |
12 class GURL; | |
13 | |
14 namespace content { | |
15 | |
16 // Returns the URL for a DevTools resource with the given |path| | |
17 CONTENT_EXPORT std::string GetDevToolsFrontendResourceURL( | |
pfeldman
2013/06/18 17:20:01
It sounds like both: consumers and providers for t
| |
18 const std::string& path); | |
19 | |
20 // Returns the URL of the DevTools frontend main page (devtools.html) | |
21 CONTENT_EXPORT std::string GetDevToolsFrontendMainResourceURL(); | |
22 | |
23 // Checks, if |url| points to DevTools frontend cloud host | |
24 CONTENT_EXPORT bool IsDevToolsFrontendHost(const GURL& url); | |
25 | |
26 // Creates a socket name for DevTools backend on a mobile device with | |
27 // the given |prefix| | |
28 CONTENT_EXPORT std::string GetDevToolsServerSocketName( | |
29 const std::string& prefix); | |
30 | |
31 // Returns the common suffix for DevTools backend socket names | |
32 CONTENT_EXPORT std::string GetDevToolsServerSocketSuffix(); | |
33 | |
34 } // namespace content | |
35 | |
36 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_REMOTE_FRONTEND_UTIL_H_ | |
OLD | NEW |