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