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

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

Issue 10600009: Support partitioning of storage contexts based on render_id. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix comments Created 8 years, 5 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
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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 233
234 // Allow the embedder to control if access to IndexedDB by a shared worker 234 // Allow the embedder to control if access to IndexedDB by a shared worker
235 // is allowed. 235 // is allowed.
236 // This is called on the IO thread. 236 // This is called on the IO thread.
237 virtual bool AllowWorkerIndexedDB( 237 virtual bool AllowWorkerIndexedDB(
238 const GURL& url, 238 const GURL& url,
239 const string16& name, 239 const string16& name,
240 ResourceContext* context, 240 ResourceContext* context,
241 const std::vector<std::pair<int, int> >& render_views); 241 const std::vector<std::pair<int, int> >& render_views);
242 242
243 // Allows the embedder to override the request context based on the URL for 243 // Allow the embedder to override the request context based on the URL for
244 // certain operations, like cookie access. Returns NULL to indicate the 244 // certain operations, like cookie access. Returns NULL to indicate the
245 // regular request context should be used. 245 // regular request context should be used.
246 // This is called on the IO thread. 246 // This is called on the IO thread.
247 virtual net::URLRequestContext* OverrideRequestContextForURL( 247 virtual net::URLRequestContext* OverrideRequestContextForURL(
248 const GURL& url, ResourceContext* context); 248 const GURL& url, ResourceContext* context);
249 249
250 // Allow the embedder to specify which set of persistent state a child
Charlie Reis 2012/07/02 23:21:23 I feel like "which set of persistent state" is lea
awong 2012/07/09 20:37:43 I don't like adding information about how we imple
Charlie Reis 2012/07/10 21:37:48 That's sufficient. Thanks.
251 // process should have access to. Child processes that have different
252 // storage partition identifiers will behave as if they belong to different
253 // browser processes. Returns the empty string for the regular storage
Charlie Reis 2012/07/02 23:21:23 browser processes -> web browsers
awong 2012/07/09 20:37:43 Done.
254 // partition.
255 virtual std::string GetStoragePartitionForChildProcess(
256 content::BrowserContext* browser_context,
257 int child_process_id);
258
250 // Create and return a new quota permission context. 259 // Create and return a new quota permission context.
251 virtual QuotaPermissionContext* CreateQuotaPermissionContext(); 260 virtual QuotaPermissionContext* CreateQuotaPermissionContext();
252 261
253 // Open the given file in the desktop's default manner. 262 // Open the given file in the desktop's default manner.
254 virtual void OpenItem(const FilePath& path) {} 263 virtual void OpenItem(const FilePath& path) {}
255 264
256 // Show the given file in a file manager. If possible, select the file. 265 // Show the given file in a file manager. If possible, select the file.
257 virtual void ShowItemInFolder(const FilePath& path) {} 266 virtual void ShowItemInFolder(const FilePath& path) {}
258 267
259 // Informs the embedder that a certificate error has occured. If 268 // Informs the embedder that a certificate error has occured. If
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 // This is called on a worker thread. 428 // This is called on a worker thread.
420 virtual 429 virtual
421 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( 430 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate(
422 const GURL& url); 431 const GURL& url);
423 #endif 432 #endif
424 }; 433 };
425 434
426 } // namespace content 435 } // namespace content
427 436
428 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 437 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698