| 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 <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 void RenderViewCreated(content::RenderView* render_view) override; | 35 void RenderViewCreated(content::RenderView* render_view) override; |
| 36 bool OverrideCreatePlugin(content::RenderFrame* render_frame, | 36 bool OverrideCreatePlugin(content::RenderFrame* render_frame, |
| 37 const blink::WebPluginParams& params, | 37 const blink::WebPluginParams& params, |
| 38 blink::WebPlugin** plugin) override; | 38 blink::WebPlugin** plugin) override; |
| 39 blink::WebPlugin* CreatePluginReplacement( | 39 blink::WebPlugin* CreatePluginReplacement( |
| 40 content::RenderFrame* render_frame, | 40 content::RenderFrame* render_frame, |
| 41 const base::FilePath& plugin_path) override; | 41 const base::FilePath& plugin_path) override; |
| 42 bool WillSendRequest(blink::WebLocalFrame* frame, | 42 bool WillSendRequest(blink::WebLocalFrame* frame, |
| 43 ui::PageTransition transition_type, | 43 ui::PageTransition transition_type, |
| 44 const blink::WebURL& url, | 44 const blink::WebURL& url, |
| 45 GURL* new_url) override; | 45 GURL* new_url, |
| 46 std::vector<std::unique_ptr<content::URLLoaderThrottle>>* |
| 47 throttles) override; |
| 46 bool IsExternalPepperPlugin(const std::string& module_name) override; | 48 bool IsExternalPepperPlugin(const std::string& module_name) override; |
| 47 bool ShouldGatherSiteIsolationStats() const override; | 49 bool ShouldGatherSiteIsolationStats() const override; |
| 48 content::BrowserPluginDelegate* CreateBrowserPluginDelegate( | 50 content::BrowserPluginDelegate* CreateBrowserPluginDelegate( |
| 49 content::RenderFrame* render_frame, | 51 content::RenderFrame* render_frame, |
| 50 const std::string& mime_type, | 52 const std::string& mime_type, |
| 51 const GURL& original_url) override; | 53 const GURL& original_url) override; |
| 52 void RunScriptsAtDocumentStart(content::RenderFrame* render_frame) override; | 54 void RunScriptsAtDocumentStart(content::RenderFrame* render_frame) override; |
| 53 void RunScriptsAtDocumentEnd(content::RenderFrame* render_frame) override; | 55 void RunScriptsAtDocumentEnd(content::RenderFrame* render_frame) override; |
| 54 | 56 |
| 55 protected: | 57 protected: |
| 56 // app_shell embedders may need custom extensions client interfaces. | 58 // app_shell embedders may need custom extensions client interfaces. |
| 57 // This class takes ownership of the returned object. | 59 // This class takes ownership of the returned object. |
| 58 virtual ExtensionsClient* CreateExtensionsClient(); | 60 virtual ExtensionsClient* CreateExtensionsClient(); |
| 59 | 61 |
| 60 private: | 62 private: |
| 61 std::unique_ptr<ExtensionsClient> extensions_client_; | 63 std::unique_ptr<ExtensionsClient> extensions_client_; |
| 62 std::unique_ptr<ShellExtensionsRendererClient> extensions_renderer_client_; | 64 std::unique_ptr<ShellExtensionsRendererClient> extensions_renderer_client_; |
| 63 std::unique_ptr<DispatcherDelegate> extension_dispatcher_delegate_; | 65 std::unique_ptr<DispatcherDelegate> extension_dispatcher_delegate_; |
| 64 std::unique_ptr<Dispatcher> extension_dispatcher_; | 66 std::unique_ptr<Dispatcher> extension_dispatcher_; |
| 65 std::unique_ptr<ExtensionsGuestViewContainerDispatcher> | 67 std::unique_ptr<ExtensionsGuestViewContainerDispatcher> |
| 66 guest_view_container_dispatcher_; | 68 guest_view_container_dispatcher_; |
| 67 | 69 |
| 68 DISALLOW_COPY_AND_ASSIGN(ShellContentRendererClient); | 70 DISALLOW_COPY_AND_ASSIGN(ShellContentRendererClient); |
| 69 }; | 71 }; |
| 70 | 72 |
| 71 } // namespace extensions | 73 } // namespace extensions |
| 72 | 74 |
| 73 #endif // EXTENSIONS_SHELL_RENDERER_SHELL_CONTENT_RENDERER_CLIENT_H_ | 75 #endif // EXTENSIONS_SHELL_RENDERER_SHELL_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |