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

Side by Side Diff: content/public/renderer/content_renderer_client.h

Issue 33053002: Pepper: Move FileIO host from renderer to browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes for bbudge Created 7 years, 1 month 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 CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 const std::string& value); 231 const std::string& value);
232 232
233 // Allows an embedder to return custom PPAPI interfaces. 233 // Allows an embedder to return custom PPAPI interfaces.
234 virtual const void* CreatePPAPIInterface( 234 virtual const void* CreatePPAPIInterface(
235 const std::string& interface_name); 235 const std::string& interface_name);
236 236
237 // Returns true if the given Pepper plugin is external (requiring special 237 // Returns true if the given Pepper plugin is external (requiring special
238 // startup steps). 238 // startup steps).
239 virtual bool IsExternalPepperPlugin(const std::string& module_name); 239 virtual bool IsExternalPepperPlugin(const std::string& module_name);
240 240
241 // Returns true if plugin living in the container can use
242 // pp::FileIO::RequestOSFileHandle.
243 // TODO(teravest): Remove this when FileIO is moved to the browser.
244 virtual bool IsPluginAllowedToCallRequestOSFileHandle(
245 WebKit::WebPluginContainer* container);
246
247 // Returns whether BrowserPlugin should be allowed within the |container|. 241 // Returns whether BrowserPlugin should be allowed within the |container|.
248 virtual bool AllowBrowserPlugin(WebKit::WebPluginContainer* container); 242 virtual bool AllowBrowserPlugin(WebKit::WebPluginContainer* container);
249 243
250 // Returns true if the page at |url| can use Pepper MediaStream APIs. 244 // Returns true if the page at |url| can use Pepper MediaStream APIs.
251 virtual bool AllowPepperMediaStreamAPI(const GURL& url); 245 virtual bool AllowPepperMediaStreamAPI(const GURL& url);
252 246
253 // Gives the embedder a chance to register the key system(s) it supports by 247 // Gives the embedder a chance to register the key system(s) it supports by
254 // populating |key_systems|. 248 // populating |key_systems|.
255 virtual void AddKeySystems(std::vector<KeySystemInfo>* key_systems); 249 virtual void AddKeySystems(std::vector<KeySystemInfo>* key_systems);
256 250
257 // Returns true if we should report a detailed message (including a stack 251 // Returns true if we should report a detailed message (including a stack
258 // trace) for console [logs|errors|exceptions]. |source| is the WebKit- 252 // trace) for console [logs|errors|exceptions]. |source| is the WebKit-
259 // reported source for the error; this can point to a page or a script, 253 // reported source for the error; this can point to a page or a script,
260 // and can be external or internal. 254 // and can be external or internal.
261 virtual bool ShouldReportDetailedMessageForSource( 255 virtual bool ShouldReportDetailedMessageForSource(
262 const base::string16& source) const; 256 const base::string16& source) const;
263 257
264 // Returns true if we should apply the cross-site document blocking policy to 258 // Returns true if we should apply the cross-site document blocking policy to
265 // this renderer process. Currently, we apply the policy only to a renderer 259 // this renderer process. Currently, we apply the policy only to a renderer
266 // process running on a normal page from the web. 260 // process running on a normal page from the web.
267 virtual bool ShouldEnableSiteIsolationPolicy() const; 261 virtual bool ShouldEnableSiteIsolationPolicy() const;
268 }; 262 };
269 263
270 } // namespace content 264 } // namespace content
271 265
272 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 266 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698