OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |