| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CONTENT_SHELL_RENDERER_SHELL_RENDER_VIEW_OBSERVER_H_ | 5 #ifndef CONTENT_SHELL_RENDERER_SHELL_RENDER_VIEW_OBSERVER_H_ |
| 6 #define CONTENT_SHELL_RENDERER_SHELL_RENDER_VIEW_OBSERVER_H_ | 6 #define CONTENT_SHELL_RENDERER_SHELL_RENDER_VIEW_OBSERVER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "content/public/renderer/render_view_observer.h" | 9 #include "content/public/renderer/render_view_observer.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 class WebLocalFrame; | 12 class WebLocalFrame; |
| 13 } | 13 } |
| 14 | 14 |
| 15 namespace content { | 15 namespace content { |
| 16 | 16 |
| 17 class RenderView; | 17 class RenderView; |
| 18 | 18 |
| 19 | 19 |
| 20 class ShellRenderViewObserver : public RenderViewObserver { | 20 class ShellRenderViewObserver : public RenderViewObserver { |
| 21 public: | 21 public: |
| 22 explicit ShellRenderViewObserver(RenderView* render_view); | 22 explicit ShellRenderViewObserver(RenderView* render_view); |
| 23 ~ShellRenderViewObserver() override; | 23 ~ShellRenderViewObserver() override; |
| 24 | 24 |
| 25 private: | 25 private: |
| 26 // RenderViewObserver implementation. | 26 // RenderViewObserver implementation. |
| 27 void DidClearWindowObject(blink::WebLocalFrame* frame) override; | 27 void DidClearWindowObject(blink::WebLocalFrame* frame) override; |
| 28 void OnDestruct() override; |
| 28 | 29 |
| 29 DISALLOW_COPY_AND_ASSIGN(ShellRenderViewObserver); | 30 DISALLOW_COPY_AND_ASSIGN(ShellRenderViewObserver); |
| 30 }; | 31 }; |
| 31 | 32 |
| 32 } // namespace content | 33 } // namespace content |
| 33 | 34 |
| 34 #endif // CONTENT_SHELL_RENDERER_SHELL_RENDER_VIEW_OBSERVER_H_ | 35 #endif // CONTENT_SHELL_RENDERER_SHELL_RENDER_VIEW_OBSERVER_H_ |
| OLD | NEW |