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

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

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 #include "content/browser/dom_storage/session_storage_namespace_impl.h" 5 #include "content/browser/dom_storage/session_storage_namespace_impl.h"
6 6
7 #include "content/browser/dom_storage/dom_storage_context_impl.h" 7 #include "content/browser/dom_storage/dom_storage_context_impl.h"
8 #include "webkit/dom_storage/dom_storage_session.h" 8 #include "webkit/dom_storage/dom_storage_session.h"
9 9
10 using dom_storage::DomStorageContext; 10 using dom_storage::DomStorageContext;
(...skipping 16 matching lines...) Expand all
27 } 27 }
28 28
29 int64 SessionStorageNamespaceImpl::id() const { 29 int64 SessionStorageNamespaceImpl::id() const {
30 return session_->namespace_id(); 30 return session_->namespace_id();
31 } 31 }
32 32
33 const std::string& SessionStorageNamespaceImpl::persistent_id() const { 33 const std::string& SessionStorageNamespaceImpl::persistent_id() const {
34 return session_->persistent_namespace_id(); 34 return session_->persistent_namespace_id();
35 } 35 }
36 36
37 void SessionStorageNamespaceImpl::SetShouldPersist(bool should_persist) {
38 session_->SetShouldPersist(should_persist);
39 }
40
37 SessionStorageNamespaceImpl* SessionStorageNamespaceImpl::Clone() { 41 SessionStorageNamespaceImpl* SessionStorageNamespaceImpl::Clone() {
38 return new SessionStorageNamespaceImpl(session_->Clone()); 42 return new SessionStorageNamespaceImpl(session_->Clone());
39 } 43 }
40 44
41 SessionStorageNamespaceImpl::SessionStorageNamespaceImpl( 45 SessionStorageNamespaceImpl::SessionStorageNamespaceImpl(
42 DomStorageSession* clone) 46 DomStorageSession* clone)
43 : session_(clone) { 47 : session_(clone) {
44 } 48 }
45 49
46 SessionStorageNamespaceImpl::~SessionStorageNamespaceImpl() { 50 SessionStorageNamespaceImpl::~SessionStorageNamespaceImpl() {
47 } 51 }
OLDNEW
« no previous file with comments | « content/browser/dom_storage/session_storage_namespace_impl.h ('k') | content/public/browser/dom_storage_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698