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

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

Issue 880983007: Iframe placeholders, security and resizing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 8 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/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 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 void DomDistillerViewerSource::WillServiceRequest( 368 void DomDistillerViewerSource::WillServiceRequest(
369 const net::URLRequest* request, 369 const net::URLRequest* request,
370 std::string* path) const { 370 std::string* path) const {
371 } 371 }
372 372
373 std::string DomDistillerViewerSource::GetContentSecurityPolicyObjectSrc() 373 std::string DomDistillerViewerSource::GetContentSecurityPolicyObjectSrc()
374 const { 374 const {
375 return "object-src 'none'; style-src 'self' https://fonts.googleapis.com;"; 375 return "object-src 'none'; style-src 'self' https://fonts.googleapis.com;";
376 } 376 }
377 377
378 std::string DomDistillerViewerSource::GetContentSecurityPolicyFrameSrc() const {
379 return "frame-src *;";
380 }
381
378 } // namespace dom_distiller 382 } // namespace dom_distiller
OLDNEW
« no previous file with comments | « components/dom_distiller/content/dom_distiller_viewer_source.h ('k') | components/dom_distiller/core/css/distilledpage.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698