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

Side by Side Diff: components/dom_distiller/content/renderer/distiller_page_notifier_service_impl.h

Issue 1410053006: Move third_party/mojo/src/mojo/public to mojo/public (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years, 1 month 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
« no previous file with comments | « components/dom_distiller/content/renderer/DEPS ('k') | components/filesystem/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_DOM_DISTILLER_CONTENT_RENDERER_DISTILLER_PAGE_NOTIFIER_SERVIC E_IMPL_H_ 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_ 6 #define COMPONENTS_DOM_DISTILLER_CONTENT_RENDERER_DISTILLER_PAGE_NOTIFIER_SERVIC E_IMPL_H_
7 7
8 #include "components/dom_distiller/content/common/distiller_page_notifier_servic e.mojom.h" 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" 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" 10 #include "components/dom_distiller/content/renderer/distiller_native_javascript. h"
11 #include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h" 11 #include "mojo/public/cpp/bindings/strong_binding.h"
12 12
13 namespace dom_distiller { 13 namespace dom_distiller {
14 14
15 class DistillerJsRenderFrameObserver; 15 class DistillerJsRenderFrameObserver;
16 16
17 // DistillerPageNotifierService is responsible for listening to the browser for 17 // DistillerPageNotifierService is responsible for listening to the browser for
18 // messages about if a page is a distiller page. No message is received if the 18 // messages about if a page is a distiller page. No message is received if the
19 // page is not a distiller page. This service should be removed from the 19 // page is not a distiller page. This service should be removed from the
20 // registry once the page is done loading. 20 // registry once the page is done loading.
21 class DistillerPageNotifierServiceImpl : public DistillerPageNotifierService { 21 class DistillerPageNotifierServiceImpl : public DistillerPageNotifierService {
22 public: 22 public:
23 explicit DistillerPageNotifierServiceImpl( 23 explicit DistillerPageNotifierServiceImpl(
24 DistillerJsRenderFrameObserver* observer, 24 DistillerJsRenderFrameObserver* observer,
25 mojo::InterfaceRequest<DistillerPageNotifierService> request); 25 mojo::InterfaceRequest<DistillerPageNotifierService> request);
26 ~DistillerPageNotifierServiceImpl() override; 26 ~DistillerPageNotifierServiceImpl() override;
27 27
28 // Implementation of mojo interface DistillerPageNotifierService. 28 // Implementation of mojo interface DistillerPageNotifierService.
29 void NotifyIsDistillerPage() override; 29 void NotifyIsDistillerPage() override;
30 30
31 private: 31 private:
32 mojo::StrongBinding<DistillerPageNotifierService> binding_; 32 mojo::StrongBinding<DistillerPageNotifierService> binding_;
33 DistillerJsRenderFrameObserver* distiller_js_observer_; 33 DistillerJsRenderFrameObserver* distiller_js_observer_;
34 }; 34 };
35 35
36 } // namespace dom_distiller 36 } // namespace dom_distiller
37 37
38 #endif // COMPONENTS_DOM_DISTILLER_CONTENT_RENDERER_DISTILLER_PAGE_NOTIFIER_SER VICE_IMPL_H_ 38 #endif // COMPONENTS_DOM_DISTILLER_CONTENT_RENDERER_DISTILLER_PAGE_NOTIFIER_SER VICE_IMPL_H_
OLDNEW
« no previous file with comments | « components/dom_distiller/content/renderer/DEPS ('k') | components/filesystem/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698