| 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 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/platform_file.h" | 10 #include "base/platform_file.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 class MockWebClipboardImpl; | 27 class MockWebClipboardImpl; |
| 28 class TestShellWebMimeRegistryImpl; | 28 class TestShellWebMimeRegistryImpl; |
| 29 | 29 |
| 30 namespace content { | 30 namespace content { |
| 31 | 31 |
| 32 class ShellRenderProcessObserver; | 32 class ShellRenderProcessObserver; |
| 33 | 33 |
| 34 class ShellContentRendererClient : public ContentRendererClient { | 34 class ShellContentRendererClient : public ContentRendererClient { |
| 35 public: | 35 public: |
| 36 static ShellContentRendererClient* Get(); |
| 37 |
| 36 ShellContentRendererClient(); | 38 ShellContentRendererClient(); |
| 37 virtual ~ShellContentRendererClient(); | 39 virtual ~ShellContentRendererClient(); |
| 38 | 40 |
| 39 void LoadHyphenDictionary(base::PlatformFile dict_file); | 41 void LoadHyphenDictionary(base::PlatformFile dict_file); |
| 40 | 42 |
| 41 // ContentRendererClient implementation. | 43 // ContentRendererClient implementation. |
| 42 virtual void RenderThreadStarted() OVERRIDE; | 44 virtual void RenderThreadStarted() OVERRIDE; |
| 43 virtual void RenderViewCreated(RenderView* render_view) OVERRIDE; | 45 virtual void RenderViewCreated(RenderView* render_view) OVERRIDE; |
| 44 virtual bool OverrideCreatePlugin( | 46 virtual bool OverrideCreatePlugin( |
| 45 RenderView* render_view, | 47 RenderView* render_view, |
| (...skipping 18 matching lines...) Expand all Loading... |
| 64 | 66 |
| 65 scoped_ptr<ShellRenderProcessObserver> shell_observer_; | 67 scoped_ptr<ShellRenderProcessObserver> shell_observer_; |
| 66 scoped_ptr<MockWebClipboardImpl> clipboard_; | 68 scoped_ptr<MockWebClipboardImpl> clipboard_; |
| 67 scoped_ptr<TestShellWebMimeRegistryImpl> mime_registry_; | 69 scoped_ptr<TestShellWebMimeRegistryImpl> mime_registry_; |
| 68 scoped_ptr<webkit_glue::MockWebHyphenator> hyphenator_; | 70 scoped_ptr<webkit_glue::MockWebHyphenator> hyphenator_; |
| 69 }; | 71 }; |
| 70 | 72 |
| 71 } // namespace content | 73 } // namespace content |
| 72 | 74 |
| 73 #endif // CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_ | 75 #endif // CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |