OLD | NEW |
(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 |
OLD | NEW |