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 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
10 #include "components/dom_distiller/content/browser/distiller_ui_handle.h" | 10 #include "components/dom_distiller/content/browser/distiller_ui_handle.h" |
11 #include "components/dom_distiller/core/feedback_reporter.h" | 11 #include "components/dom_distiller/core/feedback_reporter.h" |
12 #include "content/public/browser/user_metrics.h" | 12 #include "content/public/browser/user_metrics.h" |
13 #include "mojo/public/cpp/bindings/string.h" | |
14 #include "mojo/public/cpp/bindings/strong_binding.h" | 13 #include "mojo/public/cpp/bindings/strong_binding.h" |
15 | 14 |
16 namespace dom_distiller { | 15 namespace dom_distiller { |
17 | 16 |
18 DistillerJavaScriptServiceImpl::DistillerJavaScriptServiceImpl( | 17 DistillerJavaScriptServiceImpl::DistillerJavaScriptServiceImpl( |
19 content::RenderFrameHost* render_frame_host, | 18 content::RenderFrameHost* render_frame_host, |
20 DistillerUIHandle* distiller_ui_handle) | 19 DistillerUIHandle* distiller_ui_handle) |
21 : render_frame_host_(render_frame_host), | 20 : render_frame_host_(render_frame_host), |
22 distiller_ui_handle_(distiller_ui_handle) {} | 21 distiller_ui_handle_(distiller_ui_handle) {} |
23 | 22 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 void CreateDistillerJavaScriptService( | 61 void CreateDistillerJavaScriptService( |
63 content::RenderFrameHost* render_frame_host, | 62 content::RenderFrameHost* render_frame_host, |
64 DistillerUIHandle* distiller_ui_handle, | 63 DistillerUIHandle* distiller_ui_handle, |
65 mojo::InterfaceRequest<mojom::DistillerJavaScriptService> request) { | 64 mojo::InterfaceRequest<mojom::DistillerJavaScriptService> request) { |
66 mojo::MakeStrongBinding(base::MakeUnique<DistillerJavaScriptServiceImpl>( | 65 mojo::MakeStrongBinding(base::MakeUnique<DistillerJavaScriptServiceImpl>( |
67 render_frame_host, distiller_ui_handle), | 66 render_frame_host, distiller_ui_handle), |
68 std::move(request)); | 67 std::move(request)); |
69 } | 68 } |
70 | 69 |
71 } // namespace dom_distiller | 70 } // namespace dom_distiller |
OLD | NEW |