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

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

Issue 1291623002: Remove STATIC_CONST_MEMBER_DEFINITION. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 4 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
« no previous file with comments | « content/browser/storage_partition_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 virtual IndexedDBContext* GetIndexedDBContext() = 0; 70 virtual IndexedDBContext* GetIndexedDBContext() = 0;
71 virtual ServiceWorkerContext* GetServiceWorkerContext() = 0; 71 virtual ServiceWorkerContext* GetServiceWorkerContext() = 0;
72 virtual GeofencingManager* GetGeofencingManager() = 0; 72 virtual GeofencingManager* GetGeofencingManager() = 0;
73 virtual HostZoomMap* GetHostZoomMap() = 0; 73 virtual HostZoomMap* GetHostZoomMap() = 0;
74 virtual HostZoomLevelContext* GetHostZoomLevelContext() = 0; 74 virtual HostZoomLevelContext* GetHostZoomLevelContext() = 0;
75 virtual ZoomLevelDelegate* GetZoomLevelDelegate() = 0; 75 virtual ZoomLevelDelegate* GetZoomLevelDelegate() = 0;
76 virtual NavigatorConnectContext* GetNavigatorConnectContext() = 0; 76 virtual NavigatorConnectContext* GetNavigatorConnectContext() = 0;
77 virtual PlatformNotificationContext* GetPlatformNotificationContext() = 0; 77 virtual PlatformNotificationContext* GetPlatformNotificationContext() = 0;
78 virtual BackgroundSyncContext* GetBackgroundSyncContext() = 0; 78 virtual BackgroundSyncContext* GetBackgroundSyncContext() = 0;
79 79
80 static const uint32 REMOVE_DATA_MASK_APPCACHE = 1 << 0; 80 enum : uint32 {
81 static const uint32 REMOVE_DATA_MASK_COOKIES = 1 << 1; 81 REMOVE_DATA_MASK_APPCACHE = 1 << 0,
82 static const uint32 REMOVE_DATA_MASK_FILE_SYSTEMS = 1 << 2; 82 REMOVE_DATA_MASK_COOKIES = 1 << 1,
83 static const uint32 REMOVE_DATA_MASK_INDEXEDDB = 1 << 3; 83 REMOVE_DATA_MASK_FILE_SYSTEMS = 1 << 2,
84 static const uint32 REMOVE_DATA_MASK_LOCAL_STORAGE = 1 << 4; 84 REMOVE_DATA_MASK_INDEXEDDB = 1 << 3,
85 static const uint32 REMOVE_DATA_MASK_SHADER_CACHE = 1 << 5; 85 REMOVE_DATA_MASK_LOCAL_STORAGE = 1 << 4,
86 static const uint32 REMOVE_DATA_MASK_WEBSQL = 1 << 6; 86 REMOVE_DATA_MASK_SHADER_CACHE = 1 << 5,
87 static const uint32 REMOVE_DATA_MASK_WEBRTC_IDENTITY = 1 << 7; 87 REMOVE_DATA_MASK_WEBSQL = 1 << 6,
88 static const uint32 REMOVE_DATA_MASK_SERVICE_WORKERS = 1 << 8; 88 REMOVE_DATA_MASK_WEBRTC_IDENTITY = 1 << 7,
89 static const uint32 REMOVE_DATA_MASK_ALL = 0xFFFFFFFF; 89 REMOVE_DATA_MASK_SERVICE_WORKERS = 1 << 8,
90 REMOVE_DATA_MASK_ALL = 0xFFFFFFFF,
90 91
91 // Corresponds to storage::kStorageTypeTemporary. 92 // Corresponds to storage::kStorageTypeTemporary.
92 static const uint32 QUOTA_MANAGED_STORAGE_MASK_TEMPORARY = 1 << 0; 93 QUOTA_MANAGED_STORAGE_MASK_TEMPORARY = 1 << 0,
93 // Corresponds to storage::kStorageTypePersistent. 94 // Corresponds to storage::kStorageTypePersistent.
94 static const uint32 QUOTA_MANAGED_STORAGE_MASK_PERSISTENT = 1 << 1; 95 QUOTA_MANAGED_STORAGE_MASK_PERSISTENT = 1 << 1,
95 // Corresponds to storage::kStorageTypeSyncable. 96 // Corresponds to storage::kStorageTypeSyncable.
96 static const uint32 QUOTA_MANAGED_STORAGE_MASK_SYNCABLE = 1 << 2; 97 QUOTA_MANAGED_STORAGE_MASK_SYNCABLE = 1 << 2,
97 static const uint32 QUOTA_MANAGED_STORAGE_MASK_ALL = 0xFFFFFFFF; 98 QUOTA_MANAGED_STORAGE_MASK_ALL = 0xFFFFFFFF,
99 };
98 100
99 // Starts an asynchronous task that does a best-effort clear the data 101 // Starts an asynchronous task that does a best-effort clear the data
100 // corresponding to the given |remove_mask| and |quota_storage_remove_mask| 102 // corresponding to the given |remove_mask| and |quota_storage_remove_mask|
101 // inside this StoragePartition for the given |storage_origin|. 103 // inside this StoragePartition for the given |storage_origin|.
102 // Note session dom storage is not cleared even if you specify 104 // Note session dom storage is not cleared even if you specify
103 // REMOVE_DATA_MASK_LOCAL_STORAGE. 105 // REMOVE_DATA_MASK_LOCAL_STORAGE.
104 // |callback| is called when data deletion is done or at least the deletion is 106 // |callback| is called when data deletion is done or at least the deletion is
105 // scheduled. 107 // scheduled.
106 // 108 //
107 // TODO(ajwong): Right now, the embedder may have some 109 // TODO(ajwong): Right now, the embedder may have some
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 // unwritten data has been written out to the filesystem. 143 // unwritten data has been written out to the filesystem.
142 virtual void Flush() = 0; 144 virtual void Flush() = 0;
143 145
144 protected: 146 protected:
145 virtual ~StoragePartition() {} 147 virtual ~StoragePartition() {}
146 }; 148 };
147 149
148 } // namespace content 150 } // namespace content
149 151
150 #endif // CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ 152 #endif // CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_
OLDNEW
« no previous file with comments | « content/browser/storage_partition_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698