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

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

Issue 10969012: Fix: Prerendering was confusing SessionService to not save sessionStorage. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Code review. Created 8 years, 2 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 20 matching lines...) Expand all
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) { 37 void SessionStorageNamespaceImpl::SetShouldPersist(bool should_persist) {
38 session_->SetShouldPersist(should_persist); 38 session_->SetShouldPersist(should_persist);
39 } 39 }
40 40
41 bool SessionStorageNamespaceImpl::should_persist() const {
42 return session_->should_persist();
43 }
44
41 SessionStorageNamespaceImpl* SessionStorageNamespaceImpl::Clone() { 45 SessionStorageNamespaceImpl* SessionStorageNamespaceImpl::Clone() {
42 return new SessionStorageNamespaceImpl(session_->Clone()); 46 return new SessionStorageNamespaceImpl(session_->Clone());
43 } 47 }
44 48
45 bool SessionStorageNamespaceImpl::IsFromContext( 49 bool SessionStorageNamespaceImpl::IsFromContext(
46 DOMStorageContextImpl* context) { 50 DOMStorageContextImpl* context) {
47 return session_->IsFromContext(context->context()); 51 return session_->IsFromContext(context->context());
48 } 52 }
49 53
50 SessionStorageNamespaceImpl::SessionStorageNamespaceImpl( 54 SessionStorageNamespaceImpl::SessionStorageNamespaceImpl(
51 DomStorageSession* clone) 55 DomStorageSession* clone)
52 : session_(clone) { 56 : session_(clone) {
53 } 57 }
54 58
55 SessionStorageNamespaceImpl::~SessionStorageNamespaceImpl() { 59 SessionStorageNamespaceImpl::~SessionStorageNamespaceImpl() {
56 } 60 }
OLDNEW
« no previous file with comments | « content/browser/dom_storage/session_storage_namespace_impl.h ('k') | content/public/browser/session_storage_namespace.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698