[email protected] | 81914ad | 2013-07-02 18:54:25 | [diff] [blame] | 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 | ||||
3 | // found in the LICENSE file. | ||||
4 | |||||
tfarina | bccc34c7 | 2015-02-27 21:32:15 | [diff] [blame] | 5 | #ifndef CONTENT_SHELL_RENDERER_SHELL_RENDER_VIEW_OBSERVER_H_ |
6 | #define CONTENT_SHELL_RENDERER_SHELL_RENDER_VIEW_OBSERVER_H_ | ||||
[email protected] | 81914ad | 2013-07-02 18:54:25 | [diff] [blame] | 7 | |
avi | 66a0772 | 2015-12-25 23:38:12 | [diff] [blame] | 8 | #include "base/macros.h" |
[email protected] | 81914ad | 2013-07-02 18:54:25 | [diff] [blame] | 9 | #include "content/public/renderer/render_view_observer.h" |
10 | |||||
[email protected] | 180ef24 | 2013-11-07 06:50:46 | [diff] [blame] | 11 | namespace blink { |
esprehn | 4b0602d | 2015-11-13 16:45:37 | [diff] [blame] | 12 | class WebLocalFrame; |
[email protected] | 81914ad | 2013-07-02 18:54:25 | [diff] [blame] | 13 | } |
14 | |||||
15 | namespace content { | ||||
16 | |||||
17 | class RenderView; | ||||
18 | |||||
19 | |||||
20 | class ShellRenderViewObserver : public RenderViewObserver { | ||||
21 | public: | ||||
22 | explicit ShellRenderViewObserver(RenderView* render_view); | ||||
dcheng | e933b3e | 2014-10-21 11:44:09 | [diff] [blame] | 23 | ~ShellRenderViewObserver() override; |
[email protected] | 81914ad | 2013-07-02 18:54:25 | [diff] [blame] | 24 | |
25 | private: | ||||
26 | // RenderViewObserver implementation. | ||||
dcheng | e933b3e | 2014-10-21 11:44:09 | [diff] [blame] | 27 | void DidClearWindowObject(blink::WebLocalFrame* frame) override; |
xjz | 694b50a9 | 2016-06-07 21:49:37 | [diff] [blame] | 28 | void OnDestruct() override; |
[email protected] | 81914ad | 2013-07-02 18:54:25 | [diff] [blame] | 29 | |
[email protected] | 81914ad | 2013-07-02 18:54:25 | [diff] [blame] | 30 | DISALLOW_COPY_AND_ASSIGN(ShellRenderViewObserver); |
31 | }; | ||||
32 | |||||
33 | } // namespace content | ||||
34 | |||||
tfarina | bccc34c7 | 2015-02-27 21:32:15 | [diff] [blame] | 35 | #endif // CONTENT_SHELL_RENDERER_SHELL_RENDER_VIEW_OBSERVER_H_ |