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

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

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
« no previous file with comments | « no previous file | components/dom_distiller/content/dom_distiller_viewer_source.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef COMPONENTS_DOM_DISTILLER_CONTENT_DOM_DISTILLER_VIEWER_SOURCE_H_ 5 #ifndef COMPONENTS_DOM_DISTILLER_CONTENT_DOM_DISTILLER_VIEWER_SOURCE_H_
6 #define COMPONENTS_DOM_DISTILLER_CONTENT_DOM_DISTILLER_VIEWER_SOURCE_H_ 6 #define COMPONENTS_DOM_DISTILLER_CONTENT_DOM_DISTILLER_VIEWER_SOURCE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 21 matching lines...) Expand all
32 void StartDataRequest( 32 void StartDataRequest(
33 const std::string& path, 33 const std::string& path,
34 int render_process_id, 34 int render_process_id,
35 int render_frame_id, 35 int render_frame_id,
36 const content::URLDataSource::GotDataCallback& callback) override; 36 const content::URLDataSource::GotDataCallback& callback) override;
37 std::string GetMimeType(const std::string& path) const override; 37 std::string GetMimeType(const std::string& path) const override;
38 bool ShouldServiceRequest(const net::URLRequest* request) const override; 38 bool ShouldServiceRequest(const net::URLRequest* request) const override;
39 void WillServiceRequest(const net::URLRequest* request, 39 void WillServiceRequest(const net::URLRequest* request,
40 std::string* path) const override; 40 std::string* path) const override;
41 std::string GetContentSecurityPolicyObjectSrc() const override; 41 std::string GetContentSecurityPolicyObjectSrc() const override;
42 std::string GetContentSecurityPolicyFrameSrc() const override;
42 43
43 private: 44 private:
44 friend class DomDistillerViewerSourceTest; 45 friend class DomDistillerViewerSourceTest;
45 46
46 // The scheme this URLDataSource is hosted under. 47 // The scheme this URLDataSource is hosted under.
47 std::string scheme_; 48 std::string scheme_;
48 49
49 // The service which contains all the functionality needed to interact with 50 // The service which contains all the functionality needed to interact with
50 // the list of articles. 51 // the list of articles.
51 DomDistillerServiceInterface* dom_distiller_service_; 52 DomDistillerServiceInterface* dom_distiller_service_;
52 53
53 DISALLOW_COPY_AND_ASSIGN(DomDistillerViewerSource); 54 DISALLOW_COPY_AND_ASSIGN(DomDistillerViewerSource);
54 }; 55 };
55 56
56 } // namespace dom_distiller 57 } // namespace dom_distiller
57 58
58 #endif // COMPONENTS_DOM_DISTILLER_CONTENT_DOM_DISTILLER_VIEWER_SOURCE_H_ 59 #endif // COMPONENTS_DOM_DISTILLER_CONTENT_DOM_DISTILLER_VIEWER_SOURCE_H_
OLDNEW
« no previous file with comments | « no previous file | components/dom_distiller/content/dom_distiller_viewer_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698