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

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

Issue 10086018: More DomStorage house cleaning (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 8 months 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/dom_storage_context_impl_new.h" 5 #include "content/browser/dom_storage/dom_storage_context_impl.h"
6
7 #ifdef ENABLE_NEW_DOM_STORAGE_BACKEND
8 6
9 #include "base/bind.h" 7 #include "base/bind.h"
10 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
11 #include "base/message_loop_proxy.h" 9 #include "base/message_loop_proxy.h"
12 #include "content/public/browser/browser_thread.h" 10 #include "content/public/browser/browser_thread.h"
13 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" 11 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h"
14 #include "webkit/database/database_util.h" 12 #include "webkit/database/database_util.h"
15 #include "webkit/dom_storage/dom_storage_area.h" 13 #include "webkit/dom_storage/dom_storage_area.h"
16 #include "webkit/dom_storage/dom_storage_context.h" 14 #include "webkit/dom_storage/dom_storage_context.h"
17 #include "webkit/dom_storage/dom_storage_task_runner.h" 15 #include "webkit/dom_storage/dom_storage_task_runner.h"
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 int64 DOMStorageContextImpl::LeakyCloneSessionStorage( 173 int64 DOMStorageContextImpl::LeakyCloneSessionStorage(
176 int64 existing_namespace_id) { 174 int64 existing_namespace_id) {
177 DCHECK(context_); 175 DCHECK(context_);
178 int64 clone_id = context_->AllocateSessionId(); 176 int64 clone_id = context_->AllocateSessionId();
179 context_->task_runner()->PostTask( 177 context_->task_runner()->PostTask(
180 FROM_HERE, 178 FROM_HERE,
181 base::Bind(&DomStorageContext::CloneSessionNamespace, context_, 179 base::Bind(&DomStorageContext::CloneSessionNamespace, context_,
182 existing_namespace_id, clone_id)); 180 existing_namespace_id, clone_id));
183 return clone_id; 181 return clone_id;
184 } 182 }
185
186 #endif // ENABLE_NEW_DOM_STORAGE_BACKEND
OLDNEW
« no previous file with comments | « content/browser/dom_storage/dom_storage_context_impl.h ('k') | content/browser/dom_storage/dom_storage_context_impl_new.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698