OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/distiller_javascript_service_
impl.h" | 5 #include "components/dom_distiller/content/browser/distiller_javascript_service_
impl.h" |
6 #include "components/dom_distiller/content/browser/distiller_ui_handle.h" | 6 #include "components/dom_distiller/content/browser/distiller_ui_handle.h" |
7 #include "components/dom_distiller/core/feedback_reporter.h" | 7 #include "components/dom_distiller/core/feedback_reporter.h" |
8 #include "content/public/browser/user_metrics.h" | 8 #include "content/public/browser/user_metrics.h" |
9 #include "third_party/mojo/src/mojo/public/cpp/bindings/string.h" | 9 #include "mojo/public/cpp/bindings/string.h" |
10 | 10 |
11 namespace dom_distiller { | 11 namespace dom_distiller { |
12 | 12 |
13 DistillerJavaScriptServiceImpl::DistillerJavaScriptServiceImpl( | 13 DistillerJavaScriptServiceImpl::DistillerJavaScriptServiceImpl( |
14 content::RenderFrameHost* render_frame_host, | 14 content::RenderFrameHost* render_frame_host, |
15 DistillerUIHandle* distiller_ui_handle, | 15 DistillerUIHandle* distiller_ui_handle, |
16 mojo::InterfaceRequest<DistillerJavaScriptService> request) | 16 mojo::InterfaceRequest<DistillerJavaScriptService> request) |
17 : binding_(this, request.Pass()), | 17 : binding_(this, request.Pass()), |
18 render_frame_host_(render_frame_host), | 18 render_frame_host_(render_frame_host), |
19 distiller_ui_handle_(distiller_ui_handle) {} | 19 distiller_ui_handle_(distiller_ui_handle) {} |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 void CreateDistillerJavaScriptService( | 57 void CreateDistillerJavaScriptService( |
58 content::RenderFrameHost* render_frame_host, | 58 content::RenderFrameHost* render_frame_host, |
59 DistillerUIHandle* distiller_ui_handle, | 59 DistillerUIHandle* distiller_ui_handle, |
60 mojo::InterfaceRequest<DistillerJavaScriptService> request) { | 60 mojo::InterfaceRequest<DistillerJavaScriptService> request) { |
61 // This is strongly bound and owned by the pipe. | 61 // This is strongly bound and owned by the pipe. |
62 new DistillerJavaScriptServiceImpl(render_frame_host, distiller_ui_handle, | 62 new DistillerJavaScriptServiceImpl(render_frame_host, distiller_ui_handle, |
63 request.Pass()); | 63 request.Pass()); |
64 } | 64 } |
65 | 65 |
66 } // namespace dom_distiller | 66 } // namespace dom_distiller |
OLD | NEW |