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

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

Issue 10909182: Make FileSystemContext respect StoragePartitions. filesystem:// urls will be properly isolated (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch unittest fix from michael Created 8 years, 3 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/browser_context.h
diff --git a/content/public/browser/browser_context.h b/content/public/browser/browser_context.h
index 4258125b38b7a62df45080d05b5dc588596bafd9..75f6154a29ec3899b7100cb731cdae00194e5f71 100644
--- a/content/public/browser/browser_context.h
+++ b/content/public/browser/browser_context.h
@@ -10,10 +10,6 @@
#include "base/supports_user_data.h"
#include "content/common/content_export.h"
-namespace fileapi {
-class FileSystemContext;
-}
-
namespace net {
class URLRequestContextGetter;
}
@@ -48,8 +44,6 @@ class CONTENT_EXPORT BrowserContext : public base::SupportsUserData {
static DownloadManager* GetDownloadManager(BrowserContext* browser_context);
static IndexedDBContext* GetIndexedDBContext(BrowserContext* browser_context);
- static fileapi::FileSystemContext* GetFileSystemContext(
- BrowserContext* browser_context);
static content::StoragePartition* GetStoragePartition(
BrowserContext* browser_context, SiteInstance* site_instance);
@@ -81,6 +75,8 @@ class CONTENT_EXPORT BrowserContext : public base::SupportsUserData {
virtual ~BrowserContext();
// Returns the path of the directory where this context's data is stored.
+ // TODO(ajwong): This accessor needs to go away. Instead, people should get
+ // the path from the StoragePartition.
virtual FilePath GetPath() = 0;
// Return whether this context is incognito. Default is false.
@@ -112,6 +108,9 @@ class CONTENT_EXPORT BrowserContext : public base::SupportsUserData {
// context and renderer process.
virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess(
int renderer_child_id) = 0;
+ virtual net::URLRequestContextGetter*
+ GetMediaRequestContextForStoragePartition(
+ const std::string& partition_id) = 0;
// Returns the resource context.
virtual ResourceContext* GetResourceContext() = 0;

Powered by Google App Engine
This is Rietveld 408576698