OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 EXTENSIONS_SHELL_RENDERER_SHELL_CONTENT_RENDERER_CLIENT_H_ | 5 #ifndef EXTENSIONS_SHELL_RENDERER_SHELL_CONTENT_RENDERER_CLIENT_H_ |
6 #define EXTENSIONS_SHELL_RENDERER_SHELL_CONTENT_RENDERER_CLIENT_H_ | 6 #define EXTENSIONS_SHELL_RENDERER_SHELL_CONTENT_RENDERER_CLIENT_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 class ShellContentRendererClient : public content::ContentRendererClient { | 22 class ShellContentRendererClient : public content::ContentRendererClient { |
23 public: | 23 public: |
24 explicit ShellContentRendererClient( | 24 explicit ShellContentRendererClient( |
25 scoped_ptr<ShellRendererMainDelegate> delegate); | 25 scoped_ptr<ShellRendererMainDelegate> delegate); |
26 virtual ~ShellContentRendererClient(); | 26 virtual ~ShellContentRendererClient(); |
27 | 27 |
28 // content::ContentRendererClient implementation: | 28 // content::ContentRendererClient implementation: |
29 virtual void RenderThreadStarted() OVERRIDE; | 29 virtual void RenderThreadStarted() OVERRIDE; |
30 virtual void RenderFrameCreated(content::RenderFrame* render_frame) OVERRIDE; | 30 virtual void RenderFrameCreated(content::RenderFrame* render_frame) OVERRIDE; |
31 virtual void RenderViewCreated(content::RenderView* render_view) OVERRIDE; | 31 virtual void RenderViewCreated(content::RenderView* render_view) OVERRIDE; |
| 32 virtual bool OverrideCreatePlugin(content::RenderFrame* render_frame, |
| 33 blink::WebLocalFrame* frame, |
| 34 const blink::WebPluginParams& params, |
| 35 blink::WebPlugin** plugin) OVERRIDE; |
| 36 virtual blink::WebPlugin* CreatePluginReplacement( |
| 37 content::RenderFrame* render_frame, |
| 38 const base::FilePath& plugin_path) OVERRIDE; |
32 virtual bool WillSendRequest(blink::WebFrame* frame, | 39 virtual bool WillSendRequest(blink::WebFrame* frame, |
33 content::PageTransition transition_type, | 40 content::PageTransition transition_type, |
34 const GURL& url, | 41 const GURL& url, |
35 const GURL& first_party_for_cookies, | 42 const GURL& first_party_for_cookies, |
36 GURL* new_url) OVERRIDE; | 43 GURL* new_url) OVERRIDE; |
37 virtual void DidCreateScriptContext(blink::WebFrame* frame, | 44 virtual void DidCreateScriptContext(blink::WebFrame* frame, |
38 v8::Handle<v8::Context> context, | 45 v8::Handle<v8::Context> context, |
39 int extension_group, | 46 int extension_group, |
40 int world_id) OVERRIDE; | 47 int world_id) OVERRIDE; |
| 48 virtual const void* CreatePPAPIInterface( |
| 49 const std::string& interface_name) OVERRIDE; |
| 50 virtual bool IsExternalPepperPlugin(const std::string& module_name) OVERRIDE; |
41 virtual bool ShouldEnableSiteIsolationPolicy() const OVERRIDE; | 51 virtual bool ShouldEnableSiteIsolationPolicy() const OVERRIDE; |
42 | 52 |
43 private: | 53 private: |
44 scoped_ptr<ShellRendererMainDelegate> delegate_; | 54 scoped_ptr<ShellRendererMainDelegate> delegate_; |
45 scoped_ptr<ShellExtensionsClient> extensions_client_; | 55 scoped_ptr<ShellExtensionsClient> extensions_client_; |
46 scoped_ptr<ShellExtensionsRendererClient> extensions_renderer_client_; | 56 scoped_ptr<ShellExtensionsRendererClient> extensions_renderer_client_; |
47 scoped_ptr<DispatcherDelegate> extension_dispatcher_delegate_; | 57 scoped_ptr<DispatcherDelegate> extension_dispatcher_delegate_; |
48 scoped_ptr<Dispatcher> extension_dispatcher_; | 58 scoped_ptr<Dispatcher> extension_dispatcher_; |
49 | 59 |
50 DISALLOW_COPY_AND_ASSIGN(ShellContentRendererClient); | 60 DISALLOW_COPY_AND_ASSIGN(ShellContentRendererClient); |
51 }; | 61 }; |
52 | 62 |
53 } // namespace extensions | 63 } // namespace extensions |
54 | 64 |
55 #endif // EXTENSIONS_SHELL_RENDERER_SHELL_CONTENT_RENDERER_CLIENT_H_ | 65 #endif // EXTENSIONS_SHELL_RENDERER_SHELL_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |