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