| 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/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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 // Instead, you must go back and change your WebUI page so that it is compliant | 58 // Instead, you must go back and change your WebUI page so that it is compliant |
| 59 // with the policy. This typically involves ensuring that all script is | 59 // with the policy. This typically involves ensuring that all script is |
| 60 // delivered through the data manager backend. | 60 // delivered through the data manager backend. |
| 61 class ChromeURLContentSecurityPolicyExceptionSet | 61 class ChromeURLContentSecurityPolicyExceptionSet |
| 62 : public std::set<std::string> { | 62 : public std::set<std::string> { |
| 63 public: | 63 public: |
| 64 ChromeURLContentSecurityPolicyExceptionSet() : std::set<std::string>() { | 64 ChromeURLContentSecurityPolicyExceptionSet() : std::set<std::string>() { |
| 65 // TODO(tsepez) whittle this list down to nothing. | 65 // TODO(tsepez) whittle this list down to nothing. |
| 66 insert(chrome::kChromeUICloudPrintResourcesHost); | 66 insert(chrome::kChromeUICloudPrintResourcesHost); |
| 67 insert(chrome::kChromeUICloudPrintSetupHost); | 67 insert(chrome::kChromeUICloudPrintSetupHost); |
| 68 insert(chrome::kChromeUICreditsHost); | |
| 69 insert(chrome::kChromeUIDevToolsHost); | 68 insert(chrome::kChromeUIDevToolsHost); |
| 70 insert(chrome::kChromeUIDialogHost); | 69 insert(chrome::kChromeUIDialogHost); |
| 71 insert(chrome::kChromeUIInputWindowDialogHost); | 70 insert(chrome::kChromeUIInputWindowDialogHost); |
| 72 insert(chrome::kChromeUINewTabHost); | 71 insert(chrome::kChromeUINewTabHost); |
| 73 #if defined(OS_CHROMEOS) | 72 #if defined(OS_CHROMEOS) |
| 74 insert(chrome::kChromeUIMobileSetupHost); | 73 insert(chrome::kChromeUIMobileSetupHost); |
| 75 insert(chrome::kChromeUIOobeHost); | 74 insert(chrome::kChromeUIOobeHost); |
| 76 insert(chrome::kChromeUIOSCreditsHost); | 75 insert(chrome::kChromeUIOSCreditsHost); |
| 77 insert(chrome::kChromeUIProxySettingsHost); | 76 insert(chrome::kChromeUIProxySettingsHost); |
| 78 insert(chrome::kChromeUIRegisterPageHost); | 77 insert(chrome::kChromeUIRegisterPageHost); |
| (...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 553 | 552 |
| 554 return new URLRequestChromeJob(request, backend_); | 553 return new URLRequestChromeJob(request, backend_); |
| 555 } | 554 } |
| 556 | 555 |
| 557 } // namespace | 556 } // namespace |
| 558 | 557 |
| 559 net::URLRequestJobFactory::ProtocolHandler* | 558 net::URLRequestJobFactory::ProtocolHandler* |
| 560 CreateDevToolsProtocolHandler(ChromeURLDataManagerBackend* backend) { | 559 CreateDevToolsProtocolHandler(ChromeURLDataManagerBackend* backend) { |
| 561 return new DevToolsJobFactory(backend); | 560 return new DevToolsJobFactory(backend); |
| 562 } | 561 } |
| OLD | NEW |