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

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

Issue 9963107: Persist sessionStorage on disk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: code review Created 8 years, 5 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) 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_DOM_STORAGE_CONTEXT_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_DOM_STORAGE_CONTEXT_H_
6 #define CONTENT_PUBLIC_BROWSER_DOM_STORAGE_CONTEXT_H_ 6 #define CONTENT_PUBLIC_BROWSER_DOM_STORAGE_CONTEXT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 21 matching lines...) Expand all
32 // Deletes the local storage data for the given origin. 32 // Deletes the local storage data for the given origin.
33 virtual void DeleteOrigin(const GURL& origin) = 0; 33 virtual void DeleteOrigin(const GURL& origin) = 0;
34 34
35 // Creates a SessionStorageNamespace with the given |persistent_id|. Used 35 // Creates a SessionStorageNamespace with the given |persistent_id|. Used
36 // after tabs are restored by session restore. When created, the 36 // after tabs are restored by session restore. When created, the
37 // SessionStorageNamespace with the correct |persistent_id| will be 37 // SessionStorageNamespace with the correct |persistent_id| will be
38 // associated with the persisted sessionStorage data. 38 // associated with the persisted sessionStorage data.
39 virtual scoped_refptr<SessionStorageNamespace> RecreateSessionStorage( 39 virtual scoped_refptr<SessionStorageNamespace> RecreateSessionStorage(
40 const std::string& persistent_id) = 0; 40 const std::string& persistent_id) = 0;
41 41
42 // Starts deleting sessionStorages which don't have an associated
43 // SessionStorageNamespace alive. Called when SessionStorageNamespaces have
44 // been created after a session restore, or a session restore won't happen.
45 virtual void StartScavengingUnusedSessionStorage() = 0;
46
42 protected: 47 protected:
43 virtual ~DOMStorageContext() {} 48 virtual ~DOMStorageContext() {}
44 }; 49 };
45 50
46 } // namespace content 51 } // namespace content
47 52
48 #endif // CONTENT_PUBLIC_BROWSER_DOM_STORAGE_CONTEXT_H_ 53 #endif // CONTENT_PUBLIC_BROWSER_DOM_STORAGE_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698