Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/ui/webui/devtools_ui.h" | 5 #include "chrome/browser/ui/webui/devtools_ui.h" |
| 6 | 6 |
| 7 #include "base/macros.h" | 7 #include "base/macros.h" |
| 8 #include "base/memory/ref_counted_memory.h" | 8 #include "base/memory/ref_counted_memory.h" |
| 9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
| 10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
| 11 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
| 12 #include "chrome/common/url_constants.h" | 12 #include "chrome/common/url_constants.h" |
| 13 #include "content/public/browser/browser_thread.h" | 13 #include "content/public/browser/browser_thread.h" |
| 14 #include "content/public/browser/devtools_frontend_host.h" | 14 #include "content/public/browser/devtools_frontend_host.h" |
| 15 #include "content/public/browser/url_data_source.h" | 15 #include "content/public/browser/url_data_source.h" |
| 16 #include "content/public/browser/web_contents.h" | 16 #include "content/public/browser/web_contents.h" |
| 17 #include "content/public/browser/web_ui.h" | 17 #include "content/public/browser/web_ui.h" |
| 18 #include "content/public/common/user_agent.h" | 18 #include "content/public/common/user_agent.h" |
| 19 #include "net/base/url_util.h" | |
|
dgozman
2016/08/10 23:13:43
Revert this one.
eostroukhov
2016/08/10 23:31:08
Done.
| |
| 19 #include "net/url_request/url_fetcher.h" | 20 #include "net/url_request/url_fetcher.h" |
| 20 #include "net/url_request/url_fetcher_delegate.h" | 21 #include "net/url_request/url_fetcher_delegate.h" |
| 21 #include "net/url_request/url_request_context_getter.h" | 22 #include "net/url_request/url_request_context_getter.h" |
| 22 | 23 |
| 23 using content::BrowserThread; | 24 using content::BrowserThread; |
| 24 using content::WebContents; | 25 using content::WebContents; |
| 25 | 26 |
| 26 namespace { | 27 namespace { |
| 27 | 28 |
| 28 std::string PathWithoutParams(const std::string& path) { | 29 std::string PathWithoutParams(const std::string& path) { |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 264 bindings_(web_ui->GetWebContents()) { | 265 bindings_(web_ui->GetWebContents()) { |
| 265 web_ui->SetBindings(0); | 266 web_ui->SetBindings(0); |
| 266 Profile* profile = Profile::FromWebUI(web_ui); | 267 Profile* profile = Profile::FromWebUI(web_ui); |
| 267 content::URLDataSource::Add( | 268 content::URLDataSource::Add( |
| 268 profile, | 269 profile, |
| 269 new DevToolsDataSource(profile->GetRequestContext())); | 270 new DevToolsDataSource(profile->GetRequestContext())); |
| 270 } | 271 } |
| 271 | 272 |
| 272 DevToolsUI::~DevToolsUI() { | 273 DevToolsUI::~DevToolsUI() { |
| 273 } | 274 } |
| OLD | NEW |