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

Side by Side Diff: content/browser/dom_storage/dom_storage_context_impl.h

Issue 2005783005: Re-enable storage for Suborigins. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Rebase on ToT Created 4 years, 2 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
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_BROWSER_DOM_STORAGE_DOM_STORAGE_CONTEXT_IMPL_H_ 5 #ifndef CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_CONTEXT_IMPL_H_
6 #define CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_CONTEXT_IMPL_H_ 6 #define CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_CONTEXT_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <deque> 10 #include <deque>
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 void ClearSessionOnlyOrigins(); 216 void ClearSessionOnlyOrigins();
217 217
218 // For scavenging unused sessionStorages. 218 // For scavenging unused sessionStorages.
219 void FindUnusedNamespaces(); 219 void FindUnusedNamespaces();
220 void FindUnusedNamespacesInCommitSequence( 220 void FindUnusedNamespacesInCommitSequence(
221 const std::set<std::string>& namespace_ids_in_use, 221 const std::set<std::string>& namespace_ids_in_use,
222 const std::set<std::string>& protected_persistent_session_ids); 222 const std::set<std::string>& protected_persistent_session_ids);
223 void DeleteNextUnusedNamespace(); 223 void DeleteNextUnusedNamespace();
224 void DeleteNextUnusedNamespaceInCommitSequence(); 224 void DeleteNextUnusedNamespaceInCommitSequence();
225 225
226 void DeleteAndClearStorageNamespaceForOrigin(const GURL& origin,
227 DOMStorageNamespace* local);
228
226 // Collection of namespaces keyed by id. 229 // Collection of namespaces keyed by id.
227 StorageNamespaceMap namespaces_; 230 StorageNamespaceMap namespaces_;
228 231
229 // Where localstorage data is stored, maybe empty for the incognito use case. 232 // Where localstorage data is stored, maybe empty for the incognito use case.
230 base::FilePath localstorage_directory_; 233 base::FilePath localstorage_directory_;
231 234
232 // Where sessionstorage data is stored, maybe empty for the incognito use 235 // Where sessionstorage data is stored, maybe empty for the incognito use
233 // case. Always empty until the file-backed session storage feature is 236 // case. Always empty until the file-backed session storage feature is
234 // implemented. 237 // implemented.
235 base::FilePath sessionstorage_directory_; 238 base::FilePath sessionstorage_directory_;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 // sessionStorage. 271 // sessionStorage.
269 std::map<std::string, int64_t> persistent_namespace_id_to_namespace_id_; 272 std::map<std::string, int64_t> persistent_namespace_id_to_namespace_id_;
270 273
271 // For cleaning up unused databases more aggressively. 274 // For cleaning up unused databases more aggressively.
272 bool is_low_end_device_; 275 bool is_low_end_device_;
273 }; 276 };
274 277
275 } // namespace content 278 } // namespace content
276 279
277 #endif // CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_CONTEXT_IMPL_H_ 280 #endif // CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_CONTEXT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698