| 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 #ifndef COMPONENTS_DOM_DISTILLER_CONTENT_BROWSER_DISTILLER_JAVASCRIPT_SERVICE_IM
PL_H_ | 5 #ifndef COMPONENTS_DOM_DISTILLER_CONTENT_BROWSER_DISTILLER_JAVASCRIPT_SERVICE_IM
PL_H_ |
| 6 #define COMPONENTS_DOM_DISTILLER_CONTENT_BROWSER_DISTILLER_JAVASCRIPT_SERVICE_IM
PL_H_ | 6 #define COMPONENTS_DOM_DISTILLER_CONTENT_BROWSER_DISTILLER_JAVASCRIPT_SERVICE_IM
PL_H_ |
| 7 | 7 |
| 8 #include "components/dom_distiller/content/browser/distiller_ui_handle.h" | 8 #include "components/dom_distiller/content/browser/distiller_ui_handle.h" |
| 9 #include "components/dom_distiller/content/common/distiller_javascript_service.m
ojom.h" | 9 #include "components/dom_distiller/content/common/distiller_javascript_service.m
ojom.h" |
| 10 #include "third_party/mojo/src/mojo/public/cpp/bindings/string.h" | 10 #include "mojo/public/cpp/bindings/string.h" |
| 11 #include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h" | 11 #include "mojo/public/cpp/bindings/strong_binding.h" |
| 12 | 12 |
| 13 namespace dom_distiller { | 13 namespace dom_distiller { |
| 14 | 14 |
| 15 // This is the receiving end of "distiller" JavaScript object calls. | 15 // This is the receiving end of "distiller" JavaScript object calls. |
| 16 class DistillerJavaScriptServiceImpl : public DistillerJavaScriptService { | 16 class DistillerJavaScriptServiceImpl : public DistillerJavaScriptService { |
| 17 public: | 17 public: |
| 18 DistillerJavaScriptServiceImpl( | 18 DistillerJavaScriptServiceImpl( |
| 19 content::RenderFrameHost* render_frame_host, | 19 content::RenderFrameHost* render_frame_host, |
| 20 DistillerUIHandle* distiller_ui_handle, | 20 DistillerUIHandle* distiller_ui_handle, |
| 21 mojo::InterfaceRequest<DistillerJavaScriptService> request); | 21 mojo::InterfaceRequest<DistillerJavaScriptService> request); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 44 | 44 |
| 45 // static | 45 // static |
| 46 void CreateDistillerJavaScriptService( | 46 void CreateDistillerJavaScriptService( |
| 47 content::RenderFrameHost* render_frame_host, | 47 content::RenderFrameHost* render_frame_host, |
| 48 DistillerUIHandle* distiller_ui_handle, | 48 DistillerUIHandle* distiller_ui_handle, |
| 49 mojo::InterfaceRequest<DistillerJavaScriptService> request); | 49 mojo::InterfaceRequest<DistillerJavaScriptService> request); |
| 50 | 50 |
| 51 } // namespace dom_distiller | 51 } // namespace dom_distiller |
| 52 | 52 |
| 53 #endif // COMPONENTS_DOM_DISTILLER_CONTENT_BROWSER_DISTILLER_JAVASCRIPT_SERVICE
_IMPL_H_ | 53 #endif // COMPONENTS_DOM_DISTILLER_CONTENT_BROWSER_DISTILLER_JAVASCRIPT_SERVICE
_IMPL_H_ |
| OLD | NEW |