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

Side by Side Diff: components/dom_distiller/content/browser/dom_distiller_viewer_source.cc

Issue 2003963004: Enable CSP on more WebUI pages (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@master
Patch Set: indentation Created 4 years, 6 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "components/dom_distiller/content/browser/dom_distiller_viewer_source.h " 5 #include "components/dom_distiller/content/browser/dom_distiller_viewer_source.h "
6 6
7 #include <memory> 7 #include <memory>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 const net::URLRequest* request) const { 273 const net::URLRequest* request) const {
274 return request->url().SchemeIs(scheme_.c_str()); 274 return request->url().SchemeIs(scheme_.c_str());
275 } 275 }
276 276
277 // TODO(nyquist): Start tracking requests using this method. 277 // TODO(nyquist): Start tracking requests using this method.
278 void DomDistillerViewerSource::WillServiceRequest( 278 void DomDistillerViewerSource::WillServiceRequest(
279 const net::URLRequest* request, 279 const net::URLRequest* request,
280 std::string* path) const { 280 std::string* path) const {
281 } 281 }
282 282
283 std::string DomDistillerViewerSource::GetContentSecurityPolicyObjectSrc() 283 std::string DomDistillerViewerSource::GetContentSecurityPolicyStyleSrc()
284 const { 284 const {
285 return "object-src 'none'; style-src 'self' https://fonts.googleapis.com;"; 285 return "style-src 'self' https://fonts.googleapis.com;";
286 } 286 }
287 287
288 std::string DomDistillerViewerSource::GetContentSecurityPolicyFrameSrc() const { 288 std::string DomDistillerViewerSource::GetContentSecurityPolicyFrameSrc() const {
289 return "frame-src *;"; 289 return "frame-src *;";
290 } 290 }
291 291
292 } // namespace dom_distiller 292 } // namespace dom_distiller
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698