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/dom_storage_context_impl_new.h" | 5 #include "content/browser/dom_storage/dom_storage_context_impl_new.h" |
6 | 6 |
7 #ifdef ENABLE_NEW_DOM_STORAGE_BACKEND | 7 #ifdef ENABLE_NEW_DOM_STORAGE_BACKEND |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 DCHECK(context_); | 165 DCHECK(context_); |
166 int64 clone_id = context_->AllocateSessionId(); | 166 int64 clone_id = context_->AllocateSessionId(); |
167 context_->task_runner()->PostTask( | 167 context_->task_runner()->PostTask( |
168 FROM_HERE, | 168 FROM_HERE, |
169 base::Bind(&DomStorageContext::CloneSessionNamespace, context_, | 169 base::Bind(&DomStorageContext::CloneSessionNamespace, context_, |
170 existing_namespace_id, clone_id)); | 170 existing_namespace_id, clone_id)); |
171 return clone_id; | 171 return clone_id; |
172 } | 172 } |
173 | 173 |
174 #endif // ENABLE_NEW_DOM_STORAGE_BACKEND | 174 #endif // ENABLE_NEW_DOM_STORAGE_BACKEND |
OLD | NEW |