| 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 #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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "content/public/browser/url_data_source.h" | 10 #include "content/public/browser/url_data_source.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 virtual void StartDataRequest( | 26 virtual void StartDataRequest( |
| 27 const std::string& path, | 27 const std::string& path, |
| 28 int render_process_id, | 28 int render_process_id, |
| 29 int render_frame_id, | 29 int render_frame_id, |
| 30 const content::URLDataSource::GotDataCallback& callback) OVERRIDE; | 30 const content::URLDataSource::GotDataCallback& callback) OVERRIDE; |
| 31 virtual std::string GetMimeType(const std::string& path) const OVERRIDE; | 31 virtual std::string GetMimeType(const std::string& path) const OVERRIDE; |
| 32 virtual bool ShouldServiceRequest(const net::URLRequest* request) | 32 virtual bool ShouldServiceRequest(const net::URLRequest* request) |
| 33 const OVERRIDE; | 33 const OVERRIDE; |
| 34 virtual void WillServiceRequest(const net::URLRequest* request, | 34 virtual void WillServiceRequest(const net::URLRequest* request, |
| 35 std::string* path) const OVERRIDE; | 35 std::string* path) const OVERRIDE; |
| 36 virtual std::string GetContentSecurityPolicyObjectSrc() const OVERRIDE; |
| 36 | 37 |
| 37 // The scheme this URLDataSource is hosted under. | 38 // The scheme this URLDataSource is hosted under. |
| 38 std::string scheme_; | 39 std::string scheme_; |
| 39 | 40 |
| 40 // The service which contains all the functionality needed to interact with | 41 // The service which contains all the functionality needed to interact with |
| 41 // the list of articles. | 42 // the list of articles. |
| 42 DomDistillerService* dom_distiller_service_; | 43 DomDistillerService* dom_distiller_service_; |
| 43 | 44 |
| 44 DISALLOW_COPY_AND_ASSIGN(DomDistillerViewerSource); | 45 DISALLOW_COPY_AND_ASSIGN(DomDistillerViewerSource); |
| 45 }; | 46 }; |
| 46 | 47 |
| 47 } // namespace dom_distiller | 48 } // namespace dom_distiller |
| 48 | 49 |
| 49 #endif // COMPONENTS_DOM_DISTILLER_CONTENT_DOM_DISTILLER_VIEWER_SOURCE_H_ | 50 #endif // COMPONENTS_DOM_DISTILLER_CONTENT_DOM_DISTILLER_VIEWER_SOURCE_H_ |
| OLD | NEW |