| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/chrome_url_data_manager_backend.h" | 5 #include "chrome/browser/ui/webui/chrome_url_data_manager_backend.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 insert(chrome::kChromeUISystemInfoHost); | 73 insert(chrome::kChromeUISystemInfoHost); |
| 74 #endif | 74 #endif |
| 75 #if defined(TOUCH_UI) | 75 #if defined(TOUCH_UI) |
| 76 insert(chrome::kChromeUIKeyboardHost); | 76 insert(chrome::kChromeUIKeyboardHost); |
| 77 #endif | 77 #endif |
| 78 #if defined(OS_CHROMEOS) || defined(TOUCH_UI) || defined(USE_AURA) | 78 #if defined(OS_CHROMEOS) || defined(TOUCH_UI) || defined(USE_AURA) |
| 79 insert(chrome::kChromeUICollectedCookiesHost); | 79 insert(chrome::kChromeUICollectedCookiesHost); |
| 80 insert(chrome::kChromeUIHttpAuthHost); | 80 insert(chrome::kChromeUIHttpAuthHost); |
| 81 insert(chrome::kChromeUIRepostFormWarningHost); | 81 insert(chrome::kChromeUIRepostFormWarningHost); |
| 82 #endif | 82 #endif |
| 83 #if defined(USE_AURA) |
| 84 insert(chrome::kChromeUIAppListHost); |
| 85 #endif |
| 83 } | 86 } |
| 84 }; | 87 }; |
| 85 | 88 |
| 86 base::LazyInstance<ChromeURLContentSecurityPolicyExceptionSet> | 89 base::LazyInstance<ChromeURLContentSecurityPolicyExceptionSet> |
| 87 g_chrome_url_content_security_policy_exceptions(base::LINKER_INITIALIZED); | 90 g_chrome_url_content_security_policy_exceptions(base::LINKER_INITIALIZED); |
| 88 | 91 |
| 89 // Parse a URL into the components used to resolve its request. |source_name| | 92 // Parse a URL into the components used to resolve its request. |source_name| |
| 90 // is the hostname and |path| is the remaining portion of the URL. | 93 // is the hostname and |path| is the remaining portion of the URL. |
| 91 void URLToRequest(const GURL& url, std::string* source_name, | 94 void URLToRequest(const GURL& url, std::string* source_name, |
| 92 std::string* path) { | 95 std::string* path) { |
| (...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 546 | 549 |
| 547 return new URLRequestChromeJob(request, backend_); | 550 return new URLRequestChromeJob(request, backend_); |
| 548 } | 551 } |
| 549 | 552 |
| 550 } // namespace | 553 } // namespace |
| 551 | 554 |
| 552 net::URLRequestJobFactory::ProtocolHandler* | 555 net::URLRequestJobFactory::ProtocolHandler* |
| 553 CreateDevToolsProtocolHandler(ChromeURLDataManagerBackend* backend) { | 556 CreateDevToolsProtocolHandler(ChromeURLDataManagerBackend* backend) { |
| 554 return new DevToolsJobFactory(backend); | 557 return new DevToolsJobFactory(backend); |
| 555 } | 558 } |
| OLD | NEW |