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

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

Issue 1336433002: Revert of Expose distiller functions to JavaScript (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@refactor-content
Patch Set: Created 5 years, 3 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
(Empty)
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
3 // found in the LICENSE file.
4
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_
7
8 #include "components/dom_distiller/content/common/distiller_javascript_service.m ojom.h"
9 #include "third_party/mojo/src/mojo/public/cpp/bindings/string.h"
10 #include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h"
11
12 namespace dom_distiller {
13
14 // This is the receiving end of "distiller" JavaScript object calls.
15 class DistillerJavaScriptServiceImpl : public DistillerJavaScriptService {
16 public:
17 DistillerJavaScriptServiceImpl(
18 mojo::InterfaceRequest<DistillerJavaScriptService> request);
19 ~DistillerJavaScriptServiceImpl() override;
20
21 // Mojo DistillerJavaScriptService implementation.
22 void HandleDistillerEchoCall(const mojo::String& message) override;
23
24 private:
25 mojo::StrongBinding<DistillerJavaScriptService> binding_;
26 };
27
28 // static
29 void CreateDistillerJavaScriptService(
30 mojo::InterfaceRequest<DistillerJavaScriptService> request);
31
32 } // namespace dom_distiller
33
34 #endif // COMPONENTS_DOM_DISTILLER_CONTENT_BROWSER_DISTILLER_JAVASCRIPT_SERVICE _IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698