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

Side by Side Diff: content/public/browser/content_browser_client.h

Issue 9557009: IndexedDB: chrome-side changes for permission check from shared worker (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move test to separate CL Created 8 years, 9 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 CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 const std::vector<std::pair<int, int> >& render_views) = 0; 201 const std::vector<std::pair<int, int> >& render_views) = 0;
202 202
203 // Allow the embedder to control if access to file system by a shared worker 203 // Allow the embedder to control if access to file system by a shared worker
204 // is allowed. 204 // is allowed.
205 // This is called on the IO thread. 205 // This is called on the IO thread.
206 virtual bool AllowWorkerFileSystem( 206 virtual bool AllowWorkerFileSystem(
207 const GURL& url, 207 const GURL& url,
208 content::ResourceContext* context, 208 content::ResourceContext* context,
209 const std::vector<std::pair<int, int> >& render_views) = 0; 209 const std::vector<std::pair<int, int> >& render_views) = 0;
210 210
211 // Allow the embedder to control if access to IndexedDB by a shared worker
212 // is allowed.
213 // This is called on the IO thread.
214 virtual bool AllowWorkerIndexedDB(
215 const GURL& url,
216 const string16& name,
217 content::ResourceContext* context,
218 const std::vector<std::pair<int, int> >& render_views) = 0;
219
211 // Allows the embedder to override the request context based on the URL for 220 // Allows the embedder to override the request context based on the URL for
212 // certain operations, like cookie access. Returns NULL to indicate the 221 // certain operations, like cookie access. Returns NULL to indicate the
213 // regular request context should be used. 222 // regular request context should be used.
214 // This is called on the IO thread. 223 // This is called on the IO thread.
215 virtual net::URLRequestContext* OverrideRequestContextForURL( 224 virtual net::URLRequestContext* OverrideRequestContextForURL(
216 const GURL& url, content::ResourceContext* context) = 0; 225 const GURL& url, content::ResourceContext* context) = 0;
217 226
218 // Create and return a new quota permission context. 227 // Create and return a new quota permission context.
219 virtual QuotaPermissionContext* CreateQuotaPermissionContext() = 0; 228 virtual QuotaPermissionContext* CreateQuotaPermissionContext() = 0;
220 229
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 // This is called on a worker thread. 391 // This is called on a worker thread.
383 virtual 392 virtual
384 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( 393 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate(
385 const GURL& url) = 0; 394 const GURL& url) = 0;
386 #endif 395 #endif
387 }; 396 };
388 397
389 } // namespace content 398 } // namespace content
390 399
391 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 400 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698