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 COMPONENTS_DEVTOOLS_REMOTE_FRONTEND_DEVTOOLS_REMOTE_FRONTEND_UTIL_H_ |
| 6 #define COMPONENTS_DEVTOOLS_REMOTE_FRONTEND_DEVTOOLS_REMOTE_FRONTEND_UTIL_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 class GURL; |
| 11 |
| 12 namespace devtools_remote_frontend { |
| 13 |
| 14 // Returns the URL for a DevTools resource with the given |path| |
| 15 std::string GetDevToolsFrontendResourceURL(const std::string& path); |
| 16 |
| 17 // Returns the URL of the DevTools frontend main page (devtools.html) |
| 18 std::string GetDevToolsFrontendMainResourceURL(); |
| 19 |
| 20 // Checks, if |url| points to DevTools frontend cloud host |
| 21 bool IsDevToolsFrontendHost(const GURL& url); |
| 22 |
| 23 // Creates a socket name for DevTools backend on a mobile device with |
| 24 // the given |prefix| |
| 25 std::string GetDevToolsServerSocketName(const std::string& prefix); |
| 26 |
| 27 // Returns the common suffix for DevTools backend socket names |
| 28 std::string GetDevToolsServerSocketSuffix(); |
| 29 |
| 30 } // namespace devtools_remote_frontend |
| 31 |
| 32 #endif // COMPONENTS_DEVTOOLS_REMOTE_FRONTEND_DEVTOOLS_REMOTE_FRONTEND_UTIL_H_ |
OLD | NEW |