| Index: components/devtools_remote_frontend/devtools_remote_frontend_util.h
|
| diff --git a/components/devtools_remote_frontend/devtools_remote_frontend_util.h b/components/devtools_remote_frontend/devtools_remote_frontend_util.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..51e547106af0af762bd19c44654ad9ab5d8a8639
|
| --- /dev/null
|
| +++ b/components/devtools_remote_frontend/devtools_remote_frontend_util.h
|
| @@ -0,0 +1,32 @@
|
| +// 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 COMPONENTS_DEVTOOLS_REMOTE_FRONTEND_DEVTOOLS_REMOTE_FRONTEND_UTIL_H_
|
| +#define COMPONENTS_DEVTOOLS_REMOTE_FRONTEND_DEVTOOLS_REMOTE_FRONTEND_UTIL_H_
|
| +
|
| +#include <string>
|
| +
|
| +class GURL;
|
| +
|
| +namespace devtools_remote_frontend {
|
| +
|
| +// Returns the URL for a DevTools resource with the given |path|
|
| +std::string GetDevToolsFrontendResourceURL(const std::string& path);
|
| +
|
| +// Returns the URL of the DevTools frontend main page (devtools.html)
|
| +std::string GetDevToolsFrontendMainResourceURL();
|
| +
|
| +// Checks, if |url| points to DevTools frontend cloud host
|
| +bool IsDevToolsFrontendHost(const GURL& url);
|
| +
|
| +// Creates a socket name for DevTools backend on a mobile device with
|
| +// the given |prefix|
|
| +std::string GetDevToolsServerSocketName(const std::string& prefix);
|
| +
|
| +// Returns the common suffix for DevTools backend socket names
|
| +std::string GetDevToolsServerSocketSuffix();
|
| +
|
| +} // namespace devtools_remote_frontend
|
| +
|
| +#endif // COMPONENTS_DEVTOOLS_REMOTE_FRONTEND_DEVTOOLS_REMOTE_FRONTEND_UTIL_H_
|
|
|