Index: content/public/browser/content_browser_client.h |
diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h |
index d8484060f8d3c481fd8b4e3ffe87a35dde345edd..de934ce21cc92f32abe8db4b47404df03b18d7ef 100644 |
--- a/content/public/browser/content_browser_client.h |
+++ b/content/public/browser/content_browser_client.h |
@@ -208,6 +208,15 @@ class ContentBrowserClient { |
content::ResourceContext* context, |
const std::vector<std::pair<int, int> >& render_views) = 0; |
+ // Allow the embedder to control if access to IndexedDB by a shared worker |
+ // is allowed. |
+ // This is called on the IO thread. |
+ virtual bool AllowWorkerIndexedDB( |
+ const GURL& url, |
+ const string16& name, |
+ 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 |
// regular request context should be used. |