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

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: Address comments Created 5 years, 4 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 : distiller_js_observer_(observer) {}
15
16 void DistillerPageNotifierServiceImpl::NotifyIsDistillerPage() {
17 // TODO(mdjones): Send some form of unique ID so this call knows
18 // which tab it should respond to..
19 distiller_js_observer_->SetIsDistillerPage();
20 }
21
22 DistillerPageNotifierServiceImpl::~DistillerPageNotifierServiceImpl() {}
23
24 } // namespace dom_distiller
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698