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

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

Issue 1181493002: [Patch 3 of 6] Split out content/child's SiteIsolationPolicy into two new classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rename_policy_to_sniffer2
Patch Set: Add crbug. 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"
(...skipping 25 matching lines...) Expand all
36 blink::WebPlugin* CreatePluginReplacement( 36 blink::WebPlugin* CreatePluginReplacement(
37 content::RenderFrame* render_frame, 37 content::RenderFrame* render_frame,
38 const base::FilePath& plugin_path) override; 38 const base::FilePath& plugin_path) 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 ShouldGatherSiteIsolationStats() 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> 62 scoped_ptr<ExtensionsGuestViewContainerDispatcher>
63 guest_view_container_dispatcher_; 63 guest_view_container_dispatcher_;
64 64
65 DISALLOW_COPY_AND_ASSIGN(ShellContentRendererClient); 65 DISALLOW_COPY_AND_ASSIGN(ShellContentRendererClient);
66 }; 66 };
67 67
68 } // namespace extensions 68 } // namespace extensions
69 69
70 #endif // EXTENSIONS_SHELL_RENDERER_SHELL_CONTENT_RENDERER_CLIENT_H_ 70 #endif // EXTENSIONS_SHELL_RENDERER_SHELL_CONTENT_RENDERER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/renderer/render_process_impl.cc ('k') | extensions/shell/renderer/shell_content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698