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

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

Issue 2844923002: Replace InterfaceRegistry on RenderFrameHostImpl with BinderRegistry (Closed)
Patch Set: . Created 3 years, 7 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/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 22 matching lines...) Expand all
33 #include "components/strings/grit/components_strings.h" 33 #include "components/strings/grit/components_strings.h"
34 #include "content/public/browser/navigation_details.h" 34 #include "content/public/browser/navigation_details.h"
35 #include "content/public/browser/navigation_entry.h" 35 #include "content/public/browser/navigation_entry.h"
36 #include "content/public/browser/navigation_handle.h" 36 #include "content/public/browser/navigation_handle.h"
37 #include "content/public/browser/render_frame_host.h" 37 #include "content/public/browser/render_frame_host.h"
38 #include "content/public/browser/web_contents.h" 38 #include "content/public/browser/web_contents.h"
39 #include "content/public/browser/web_contents_observer.h" 39 #include "content/public/browser/web_contents_observer.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/binder_registry.h"
43 #include "services/service_manager/public/cpp/interface_provider.h" 44 #include "services/service_manager/public/cpp/interface_provider.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
50 // it along to the data callback for the data source. Lifetime matches that of 50 // it along to the data callback for the data source. Lifetime matches that of
51 // the current main frame's page in the Viewer instance. 51 // the current main frame's page in the Viewer instance.
52 class DomDistillerViewerSource::RequestViewerHandle 52 class DomDistillerViewerSource::RequestViewerHandle
53 : public DomDistillerRequestViewBase, 53 : public DomDistillerRequestViewBase,
54 public content::WebContentsObserver { 54 public content::WebContentsObserver {
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « components/dom_distiller/content/browser/distillability_driver.cc ('k') | components/filesystem/file_system_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698