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

Side by Side Diff: components/dom_distiller/content/renderer/distiller_page_notifier_service_impl.cc

Issue 1231083007: Expose distiller functions to JavaScript (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@refactor-content
Patch Set: Move dependencies to correct files 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 #include "components/dom_distiller/content/renderer/distiller_page_notifier_serv ice_impl.h"
6
7 #include "components/dom_distiller/content/renderer/distiller_js_render_frame_ob server.h"
8 #include "components/dom_distiller/content/renderer/distiller_native_javascript. h"
9
10 namespace dom_distiller {
11
12 DistillerPageNotifierServiceImpl::DistillerPageNotifierServiceImpl(
13 DistillerJsRenderFrameObserver* observer,
14 mojo::InterfaceRequest<DistillerPageNotifierService> request)
15 : binding_(this, request.Pass()),
16 distiller_js_observer_(observer) {}
17
18 void DistillerPageNotifierServiceImpl::NotifyIsDistillerPage() {
19 // TODO(mdjones): Send some form of unique ID so this call knows
20 // which tab it should respond to..
21 distiller_js_observer_->SetIsDistillerPage();
22 }
23
24 DistillerPageNotifierServiceImpl::~DistillerPageNotifierServiceImpl() {}
25
26 } // namespace dom_distiller
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698