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

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

Issue 492873002: Collapse fileapi, webkit_blob, webkit_database, quota, and webkit_common namespaces into single sto… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix chromeos build Created 6 years, 3 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_wrapper.h" 5 #include "content/browser/dom_storage/dom_storage_context_wrapper.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/message_loop/message_loop_proxy.h" 10 #include "base/message_loop/message_loop_proxy.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 reply_loop->PostTask( 57 reply_loop->PostTask(
58 FROM_HERE, 58 FROM_HERE,
59 base::Bind(&InvokeSessionStorageUsageCallbackHelper, 59 base::Bind(&InvokeSessionStorageUsageCallbackHelper,
60 callback, base::Owned(infos))); 60 callback, base::Owned(infos)));
61 } 61 }
62 62
63 } // namespace 63 } // namespace
64 64
65 DOMStorageContextWrapper::DOMStorageContextWrapper( 65 DOMStorageContextWrapper::DOMStorageContextWrapper(
66 const base::FilePath& data_path, 66 const base::FilePath& data_path,
67 quota::SpecialStoragePolicy* special_storage_policy) { 67 storage::SpecialStoragePolicy* special_storage_policy) {
68 base::SequencedWorkerPool* worker_pool = BrowserThread::GetBlockingPool(); 68 base::SequencedWorkerPool* worker_pool = BrowserThread::GetBlockingPool();
69 context_ = new DOMStorageContextImpl( 69 context_ = new DOMStorageContextImpl(
70 data_path.empty() ? data_path 70 data_path.empty() ? data_path
71 : data_path.AppendASCII(kLocalStorageDirectory), 71 : data_path.AppendASCII(kLocalStorageDirectory),
72 data_path.empty() ? data_path 72 data_path.empty() ? data_path
73 : data_path.AppendASCII(kSessionStorageDirectory), 73 : data_path.AppendASCII(kSessionStorageDirectory),
74 special_storage_policy, 74 special_storage_policy,
75 new DOMStorageWorkerPoolTaskRunner( 75 new DOMStorageWorkerPoolTaskRunner(
76 worker_pool, 76 worker_pool,
77 worker_pool->GetNamedSequenceToken("dom_storage_primary"), 77 worker_pool->GetNamedSequenceToken("dom_storage_primary"),
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 156
157 void DOMStorageContextWrapper::Shutdown() { 157 void DOMStorageContextWrapper::Shutdown() {
158 DCHECK(context_.get()); 158 DCHECK(context_.get());
159 context_->task_runner()->PostShutdownBlockingTask( 159 context_->task_runner()->PostShutdownBlockingTask(
160 FROM_HERE, 160 FROM_HERE,
161 DOMStorageTaskRunner::PRIMARY_SEQUENCE, 161 DOMStorageTaskRunner::PRIMARY_SEQUENCE,
162 base::Bind(&DOMStorageContextImpl::Shutdown, context_)); 162 base::Bind(&DOMStorageContextImpl::Shutdown, context_));
163 } 163 }
164 164
165 } // namespace content 165 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/dom_storage/dom_storage_context_wrapper.h ('k') | content/browser/download/download_manager_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698