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 #ifndef COMPONENTS_DOM_DISTILLER_CONTENT_RENDERER_DISTILLER_PAGE_NOTIFIER_SERVIC E_IMPL_H_ | |
6 #define COMPONENTS_DOM_DISTILLER_CONTENT_RENDERER_DISTILLER_PAGE_NOTIFIER_SERVIC E_IMPL_H_ | |
7 | |
8 #include "components/dom_distiller/content/common/distiller_page_notifier_servic e.mojom.h" | |
9 #include "components/dom_distiller/content/renderer/distiller_js_render_frame_ob server.h" | |
10 #include "components/dom_distiller/content/renderer/distiller_native_javascript. h" | |
11 | |
12 namespace dom_distiller { | |
13 | |
14 class DistillerJsRenderFrameObserver; | |
15 | |
16 // DistillerPageNotifierService is responsible for listening to the browser for | |
17 // messages about if a page is a distiller page. No message is received if the | |
18 // page is not a distiller page. This service should be removed from the | |
19 // registry once the page is done loading. | |
20 class DistillerPageNotifierServiceImpl | |
21 : public mojo::InterfaceImpl<DistillerPageNotifierService> { | |
22 public: | |
23 DistillerPageNotifierServiceImpl(DistillerJsRenderFrameObserver* observer); | |
nyquist
2015/08/11 08:11:55
single-argument constructors should be explicit.
mdjones
2015/08/11 16:02:05
Done.
| |
24 void Notify() override; | |
nyquist
2015/08/11 08:11:55
Add a comment that his method is the implementatio
mdjones
2015/08/11 16:02:05
Done.
| |
25 ~DistillerPageNotifierServiceImpl() override; | |
nyquist
2015/08/11 08:11:55
Goes together with the constructor.
mdjones
2015/08/11 16:02:05
Done.
| |
26 | |
27 private: | |
28 DistillerJsRenderFrameObserver* distiller_js_observer_; | |
29 }; | |
30 | |
31 } // namespace dom_distiller | |
32 | |
33 #endif // COMPONENTS_DOM_DISTILLER_CONTENT_RENDERER_DISTILLER_PAGE_NOTIFIER_SER VICE_IMPL_H_ | |
OLD | NEW |