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

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

Issue 546081: Adds local storage nodes to cookie tree model and cookies view. ... (Closed) Base URL: svn://svn.chromium.org/chrome/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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 void UnregisterDispatcherHost(DOMStorageDispatcherHost* dispatcher_host); 64 void UnregisterDispatcherHost(DOMStorageDispatcherHost* dispatcher_host);
65 const DispatcherHostSet* GetDispatcherHostSet() const; 65 const DispatcherHostSet* GetDispatcherHostSet() const;
66 66
67 // Tells storage namespaces to purge any memory they do not need. 67 // Tells storage namespaces to purge any memory they do not need.
68 virtual void PurgeMemory(); 68 virtual void PurgeMemory();
69 69
70 // Delete any local storage files that have been touched since the cutoff 70 // Delete any local storage files that have been touched since the cutoff
71 // date that's supplied. 71 // date that's supplied.
72 void DeleteDataModifiedSince(const base::Time& cutoff); 72 void DeleteDataModifiedSince(const base::Time& cutoff);
73 73
74 // Deletes a single local storage file.
75 void DeleteLocalStorageFile(const FilePath& file_path);
76
77 // Deletes all local storage files.
78 void DeleteAllLocalStorageFiles();
79
80 // The local storage directory.
81 static const FilePath::CharType kLocalStorageDirectory[];
82
83 // The local storage file extension.
84 static const FilePath::CharType kLocalStorageExtension[];
85
74 private: 86 private:
75 // The WebKit thread half of CloneSessionStorage above. Static because 87 // The WebKit thread half of CloneSessionStorage above. Static because
76 // DOMStorageContext isn't ref counted thus we can't use a runnable method. 88 // DOMStorageContext isn't ref counted thus we can't use a runnable method.
77 // That said, we know this is safe because this class is destroyed on the 89 // That said, we know this is safe because this class is destroyed on the
78 // WebKit thread, so there's no way it could be destroyed before this is run. 90 // WebKit thread, so there's no way it could be destroyed before this is run.
79 static void CompleteCloningSessionStorage(DOMStorageContext* context, 91 static void CompleteCloningSessionStorage(DOMStorageContext* context,
80 int64 existing_id, int64 clone_id); 92 int64 existing_id, int64 clone_id);
81 93
82 // The last used storage_area_id and storage_namespace_id's. For the storage 94 // The last used storage_area_id and storage_namespace_id's. For the storage
83 // namespaces, IDs allocated on the UI thread are positive and count up while 95 // namespaces, IDs allocated on the UI thread are positive and count up while
(...skipping 17 matching lines...) Expand all
101 StorageAreaMap storage_area_map_; 113 StorageAreaMap storage_area_map_;
102 114
103 // Maps ids to StorageNamespaces. We own these objects. 115 // Maps ids to StorageNamespaces. We own these objects.
104 typedef std::map<int64, DOMStorageNamespace*> StorageNamespaceMap; 116 typedef std::map<int64, DOMStorageNamespace*> StorageNamespaceMap;
105 StorageNamespaceMap storage_namespace_map_; 117 StorageNamespaceMap storage_namespace_map_;
106 118
107 DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStorageContext); 119 DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStorageContext);
108 }; 120 };
109 121
110 #endif // CHROME_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_CONTEXT_H_ 122 #endif // CHROME_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_CONTEXT_H_
OLDNEW
« no previous file with comments | « chrome/browser/gtk/options/cookies_view.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