Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(236)

Side by Side Diff: components/dom_distiller/content/browser/distiller_javascript_service_impl.h

Issue 2851173004: Eliminate bind callback that doesn't take a BindSourceInfo parameter. (Closed)
Patch Set: . Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/strong_binding.h" 11 #include "mojo/public/cpp/bindings/strong_binding.h"
12 #include "services/service_manager/public/cpp/bind_source_info.h"
12 13
13 namespace dom_distiller { 14 namespace dom_distiller {
14 15
15 // This is the receiving end of "distiller" JavaScript object calls. 16 // This is the receiving end of "distiller" JavaScript object calls.
16 class DistillerJavaScriptServiceImpl 17 class DistillerJavaScriptServiceImpl
17 : public mojom::DistillerJavaScriptService { 18 : public mojom::DistillerJavaScriptService {
18 public: 19 public:
19 DistillerJavaScriptServiceImpl(content::RenderFrameHost* render_frame_host, 20 DistillerJavaScriptServiceImpl(content::RenderFrameHost* render_frame_host,
20 DistillerUIHandle* distiller_ui_handle); 21 DistillerUIHandle* distiller_ui_handle);
21 ~DistillerJavaScriptServiceImpl() override; 22 ~DistillerJavaScriptServiceImpl() override;
(...skipping 10 matching lines...) Expand all
32 content::RenderFrameHost* render_frame_host_; 33 content::RenderFrameHost* render_frame_host_;
33 DistillerUIHandle* distiller_ui_handle_; 34 DistillerUIHandle* distiller_ui_handle_;
34 35
35 DISALLOW_COPY_AND_ASSIGN(DistillerJavaScriptServiceImpl); 36 DISALLOW_COPY_AND_ASSIGN(DistillerJavaScriptServiceImpl);
36 }; 37 };
37 38
38 // static 39 // static
39 void CreateDistillerJavaScriptService( 40 void CreateDistillerJavaScriptService(
40 content::RenderFrameHost* render_frame_host, 41 content::RenderFrameHost* render_frame_host,
41 DistillerUIHandle* distiller_ui_handle, 42 DistillerUIHandle* distiller_ui_handle,
42 mojo::InterfaceRequest<mojom::DistillerJavaScriptService> request); 43 const service_manager::BindSourceInfo& source_info,
44 mojom::DistillerJavaScriptServiceRequest request);
43 45
44 } // namespace dom_distiller 46 } // namespace dom_distiller
45 47
46 #endif // COMPONENTS_DOM_DISTILLER_CONTENT_BROWSER_DISTILLER_JAVASCRIPT_SERVICE _IMPL_H_ 48 #endif // COMPONENTS_DOM_DISTILLER_CONTENT_BROWSER_DISTILLER_JAVASCRIPT_SERVICE _IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698