OLD | NEW |
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/dom_distiller_viewer_source.h" | 5 #include "components/dom_distiller/content/dom_distiller_viewer_source.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 void DomDistillerViewerSource::WillServiceRequest( | 341 void DomDistillerViewerSource::WillServiceRequest( |
342 const net::URLRequest* request, | 342 const net::URLRequest* request, |
343 std::string* path) const { | 343 std::string* path) const { |
344 } | 344 } |
345 | 345 |
346 std::string DomDistillerViewerSource::GetContentSecurityPolicyObjectSrc() | 346 std::string DomDistillerViewerSource::GetContentSecurityPolicyObjectSrc() |
347 const { | 347 const { |
348 return "object-src 'none'; style-src 'self' https://fonts.googleapis.com;"; | 348 return "object-src 'none'; style-src 'self' https://fonts.googleapis.com;"; |
349 } | 349 } |
350 | 350 |
| 351 std::string DomDistillerViewerSource::GetContentSecurityPolicyFrameSrc() const { |
| 352 return "frame-src *;"; |
| 353 } |
| 354 |
351 } // namespace dom_distiller | 355 } // namespace dom_distiller |
OLD | NEW |