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; |
11 using dom_storage::DomStorageSession; | 11 using dom_storage::DomStorageSession; |
12 | 12 |
| 13 namespace content { |
| 14 |
13 SessionStorageNamespaceImpl::SessionStorageNamespaceImpl( | 15 SessionStorageNamespaceImpl::SessionStorageNamespaceImpl( |
14 DOMStorageContextImpl* context) | 16 DOMStorageContextImpl* context) |
15 : session_(new DomStorageSession(context->context())) { | 17 : session_(new DomStorageSession(context->context())) { |
16 } | 18 } |
17 | 19 |
18 SessionStorageNamespaceImpl::SessionStorageNamespaceImpl( | 20 SessionStorageNamespaceImpl::SessionStorageNamespaceImpl( |
19 DOMStorageContextImpl* context, int64 namepace_id_to_clone) | 21 DOMStorageContextImpl* context, int64 namepace_id_to_clone) |
20 : session_(DomStorageSession::CloneFrom(context->context(), | 22 : session_(DomStorageSession::CloneFrom(context->context(), |
21 namepace_id_to_clone)) { | 23 namepace_id_to_clone)) { |
22 } | 24 } |
(...skipping 28 matching lines...) Expand all Loading... |
51 return session_->IsFromContext(context->context()); | 53 return session_->IsFromContext(context->context()); |
52 } | 54 } |
53 | 55 |
54 SessionStorageNamespaceImpl::SessionStorageNamespaceImpl( | 56 SessionStorageNamespaceImpl::SessionStorageNamespaceImpl( |
55 DomStorageSession* clone) | 57 DomStorageSession* clone) |
56 : session_(clone) { | 58 : session_(clone) { |
57 } | 59 } |
58 | 60 |
59 SessionStorageNamespaceImpl::~SessionStorageNamespaceImpl() { | 61 SessionStorageNamespaceImpl::~SessionStorageNamespaceImpl() { |
60 } | 62 } |
| 63 |
| 64 } // namespace content |
OLD | NEW |