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

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

Issue 127573002: Add basic browser test for EmbeddedWorker/ServiceWorker (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: copyright fix Created 6 years, 11 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 <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 20 matching lines...) Expand all
31 31
32 namespace webkit_database { 32 namespace webkit_database {
33 class DatabaseTracker; 33 class DatabaseTracker;
34 } 34 }
35 35
36 namespace content { 36 namespace content {
37 37
38 class BrowserContext; 38 class BrowserContext;
39 class IndexedDBContext; 39 class IndexedDBContext;
40 class DOMStorageContext; 40 class DOMStorageContext;
41 class ServiceWorkerContextWrapper;
41 42
42 // Defines what persistent state a child process can access. 43 // Defines what persistent state a child process can access.
43 // 44 //
44 // The StoragePartition defines the view each child process has of the 45 // The StoragePartition defines the view each child process has of the
45 // persistent state inside the BrowserContext. This is used to implement 46 // persistent state inside the BrowserContext. This is used to implement
46 // isolated storage where a renderer with isolated storage cannot see 47 // isolated storage where a renderer with isolated storage cannot see
47 // the cookies, localStorage, etc., that normal web renderers have access to. 48 // the cookies, localStorage, etc., that normal web renderers have access to.
48 class StoragePartition { 49 class StoragePartition {
49 public: 50 public:
50 virtual base::FilePath GetPath() = 0; 51 virtual base::FilePath GetPath() = 0;
51 virtual net::URLRequestContextGetter* GetURLRequestContext() = 0; 52 virtual net::URLRequestContextGetter* GetURLRequestContext() = 0;
52 virtual net::URLRequestContextGetter* GetMediaURLRequestContext() = 0; 53 virtual net::URLRequestContextGetter* GetMediaURLRequestContext() = 0;
53 virtual quota::QuotaManager* GetQuotaManager() = 0; 54 virtual quota::QuotaManager* GetQuotaManager() = 0;
54 virtual appcache::AppCacheService* GetAppCacheService() = 0; 55 virtual appcache::AppCacheService* GetAppCacheService() = 0;
55 virtual fileapi::FileSystemContext* GetFileSystemContext() = 0; 56 virtual fileapi::FileSystemContext* GetFileSystemContext() = 0;
56 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() = 0; 57 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() = 0;
57 virtual DOMStorageContext* GetDOMStorageContext() = 0; 58 virtual DOMStorageContext* GetDOMStorageContext() = 0;
58 virtual IndexedDBContext* GetIndexedDBContext() = 0; 59 virtual IndexedDBContext* GetIndexedDBContext() = 0;
60 virtual ServiceWorkerContextWrapper* GetServiceWorkerContext() = 0;
59 61
60 enum RemoveDataMask { 62 enum RemoveDataMask {
61 REMOVE_DATA_MASK_APPCACHE = 1 << 0, 63 REMOVE_DATA_MASK_APPCACHE = 1 << 0,
62 REMOVE_DATA_MASK_COOKIES = 1 << 1, 64 REMOVE_DATA_MASK_COOKIES = 1 << 1,
63 REMOVE_DATA_MASK_FILE_SYSTEMS = 1 << 2, 65 REMOVE_DATA_MASK_FILE_SYSTEMS = 1 << 2,
64 REMOVE_DATA_MASK_INDEXEDDB = 1 << 3, 66 REMOVE_DATA_MASK_INDEXEDDB = 1 << 3,
65 REMOVE_DATA_MASK_LOCAL_STORAGE = 1 << 4, 67 REMOVE_DATA_MASK_LOCAL_STORAGE = 1 << 4,
66 REMOVE_DATA_MASK_SHADER_CACHE = 1 << 5, 68 REMOVE_DATA_MASK_SHADER_CACHE = 1 << 5,
67 REMOVE_DATA_MASK_WEBSQL = 1 << 6, 69 REMOVE_DATA_MASK_WEBSQL = 1 << 6,
68 REMOVE_DATA_MASK_WEBRTC_IDENTITY = 1 << 7, 70 REMOVE_DATA_MASK_WEBRTC_IDENTITY = 1 << 7,
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 const base::Time end, 121 const base::Time end,
120 const base::Closure& callback) = 0; 122 const base::Closure& callback) = 0;
121 123
122 protected: 124 protected:
123 virtual ~StoragePartition() {} 125 virtual ~StoragePartition() {}
124 }; 126 };
125 127
126 } // namespace content 128 } // namespace content
127 129
128 #endif // CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ 130 #endif // CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_
OLDNEW
« no previous file with comments | « content/content_tests.gypi ('k') | content/renderer/service_worker/embedded_worker_context_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698