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

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

Issue 9317026: Hide WorkerProcessHost from chrome. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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 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 119868)
+++ content/public/browser/content_browser_client.h (working copy)
@@ -7,6 +7,7 @@
#pragma once
#include <string>
+#include <utility>
#include <vector>
#include "base/callback_forward.h"
@@ -26,7 +27,6 @@
class SSLCertErrorHandler;
class SSLClientAuthHandler;
class SkBitmap;
-class WorkerProcessHost;
struct WebPreferences;
namespace content {
@@ -185,23 +185,25 @@
virtual bool AllowSaveLocalState(
const content::ResourceContext& context) = 0;
- // Allow the embedder to control if access to web database by a worker is
- // allowed.
+ // Allow the embedder to control if access to web database by a shared worker
+ // is allowed. |render_views| is a vector of pairs of
+ // RenderProcessID/RenderViewID of RenderViews that are using this worker.
// 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;
+ virtual bool AllowWorkerDatabase(
+ const GURL& url,
+ const string16& name,
+ const string16& display_name,
+ unsigned long estimated_size,
+ const content::ResourceContext& context,
+ const std::vector<std::pair<int, int> >& render_views) = 0;
- // Allow the embedder to control if access to file system by a worker is
- // allowed.
+ // Allow the embedder to control if access to file system by a shared worker
Andrew T Wilson (Slow) 2012/02/01 05:51:37 Is this really only for shared workers?
jam 2012/02/01 16:53:53 yeah, now that only shared workers run in a separa
+ // is allowed.
// This is called on the IO thread.
virtual bool AllowWorkerFileSystem(
- int worker_route_id,
const GURL& url,
- WorkerProcessHost* worker_process_host) = 0;
+ const content::ResourceContext& context,
+ const std::vector<std::pair<int, int> >& render_views) = 0;
// Allows the embedder to override the request context based on the URL for
// certain operations, like cookie access. Returns NULL to indicate the

Powered by Google App Engine
This is Rietveld 408576698