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

Side by Side Diff: chrome/browser/in_process_webkit/dom_storage_context.h

Issue 523139: Adds local storage nodes to cookie tree model and cookies view. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 10 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) 2009 The Chromium Authors. All rights reserved. Use of this 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this
2 // source code is governed by a BSD-style license that can be found in the 2 // source code is governed by a BSD-style license that can be found in the
3 // LICENSE file. 3 // LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_CONTEXT_H_ 5 #ifndef CHROME_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_CONTEXT_H_
6 #define CHROME_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_CONTEXT_H_ 6 #define CHROME_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_CONTEXT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 void UnregisterDispatcherHost(DOMStorageDispatcherHost* dispatcher_host); 59 void UnregisterDispatcherHost(DOMStorageDispatcherHost* dispatcher_host);
60 const DispatcherHostSet* GetDispatcherHostSet() const; 60 const DispatcherHostSet* GetDispatcherHostSet() const;
61 61
62 // Tells storage namespaces to purge any memory they do not need. 62 // Tells storage namespaces to purge any memory they do not need.
63 virtual void PurgeMemory(); 63 virtual void PurgeMemory();
64 64
65 // Delete any local storage files that have been touched since the cutoff 65 // Delete any local storage files that have been touched since the cutoff
66 // date that's supplied. 66 // date that's supplied.
67 void DeleteDataModifiedSince(const base::Time& cutoff); 67 void DeleteDataModifiedSince(const base::Time& cutoff);
68 68
69 // Deletes a single local storage file.
70 void DeleteLocalStorageFile(const FilePath& file_path);
71
72 // Deletes all local storage files.
73 void DeleteAllLocalStorageFiles();
74
75 // The local storage directory.
76 static const FilePath::CharType kLocalStorageDirectory[];
77
78 // The local storage file extension.
79 static const FilePath::CharType kLocalStorageExtension[];
80
69 private: 81 private:
70 // Get the local storage instance. The object is owned by this class. 82 // Get the local storage instance. The object is owned by this class.
71 DOMStorageNamespace* CreateLocalStorage(); 83 DOMStorageNamespace* CreateLocalStorage();
72 84
73 // Get a new session storage namespace. The object is owned by this class. 85 // Get a new session storage namespace. The object is owned by this class.
74 DOMStorageNamespace* CreateSessionStorage(int64 namespace_id); 86 DOMStorageNamespace* CreateSessionStorage(int64 namespace_id);
75 87
76 // Used internally to register storage namespaces we create. 88 // Used internally to register storage namespaces we create.
77 void RegisterStorageNamespace(DOMStorageNamespace* storage_namespace); 89 void RegisterStorageNamespace(DOMStorageNamespace* storage_namespace);
78 90
(...skipping 26 matching lines...) Expand all
105 StorageAreaMap storage_area_map_; 117 StorageAreaMap storage_area_map_;
106 118
107 // Maps ids to StorageNamespaces. We own these objects. 119 // Maps ids to StorageNamespaces. We own these objects.
108 typedef std::map<int64, DOMStorageNamespace*> StorageNamespaceMap; 120 typedef std::map<int64, DOMStorageNamespace*> StorageNamespaceMap;
109 StorageNamespaceMap storage_namespace_map_; 121 StorageNamespaceMap storage_namespace_map_;
110 122
111 DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStorageContext); 123 DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStorageContext);
112 }; 124 };
113 125
114 #endif // CHROME_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_CONTEXT_H_ 126 #endif // CHROME_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_CONTEXT_H_
OLDNEW
« no previous file with comments | « chrome/browser/gtk/options/cookies_view_unittest.cc ('k') | chrome/browser/in_process_webkit/dom_storage_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698