OLD | NEW |
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 #include "components/dom_distiller/content/renderer/distiller_js_render_frame_ob
server.h" | 5 #include "components/dom_distiller/content/renderer/distiller_js_render_frame_ob
server.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/memory/ptr_util.h" |
10 #include "components/dom_distiller/content/common/distiller_page_notifier_servic
e.mojom.h" | 11 #include "components/dom_distiller/content/common/distiller_page_notifier_servic
e.mojom.h" |
11 #include "components/dom_distiller/content/renderer/distiller_page_notifier_serv
ice_impl.h" | 12 #include "components/dom_distiller/content/renderer/distiller_page_notifier_serv
ice_impl.h" |
12 #include "content/public/renderer/render_frame.h" | 13 #include "content/public/renderer/render_frame.h" |
13 #include "mojo/public/cpp/bindings/strong_binding.h" | 14 #include "mojo/public/cpp/bindings/strong_binding.h" |
14 #include "services/service_manager/public/cpp/interface_registry.h" | 15 #include "services/service_manager/public/cpp/interface_registry.h" |
15 #include "v8/include/v8.h" | 16 #include "v8/include/v8.h" |
16 | 17 |
17 namespace dom_distiller { | 18 namespace dom_distiller { |
18 | 19 |
19 DistillerJsRenderFrameObserver::DistillerJsRenderFrameObserver( | 20 DistillerJsRenderFrameObserver::DistillerJsRenderFrameObserver( |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 | 68 |
68 void DistillerJsRenderFrameObserver::SetIsDistillerPage() { | 69 void DistillerJsRenderFrameObserver::SetIsDistillerPage() { |
69 is_distiller_page_ = true; | 70 is_distiller_page_ = true; |
70 } | 71 } |
71 | 72 |
72 void DistillerJsRenderFrameObserver::OnDestruct() { | 73 void DistillerJsRenderFrameObserver::OnDestruct() { |
73 delete this; | 74 delete this; |
74 } | 75 } |
75 | 76 |
76 } // namespace dom_distiller | 77 } // namespace dom_distiller |
OLD | NEW |