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

Side by Side Diff: chrome/renderer/chrome_content_renderer_client.h

Issue 13409003: Hide ContentClient getters from embedders so that they they don't reuse content's embedder API. The… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 7 years, 8 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 | Annotate | Revision Log
OLDNEW
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 CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ 5 #ifndef CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_
6 #define CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ 6 #define CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 const content::RenderView* render_view, 108 const content::RenderView* render_view,
109 WebKit::WebPageVisibilityState* override_state) const OVERRIDE; 109 WebKit::WebPageVisibilityState* override_state) const OVERRIDE;
110 virtual bool HandleGetCookieRequest(content::RenderView* sender, 110 virtual bool HandleGetCookieRequest(content::RenderView* sender,
111 const GURL& url, 111 const GURL& url,
112 const GURL& first_party_for_cookies, 112 const GURL& first_party_for_cookies,
113 std::string* cookies) OVERRIDE; 113 std::string* cookies) OVERRIDE;
114 virtual bool HandleSetCookieRequest(content::RenderView* sender, 114 virtual bool HandleSetCookieRequest(content::RenderView* sender,
115 const GURL& url, 115 const GURL& url,
116 const GURL& first_party_for_cookies, 116 const GURL& first_party_for_cookies,
117 const std::string& value) OVERRIDE; 117 const std::string& value) OVERRIDE;
118 virtual bool AllowBrowserPlugin(WebKit::WebPluginContainer* container) const 118 virtual bool AllowBrowserPlugin(
119 OVERRIDE; 119 WebKit::WebPluginContainer* container) const OVERRIDE;
120 120 virtual void RegisterPPAPIInterfaceFactories(
121 // TODO(mpcomplete): remove after we collect histogram data. 121 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) OVERRIDE;
122 // http://crbug.com/100411 122 virtual bool IsRequestOSFileHandleAllowedForURL(
123 bool IsAdblockInstalled(); 123 const GURL& url) const OVERRIDE;
124 bool IsAdblockPlusInstalled();
125 bool IsAdblockWithWebRequestInstalled();
126 bool IsAdblockPlusWithWebRequestInstalled();
127 bool IsOtherExtensionWithWebRequestInstalled();
128 124
129 // For testing. 125 // For testing.
130 void SetExtensionDispatcher(extensions::Dispatcher* extension_dispatcher); 126 void SetExtensionDispatcher(extensions::Dispatcher* extension_dispatcher);
131 127
132 // Sets a new |spellcheck|. Used for low-mem restart and testing only. 128 // Sets a new |spellcheck|. Used for low-mem restart and testing only.
133 // Takes ownership of |spellcheck|. 129 // Takes ownership of |spellcheck|.
134 void SetSpellcheck(SpellCheck* spellcheck); 130 void SetSpellcheck(SpellCheck* spellcheck);
135 131
136 // Called in low-memory conditions to dump the memory used by the spellchecker 132 // Called in low-memory conditions to dump the memory used by the spellchecker
137 // and start over. 133 // and start over.
138 void OnPurgeMemory(); 134 void OnPurgeMemory();
139 135
140 virtual void RegisterPPAPIInterfaceFactories( 136 static WebKit::WebPlugin* CreatePlugin(
141 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) OVERRIDE;
142
143 WebKit::WebPlugin* CreatePlugin(
144 content::RenderView* render_view, 137 content::RenderView* render_view,
145 WebKit::WebFrame* frame, 138 WebKit::WebFrame* frame,
146 const WebKit::WebPluginParams& params, 139 const WebKit::WebPluginParams& params,
147 const ChromeViewHostMsg_GetPluginInfo_Output& output); 140 const ChromeViewHostMsg_GetPluginInfo_Output& output);
148 141
149 virtual bool IsRequestOSFileHandleAllowedForURL( 142 // TODO(mpcomplete): remove after we collect histogram data.
150 const GURL& url) const OVERRIDE; 143 // http://crbug.com/100411
144 static bool IsAdblockInstalled();
145 static bool IsAdblockPlusInstalled();
146 static bool IsAdblockWithWebRequestInstalled();
147 static bool IsAdblockPlusWithWebRequestInstalled();
148 static bool IsOtherExtensionWithWebRequestInstalled();
151 149
152 private: 150 private:
153 FRIEND_TEST_ALL_PREFIXES(ChromeContentRendererClientTest, NaClRestriction); 151 FRIEND_TEST_ALL_PREFIXES(ChromeContentRendererClientTest, NaClRestriction);
154 FRIEND_TEST_ALL_PREFIXES(ChromeContentRendererClientTest, 152 FRIEND_TEST_ALL_PREFIXES(ChromeContentRendererClientTest,
155 IsRequestOSFileHandleAllowedForURL); 153 IsRequestOSFileHandleAllowedForURL);
156 154
157 const extensions::Extension* GetExtension( 155 const extensions::Extension* GetExtension(
158 const WebKit::WebSecurityOrigin& origin) const; 156 const WebKit::WebSecurityOrigin& origin) const;
159 157
160 // Returns true if the frame is navigating to an URL either into or out of an 158 // Returns true if the frame is navigating to an URL either into or out of an
(...skipping 22 matching lines...) Expand all
183 scoped_ptr<components::VisitedLinkSlave> visited_link_slave_; 181 scoped_ptr<components::VisitedLinkSlave> visited_link_slave_;
184 scoped_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_; 182 scoped_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_;
185 scoped_ptr<prerender::PrerenderDispatcher> prerender_dispatcher_; 183 scoped_ptr<prerender::PrerenderDispatcher> prerender_dispatcher_;
186 // The whitelist for RequestOSFileHandle specified by commandline. 184 // The whitelist for RequestOSFileHandle specified by commandline.
187 std::vector<std::string> request_os_file_handle_allowed_hosts_; 185 std::vector<std::string> request_os_file_handle_allowed_hosts_;
188 }; 186 };
189 187
190 } // namespace chrome 188 } // namespace chrome
191 189
192 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ 190 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/common/chrome_content_client.cc ('k') | chrome/renderer/chrome_content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698