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_SHELL_RENDER_FRAME_OBSERVER_H_ | 5 #ifndef CONTENT_SHELL_SHELL_RENDER_FRAME_OBSERVER_H_ |
6 #define CONTENT_SHELL_SHELL_RENDER_FRAME_OBSERVER_H_ | 6 #define CONTENT_SHELL_SHELL_RENDER_FRAME_OBSERVER_H_ |
7 | 7 |
8 #include "content/public/renderer/render_frame_observer.h" | 8 #include "content/public/renderer/render_frame_observer.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
11 class WebFrame; | 11 class WebFrame; |
12 } | 12 } |
13 | 13 |
14 namespace content { | 14 namespace content { |
15 class RenderFrame; | 15 class RenderFrame; |
16 | 16 |
17 class ShellRenderFrameObserver : public RenderFrameObserver { | 17 class ShellRenderFrameObserver : public RenderFrameObserver { |
18 public: | 18 public: |
19 explicit ShellRenderFrameObserver(RenderFrame* render_frame); | 19 explicit ShellRenderFrameObserver(RenderFrame* render_frame); |
20 virtual ~ShellRenderFrameObserver() {} | 20 virtual ~ShellRenderFrameObserver() {} |
21 | 21 |
22 private: | 22 private: |
23 // content::RenderFrameObserver implementation. | |
24 virtual void WebFrameCreated(blink::WebFrame* frame) OVERRIDE; | |
25 | |
26 DISALLOW_COPY_AND_ASSIGN(ShellRenderFrameObserver); | 23 DISALLOW_COPY_AND_ASSIGN(ShellRenderFrameObserver); |
27 }; | 24 }; |
28 | 25 |
29 } // namespace content | 26 } // namespace content |
30 | 27 |
31 #endif // CONTENT_SHELL_SHELL_RENDER_FRAME_OBSERVER_H_ | 28 #endif // CONTENT_SHELL_SHELL_RENDER_FRAME_OBSERVER_H_ |
OLD | NEW |