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

Side by Side Diff: webkit/dom_storage/dom_storage_host.h

Issue 12398008: Purge in-memory localStorage areas if the # of areas exceeds the limit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comment fix 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 | « webkit/dom_storage/dom_storage_context.cc ('k') | webkit/dom_storage/dom_storage_host.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 WEBKIT_DOM_STORAGE_DOM_STORAGE_HOST_H_ 5 #ifndef WEBKIT_DOM_STORAGE_DOM_STORAGE_HOST_H_
6 #define WEBKIT_DOM_STORAGE_DOM_STORAGE_HOST_H_ 6 #define WEBKIT_DOM_STORAGE_DOM_STORAGE_HOST_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 // within our associated client process. 53 // within our associated client process.
54 struct NamespaceAndArea { 54 struct NamespaceAndArea {
55 scoped_refptr<DomStorageNamespace> namespace_; 55 scoped_refptr<DomStorageNamespace> namespace_;
56 scoped_refptr<DomStorageArea> area_; 56 scoped_refptr<DomStorageArea> area_;
57 NamespaceAndArea(); 57 NamespaceAndArea();
58 ~NamespaceAndArea(); 58 ~NamespaceAndArea();
59 }; 59 };
60 typedef std::map<int, NamespaceAndArea > AreaMap; 60 typedef std::map<int, NamespaceAndArea > AreaMap;
61 61
62 DomStorageArea* GetOpenArea(int connection_id); 62 DomStorageArea* GetOpenArea(int connection_id);
63 DomStorageNamespace* GetNamespace(int connection_id);
63 64
64 scoped_refptr<DomStorageContext> context_; 65 scoped_refptr<DomStorageContext> context_;
65 AreaMap connections_; 66 AreaMap connections_;
66 }; 67 };
67 68
68 } // namespace dom_storage 69 } // namespace dom_storage
69 70
70 #endif // WEBKIT_DOM_STORAGE_DOM_STORAGE_HOST_H_ 71 #endif // WEBKIT_DOM_STORAGE_DOM_STORAGE_HOST_H_
OLDNEW
« no previous file with comments | « webkit/dom_storage/dom_storage_context.cc ('k') | webkit/dom_storage/dom_storage_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698