зеркало из https://github.com/electron/electron.git
DevTools: move remote debugging hosted URL to single location.
https://chromium-review.googlesource.com/905983
This commit is contained in:
Родитель
8020cd9994
Коммит
cb604026d6
|
@ -84,7 +84,7 @@ std::unique_ptr<content::DevToolsSocketFactory> CreateSocketFactory() {
|
||||||
// static
|
// static
|
||||||
void DevToolsManagerDelegate::StartHttpHandler() {
|
void DevToolsManagerDelegate::StartHttpHandler() {
|
||||||
content::DevToolsAgentHost::StartRemoteDebuggingServer(
|
content::DevToolsAgentHost::StartRemoteDebuggingServer(
|
||||||
CreateSocketFactory(), std::string(), base::FilePath(), base::FilePath());
|
CreateSocketFactory(), base::FilePath(), base::FilePath());
|
||||||
}
|
}
|
||||||
|
|
||||||
DevToolsManagerDelegate::DevToolsManagerDelegate() {}
|
DevToolsManagerDelegate::DevToolsManagerDelegate() {}
|
||||||
|
@ -111,9 +111,8 @@ std::string DevToolsManagerDelegate::GetDiscoveryPageHTML() {
|
||||||
.as_string();
|
.as_string();
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string DevToolsManagerDelegate::GetFrontendResource(
|
bool DevToolsManagerDelegate::HasBundledFrontendResources() {
|
||||||
const std::string& path) {
|
return true;
|
||||||
return content::DevToolsFrontendHost::GetFrontendResource(path).as_string();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace brightray
|
} // namespace brightray
|
||||||
|
|
|
@ -28,7 +28,7 @@ class DevToolsManagerDelegate : public content::DevToolsManagerDelegate {
|
||||||
scoped_refptr<content::DevToolsAgentHost> CreateNewTarget(
|
scoped_refptr<content::DevToolsAgentHost> CreateNewTarget(
|
||||||
const GURL& url) override;
|
const GURL& url) override;
|
||||||
std::string GetDiscoveryPageHTML() override;
|
std::string GetDiscoveryPageHTML() override;
|
||||||
std::string GetFrontendResource(const std::string& path) override;
|
bool HasBundledFrontendResources() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DISALLOW_COPY_AND_ASSIGN(DevToolsManagerDelegate);
|
DISALLOW_COPY_AND_ASSIGN(DevToolsManagerDelegate);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче