Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(684)

Side by Side Diff: extensions/shell/renderer/shell_content_renderer_client.h

Issue 1161483004: Move guest view container message routing out of content/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove ChromeGVCDispatcher + sync Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
11 #include "content/public/renderer/content_renderer_client.h" 11 #include "content/public/renderer/content_renderer_client.h"
12 12
13 namespace extensions { 13 namespace extensions {
14 14
15 class Dispatcher; 15 class Dispatcher;
16 class DispatcherDelegate; 16 class DispatcherDelegate;
17 class ExtensionsClient; 17 class ExtensionsClient;
18 class ExtensionsGuestViewContainerDispatcher;
18 class ShellExtensionsRendererClient; 19 class ShellExtensionsRendererClient;
19 class ShellRendererMainDelegate; 20 class ShellRendererMainDelegate;
20 21
21 // Renderer initialization and runtime support for app_shell. 22 // Renderer initialization and runtime support for app_shell.
22 class ShellContentRendererClient : public content::ContentRendererClient { 23 class ShellContentRendererClient : public content::ContentRendererClient {
23 public: 24 public:
24 ShellContentRendererClient(); 25 ShellContentRendererClient();
25 ~ShellContentRendererClient() override; 26 ~ShellContentRendererClient() override;
26 27
27 // content::ContentRendererClient implementation: 28 // content::ContentRendererClient implementation:
28 void RenderThreadStarted() override; 29 void RenderThreadStarted() override;
29 void RenderFrameCreated(content::RenderFrame* render_frame) override; 30 void RenderFrameCreated(content::RenderFrame* render_frame) override;
30 void RenderViewCreated(content::RenderView* render_view) override; 31 void RenderViewCreated(content::RenderView* render_view) override;
31 bool OverrideCreatePlugin(content::RenderFrame* render_frame, 32 bool OverrideCreatePlugin(content::RenderFrame* render_frame,
32 blink::WebLocalFrame* frame, 33 blink::WebLocalFrame* frame,
33 const blink::WebPluginParams& params, 34 const blink::WebPluginParams& params,
34 blink::WebPlugin** plugin) override; 35 blink::WebPlugin** plugin) override;
35 blink::WebPlugin* CreatePluginReplacement( 36 blink::WebPlugin* CreatePluginReplacement(
36 content::RenderFrame* render_frame, 37 content::RenderFrame* render_frame,
37 const base::FilePath& plugin_path) override; 38 const base::FilePath& plugin_path) override;
38 bool ShouldForwardToGuestContainer(const IPC::Message& msg) override;
39 bool WillSendRequest(blink::WebFrame* frame, 39 bool WillSendRequest(blink::WebFrame* frame,
40 ui::PageTransition transition_type, 40 ui::PageTransition transition_type,
41 const GURL& url, 41 const GURL& url,
42 const GURL& first_party_for_cookies, 42 const GURL& first_party_for_cookies,
43 GURL* new_url) override; 43 GURL* new_url) override;
44 const void* CreatePPAPIInterface(const std::string& interface_name) override; 44 const void* CreatePPAPIInterface(const std::string& interface_name) override;
45 bool IsExternalPepperPlugin(const std::string& module_name) override; 45 bool IsExternalPepperPlugin(const std::string& module_name) override;
46 bool ShouldEnableSiteIsolationPolicy() const override; 46 bool ShouldEnableSiteIsolationPolicy() const override;
47 content::BrowserPluginDelegate* CreateBrowserPluginDelegate( 47 content::BrowserPluginDelegate* CreateBrowserPluginDelegate(
48 content::RenderFrame* render_frame, 48 content::RenderFrame* render_frame,
49 const std::string& mime_type, 49 const std::string& mime_type,
50 const GURL& original_url) override; 50 const GURL& original_url) override;
51 51
52 protected: 52 protected:
53 // app_shell embedders may need custom extensions client interfaces. 53 // app_shell embedders may need custom extensions client interfaces.
54 // This class takes ownership of the returned object. 54 // This class takes ownership of the returned object.
55 virtual ExtensionsClient* CreateExtensionsClient(); 55 virtual ExtensionsClient* CreateExtensionsClient();
56 56
57 private: 57 private:
58 scoped_ptr<ExtensionsClient> extensions_client_; 58 scoped_ptr<ExtensionsClient> extensions_client_;
59 scoped_ptr<ShellExtensionsRendererClient> extensions_renderer_client_; 59 scoped_ptr<ShellExtensionsRendererClient> extensions_renderer_client_;
60 scoped_ptr<DispatcherDelegate> extension_dispatcher_delegate_; 60 scoped_ptr<DispatcherDelegate> extension_dispatcher_delegate_;
61 scoped_ptr<Dispatcher> extension_dispatcher_; 61 scoped_ptr<Dispatcher> extension_dispatcher_;
62 scoped_ptr<ExtensionsGuestViewContainerDispatcher>
63 guest_view_container_dispatcher_;
62 64
63 DISALLOW_COPY_AND_ASSIGN(ShellContentRendererClient); 65 DISALLOW_COPY_AND_ASSIGN(ShellContentRendererClient);
64 }; 66 };
65 67
66 } // namespace extensions 68 } // namespace extensions
67 69
68 #endif // EXTENSIONS_SHELL_RENDERER_SHELL_CONTENT_RENDERER_CLIENT_H_ 70 #endif // EXTENSIONS_SHELL_RENDERER_SHELL_CONTENT_RENDERER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698