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

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

Issue 13357004: Clear browsing data clears data for type kStorageTypeTemporary but not for kStorageTypeSyncable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase again Created 7 years, 8 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
« no previous file with comments | « content/browser/storage_partition_impl.cc ('k') | webkit/appcache/appcache_quota_client.cc » ('j') | 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 // Corresponds to quota::kStorageTypePersistent. 65 // Corresponds to quota::kStorageTypePersistent.
66 kQuotaManagedPersistentStorage = 1 << 2, 66 kQuotaManagedPersistentStorage = 1 << 2,
67 67
68 // Local dom storage. 68 // Local dom storage.
69 kLocalDomStorage = 1 << 3, 69 kLocalDomStorage = 1 << 3,
70 kSessionDomStorage = 1 << 4, 70 kSessionDomStorage = 1 << 4,
71 71
72 // Local shader storage. 72 // Local shader storage.
73 kShaderStorage = 1 << 5, 73 kShaderStorage = 1 << 5,
74 74
75 // Corresponds to quota::kStorageTypeSyncable.
76 kQuotaManagedSyncableStorage = 1 << 6,
77
75 kAllStorage = -1, 78 kAllStorage = -1,
76 }; 79 };
77 80
78 // Starts an asynchronous task that does a best-effort clear the data 81 // Starts an asynchronous task that does a best-effort clear the data
79 // corresonding to the given |storage_mask| inside this StoragePartition for 82 // corresonding to the given |storage_mask| inside this StoragePartition for
80 // the given |storage_origin|. Note kSessionDomStorage is not cleared and the 83 // the given |storage_origin|. Note kSessionDomStorage is not cleared and the
81 // mask is ignored. 84 // mask is ignored.
82 // 85 //
83 // TODO(ajwong): Right now, the embedder may have some 86 // TODO(ajwong): Right now, the embedder may have some
84 // URLRequestContextGetter objects that the StoragePartition does not know 87 // URLRequestContextGetter objects that the StoragePartition does not know
(...skipping 18 matching lines...) Expand all
103 const base::Time& begin, 106 const base::Time& begin,
104 const base::Time& end, 107 const base::Time& end,
105 const base::Closure& callback) = 0; 108 const base::Closure& callback) = 0;
106 protected: 109 protected:
107 virtual ~StoragePartition() {} 110 virtual ~StoragePartition() {}
108 }; 111 };
109 112
110 } // namespace content 113 } // namespace content
111 114
112 #endif // CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ 115 #endif // CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_
OLDNEW
« no previous file with comments | « content/browser/storage_partition_impl.cc ('k') | webkit/appcache/appcache_quota_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698