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

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

Issue 10572015: Session restore: Store and restore persistent IDs for sessionStorage. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 6 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_SESSION_STORAGE_NAMESPACE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_SESSION_STORAGE_NAMESPACE_H_
6 #define CONTENT_PUBLIC_BROWSER_SESSION_STORAGE_NAMESPACE_H_ 6 #define CONTENT_PUBLIC_BROWSER_SESSION_STORAGE_NAMESPACE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 10 matching lines...) Expand all
21 SessionStorageNamespace() {} 21 SessionStorageNamespace() {}
22 22
23 // Returns the ID of the |SessionStorageNamespace|. The ID is unique among all 23 // Returns the ID of the |SessionStorageNamespace|. The ID is unique among all
24 // SessionStorageNamespace objects, but not unique across browser runs. 24 // SessionStorageNamespace objects, but not unique across browser runs.
25 virtual int64 id() const = 0; 25 virtual int64 id() const = 0;
26 26
27 // Returns the persistent ID for the |SessionStorageNamespace|. The ID is 27 // Returns the persistent ID for the |SessionStorageNamespace|. The ID is
28 // unique across browser runs. 28 // unique across browser runs.
29 virtual const std::string& persistent_id() const = 0; 29 virtual const std::string& persistent_id() const = 0;
30 30
31 // For marking that the sessionStorage will be needed or won't be needed by
32 // session restore.
33 virtual void SetShouldPersist(bool should_persist) = 0;
34
31 protected: 35 protected:
32 friend class base::RefCountedThreadSafe<SessionStorageNamespace>; 36 friend class base::RefCountedThreadSafe<SessionStorageNamespace>;
33 virtual ~SessionStorageNamespace() {} 37 virtual ~SessionStorageNamespace() {}
34 38
35 DISALLOW_COPY_AND_ASSIGN(SessionStorageNamespace); 39 DISALLOW_COPY_AND_ASSIGN(SessionStorageNamespace);
michaeln 2012/06/20 04:01:59 i'm not sure this is meaningful on an abstract cla
marja 2012/06/20 16:54:32 Done; I added this because of an earlier code revi
jochen (gone - plz use gerrit) 2012/06/20 16:55:34 The style guide says to either provide copy constr
36 }; 40 };
37 41
38 } // namespace content 42 } // namespace content
39 43
40 #endif // CONTENT_PUBLIC_BROWSER_SESSION_STORAGE_NAMESPACE_H_ 44 #endif // CONTENT_PUBLIC_BROWSER_SESSION_STORAGE_NAMESPACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698