Chromium Code Reviews| Index: components/dom_distiller/content/renderer/distiller_page_notifier_service_impl.h |
| diff --git a/components/dom_distiller/content/renderer/distiller_page_notifier_service_impl.h b/components/dom_distiller/content/renderer/distiller_page_notifier_service_impl.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..ce59dca1f674fb7ed5b6371cd10ad18fc865ff20 |
| --- /dev/null |
| +++ b/components/dom_distiller/content/renderer/distiller_page_notifier_service_impl.h |
| @@ -0,0 +1,29 @@ |
| +// 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. |
| + |
| +#ifndef COMPONENTS_DOM_DISTILLER_CONTENT_RENDERER_DISTILLER_PAGE_NOTIFIER_SERVICE_IMPL_H_ |
| +#define COMPONENTS_DOM_DISTILLER_CONTENT_RENDERER_DISTILLER_PAGE_NOTIFIER_SERVICE_IMPL_H_ |
| + |
| +#include "components/dom_distiller/content/common/distiller_page_notifier_service.mojom.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 { |
| + |
| +class DistillerJsRenderFrameObserver; |
| + |
| +class DistillerPageNotifierServiceImpl |
|
nyquist
2015/07/27 21:44:33
i can haz comment? What does this do? What is its
mdjones
2015/07/28 20:53:42
The service is removed when the page is done loadi
|
| + : public mojo::InterfaceImpl<DistillerPageNotifierService> { |
| + public: |
| + DistillerPageNotifierServiceImpl(DistillerJsRenderFrameObserver* observer); |
| + void Notify() override; |
| + ~DistillerPageNotifierServiceImpl() override; |
| + |
| + private: |
| + DistillerJsRenderFrameObserver* distiller_js_observer_; |
| +}; |
| + |
| +} // namespace dom_distiller |
| + |
| +#endif // COMPONENTS_DOM_DISTILLER_CONTENT_RENDERER_DISTILLER_PAGE_NOTIFIER_SERVICE_IMPL_H_ |