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/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 12 matching lines...) Expand all Loading... |
23 #include "components/dom_distiller/content/common/distiller_page_notifier_servic
e.mojom.h" | 23 #include "components/dom_distiller/content/common/distiller_page_notifier_servic
e.mojom.h" |
24 #include "components/dom_distiller/core/distilled_page_prefs.h" | 24 #include "components/dom_distiller/core/distilled_page_prefs.h" |
25 #include "components/dom_distiller/core/dom_distiller_request_view_base.h" | 25 #include "components/dom_distiller/core/dom_distiller_request_view_base.h" |
26 #include "components/dom_distiller/core/dom_distiller_service.h" | 26 #include "components/dom_distiller/core/dom_distiller_service.h" |
27 #include "components/dom_distiller/core/experiments.h" | 27 #include "components/dom_distiller/core/experiments.h" |
28 #include "components/dom_distiller/core/feedback_reporter.h" | 28 #include "components/dom_distiller/core/feedback_reporter.h" |
29 #include "components/dom_distiller/core/task_tracker.h" | 29 #include "components/dom_distiller/core/task_tracker.h" |
30 #include "components/dom_distiller/core/url_constants.h" | 30 #include "components/dom_distiller/core/url_constants.h" |
31 #include "components/dom_distiller/core/url_utils.h" | 31 #include "components/dom_distiller/core/url_utils.h" |
32 #include "components/dom_distiller/core/viewer.h" | 32 #include "components/dom_distiller/core/viewer.h" |
| 33 #include "components/strings/grit/components_strings.h" |
33 #include "content/public/browser/navigation_details.h" | 34 #include "content/public/browser/navigation_details.h" |
34 #include "content/public/browser/navigation_entry.h" | 35 #include "content/public/browser/navigation_entry.h" |
35 #include "content/public/browser/navigation_handle.h" | 36 #include "content/public/browser/navigation_handle.h" |
36 #include "content/public/browser/render_frame_host.h" | 37 #include "content/public/browser/render_frame_host.h" |
37 #include "content/public/browser/web_contents.h" | 38 #include "content/public/browser/web_contents.h" |
38 #include "content/public/browser/web_contents_observer.h" | 39 #include "content/public/browser/web_contents_observer.h" |
39 #include "grit/components_strings.h" | |
40 #include "mojo/public/cpp/bindings/strong_binding.h" | 40 #include "mojo/public/cpp/bindings/strong_binding.h" |
41 #include "net/base/url_util.h" | 41 #include "net/base/url_util.h" |
42 #include "net/url_request/url_request.h" | 42 #include "net/url_request/url_request.h" |
43 #include "services/service_manager/public/cpp/interface_provider.h" | 43 #include "services/service_manager/public/cpp/interface_provider.h" |
44 #include "services/service_manager/public/cpp/interface_registry.h" | 44 #include "services/service_manager/public/cpp/interface_registry.h" |
45 #include "ui/base/l10n/l10n_util.h" | 45 #include "ui/base/l10n/l10n_util.h" |
46 | 46 |
47 namespace dom_distiller { | 47 namespace dom_distiller { |
48 | 48 |
49 // Handles receiving data asynchronously for a specific entry, and passing | 49 // Handles receiving data asynchronously for a specific entry, and passing |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 std::string DomDistillerViewerSource::GetContentSecurityPolicyStyleSrc() | 303 std::string DomDistillerViewerSource::GetContentSecurityPolicyStyleSrc() |
304 const { | 304 const { |
305 return "style-src 'self' https://fonts.googleapis.com;"; | 305 return "style-src 'self' https://fonts.googleapis.com;"; |
306 } | 306 } |
307 | 307 |
308 std::string DomDistillerViewerSource::GetContentSecurityPolicyChildSrc() const { | 308 std::string DomDistillerViewerSource::GetContentSecurityPolicyChildSrc() const { |
309 return "child-src *;"; | 309 return "child-src *;"; |
310 } | 310 } |
311 | 311 |
312 } // namespace dom_distiller | 312 } // namespace dom_distiller |
OLD | NEW |