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 24 matching lines...) Expand all Loading... |
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 SessionStorageNamespaceImpl* SessionStorageNamespaceImpl::Clone() { | 41 SessionStorageNamespaceImpl* SessionStorageNamespaceImpl::Clone() { |
42 return new SessionStorageNamespaceImpl(session_->Clone()); | 42 return new SessionStorageNamespaceImpl(session_->Clone()); |
43 } | 43 } |
44 | 44 |
| 45 bool SessionStorageNamespaceImpl::IsFromContext( |
| 46 DOMStorageContextImpl* context) { |
| 47 return session_->IsFromContext(context->context()); |
| 48 } |
| 49 |
45 SessionStorageNamespaceImpl::SessionStorageNamespaceImpl( | 50 SessionStorageNamespaceImpl::SessionStorageNamespaceImpl( |
46 DomStorageSession* clone) | 51 DomStorageSession* clone) |
47 : session_(clone) { | 52 : session_(clone) { |
48 } | 53 } |
49 | 54 |
50 SessionStorageNamespaceImpl::~SessionStorageNamespaceImpl() { | 55 SessionStorageNamespaceImpl::~SessionStorageNamespaceImpl() { |
51 } | 56 } |
OLD | NEW |