Index: components/dom_distiller/content/renderer/distiller_page_notifier_service_impl.cc |
diff --git a/components/dom_distiller/content/renderer/distiller_page_notifier_service_impl.cc b/components/dom_distiller/content/renderer/distiller_page_notifier_service_impl.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..73ab7c1f4a6ddc042d8bc7e679dd83f3524d6943 |
--- /dev/null |
+++ b/components/dom_distiller/content/renderer/distiller_page_notifier_service_impl.cc |
@@ -0,0 +1,24 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "components/dom_distiller/content/renderer/distiller_page_notifier_service_impl.h" |
+ |
+#include "components/dom_distiller/content/renderer/distiller_js_render_frame_observer.h" |
+#include "components/dom_distiller/content/renderer/distiller_native_javascript.h" |
+ |
+namespace dom_distiller { |
+ |
+DistillerPageNotifierServiceImpl::DistillerPageNotifierServiceImpl( |
+ DistillerJsRenderFrameObserver* observer) |
+ : distiller_js_observer_(observer) {} |
+ |
+void DistillerPageNotifierServiceImpl::NotifyIsDistillerPage() { |
+ // TODO(mdjones): Send some form of unique ID so this call knows |
+ // which tab it should respond to.. |
+ distiller_js_observer_->SetIsDistillerPage(); |
+} |
+ |
+DistillerPageNotifierServiceImpl::~DistillerPageNotifierServiceImpl() {} |
+ |
+} // namespace dom_distiller |