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

Unified Diff: content/public/browser/content_browser_client.h

Issue 8514004: Remove includes of worker_messages.h from chrome code, since that's an internal detail of content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 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 side-by-side diff with in-line comments
Download patch
Index: content/public/browser/content_browser_client.h
===================================================================
--- content/public/browser/content_browser_client.h (revision 109446)
+++ content/public/browser/content_browser_client.h (working copy)
@@ -119,11 +119,6 @@
// embedder's IPC filters have priority.
virtual void PluginProcessHostCreated(PluginProcessHost* host) = 0;
- // Notifies that a WorkerProcessHost has been created. This is called
- // before the content layer adds its own message filters, so that the
- // embedder's IPC filters have priority.
- virtual void WorkerProcessHostCreated(WorkerProcessHost* host) = 0;
-
// Gets the WebUIFactory which will be responsible for generating WebUIs.
virtual WebUIFactory* GetWebUIFactory() = 0;
@@ -206,6 +201,24 @@
virtual bool AllowSaveLocalState(
const content::ResourceContext& context) = 0;
+ // Allow the embedder to control if access to web database by a worker is
+ // allowed.
+ // This is called on the IO thread.
+ virtual bool AllowWorkerDatabase(int worker_route_id,
+ const GURL& url,
+ const string16& name,
+ const string16& display_name,
+ unsigned long estimated_size,
+ WorkerProcessHost* worker_process_host) = 0;
+
+ // Allow the embedder to control if access to file system by a worker is
+ // allowed.
+ // This is called on the IO thread.
+ virtual bool AllowWorkerFileSystem(
+ int worker_route_id,
+ const GURL& url,
+ WorkerProcessHost* worker_process_host) = 0;
+
// Allows the embedder to override the request context based on the URL for
// certain operations, like cookie access. Returns NULL to indicate the
// regular request context should be used.

Powered by Google App Engine
This is Rietveld 408576698