OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_CONTENT_RENDERER_CLIENT_H_ | 5 #ifndef CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_ |
6 #define CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_ | 6 #define CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_ |
7 #pragma once | |
8 | 7 |
9 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
10 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
11 #include "content/public/renderer/content_renderer_client.h" | 10 #include "content/public/renderer/content_renderer_client.h" |
12 | 11 |
13 namespace content { | 12 namespace content { |
14 | 13 |
15 class ShellRenderProcessObserver; | 14 class ShellRenderProcessObserver; |
16 | 15 |
17 class ShellContentRendererClient : public ContentRendererClient { | 16 class ShellContentRendererClient : public ContentRendererClient { |
18 public: | 17 public: |
19 ShellContentRendererClient(); | 18 ShellContentRendererClient(); |
20 virtual ~ShellContentRendererClient(); | 19 virtual ~ShellContentRendererClient(); |
21 virtual void RenderThreadStarted() OVERRIDE; | 20 virtual void RenderThreadStarted() OVERRIDE; |
22 virtual void RenderViewCreated(RenderView* render_view) OVERRIDE; | 21 virtual void RenderViewCreated(RenderView* render_view) OVERRIDE; |
23 | 22 |
24 private: | 23 private: |
25 scoped_ptr<ShellRenderProcessObserver> shell_observer_; | 24 scoped_ptr<ShellRenderProcessObserver> shell_observer_; |
26 }; | 25 }; |
27 | 26 |
28 } // namespace content | 27 } // namespace content |
29 | 28 |
30 #endif // CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_ | 29 #endif // CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |