Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Side by Side Diff: chrome/browser/ui/webui/chrome_url_data_manager_backend.cc

Issue 9362009: Correctly enable CSP for about:credits (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/resources/about_credits.tmpl ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/resources/about_credits.tmpl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698