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

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

Issue 11269010: Move fileapi and dom_storage directories into the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 1 month 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;
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698