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

Side by Side Diff: content/browser/dom_storage/session_storage_namespace_impl.h

Issue 10572015: Session restore: Store and restore persistent IDs for sessionStorage. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: test fix 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_BROWSER_DOM_STORAGE_SESSION_STORAGE_NAMESPACE_IMPL_H_ 5 #ifndef CONTENT_BROWSER_DOM_STORAGE_SESSION_STORAGE_NAMESPACE_IMPL_H_
6 #define CONTENT_BROWSER_DOM_STORAGE_SESSION_STORAGE_NAMESPACE_IMPL_H_ 6 #define CONTENT_BROWSER_DOM_STORAGE_SESSION_STORAGE_NAMESPACE_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 18 matching lines...) Expand all
29 int64 namepace_id_to_clone); 29 int64 namepace_id_to_clone);
30 30
31 // Constructs a |SessionStorageNamespaceImpl| and assigns |persistent_id| 31 // Constructs a |SessionStorageNamespaceImpl| and assigns |persistent_id|
32 // to it. Allocates a new non-persistent ID. 32 // to it. Allocates a new non-persistent ID.
33 SessionStorageNamespaceImpl(DOMStorageContextImpl* context, 33 SessionStorageNamespaceImpl(DOMStorageContextImpl* context,
34 const std::string& persistent_id); 34 const std::string& persistent_id);
35 35
36 // content::SessionStorageNamespace implementation. 36 // content::SessionStorageNamespace implementation.
37 virtual int64 id() const OVERRIDE; 37 virtual int64 id() const OVERRIDE;
38 virtual const std::string& persistent_id() const OVERRIDE; 38 virtual const std::string& persistent_id() const OVERRIDE;
39 virtual void SetShouldPersist(bool should_persist) OVERRIDE;
39 40
40 SessionStorageNamespaceImpl* Clone(); 41 SessionStorageNamespaceImpl* Clone();
41 42
42 private: 43 private:
43 explicit SessionStorageNamespaceImpl(dom_storage::DomStorageSession* clone); 44 explicit SessionStorageNamespaceImpl(dom_storage::DomStorageSession* clone);
44 virtual ~SessionStorageNamespaceImpl(); 45 virtual ~SessionStorageNamespaceImpl();
45 46
46 scoped_refptr<dom_storage::DomStorageSession> session_; 47 scoped_refptr<dom_storage::DomStorageSession> session_;
47 48
48 DISALLOW_COPY_AND_ASSIGN(SessionStorageNamespaceImpl); 49 DISALLOW_COPY_AND_ASSIGN(SessionStorageNamespaceImpl);
49 }; 50 };
50 51
51 #endif // CONTENT_BROWSER_DOM_STORAGE_SESSION_STORAGE_NAMESPACE_IMPL_H_ 52 #endif // CONTENT_BROWSER_DOM_STORAGE_SESSION_STORAGE_NAMESPACE_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/dom_storage/dom_storage_context_impl.cc ('k') | content/browser/dom_storage/session_storage_namespace_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698