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

Side by Side Diff: content/public/browser/storage_partition.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 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_STORAGE_PARTITION_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_
6 #define CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ 6 #define CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 9
10 namespace appcache { 10 namespace appcache {
11 class AppCacheService; 11 class AppCacheService;
12 } 12 }
13 13
14 namespace fileapi { 14 namespace fileapi {
15 class FileSystemContext; 15 class FileSystemContext;
16 } 16 }
17 17
18 namespace net {
19 class URLRequestContextGetter;
20 }
21
18 namespace quota { 22 namespace quota {
19 class QuotaManager; 23 class QuotaManager;
20 } 24 }
21 25
22 namespace webkit_database { 26 namespace webkit_database {
23 class DatabaseTracker; 27 class DatabaseTracker;
24 } 28 }
25 29
26 namespace content { 30 namespace content {
27 31
28 class BrowserContext; 32 class BrowserContext;
29 class IndexedDBContext; 33 class IndexedDBContext;
30 class DOMStorageContext; 34 class DOMStorageContext;
31 35
32 // Defines what persistent state a child process can access. 36 // Defines what persistent state a child process can access.
33 // 37 //
34 // The StoragePartition defines the view each child process has of the 38 // The StoragePartition defines the view each child process has of the
35 // persistent state inside the BrowserContext. This is used to implement 39 // persistent state inside the BrowserContext. This is used to implement
36 // isolated storage where a renderer with isolated storage cannot see 40 // isolated storage where a renderer with isolated storage cannot see
37 // the cookies, localStorage, etc., that normal web renderers have access to. 41 // the cookies, localStorage, etc., that normal web renderers have access to.
38 class StoragePartition { 42 class StoragePartition {
39 public: 43 public:
44 virtual FilePath GetPath() = 0;
45 virtual net::URLRequestContextGetter* GetURLRequestContext() = 0;
46 virtual net::URLRequestContextGetter* GetMediaURLRequestContext() = 0;
40 virtual quota::QuotaManager* GetQuotaManager() = 0; 47 virtual quota::QuotaManager* GetQuotaManager() = 0;
41 virtual appcache::AppCacheService* GetAppCacheService() = 0; 48 virtual appcache::AppCacheService* GetAppCacheService() = 0;
42 virtual fileapi::FileSystemContext* GetFileSystemContext() = 0; 49 virtual fileapi::FileSystemContext* GetFileSystemContext() = 0;
43 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() = 0; 50 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() = 0;
44 virtual DOMStorageContext* GetDOMStorageContext() = 0; 51 virtual DOMStorageContext* GetDOMStorageContext() = 0;
45 virtual IndexedDBContext* GetIndexedDBContext() = 0; 52 virtual IndexedDBContext* GetIndexedDBContext() = 0;
46 53
47 protected: 54 protected:
48 virtual ~StoragePartition() {} 55 virtual ~StoragePartition() {}
49 }; 56 };
50 57
51 } // namespace content 58 } // namespace content
52 59
53 #endif // CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ 60 #endif // CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698