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

Unified Diff: content/browser/indexed_db/indexed_db_context_impl.cc

Issue 1504033007: Move Indexed DB from dedicated thread to task scheduler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@timer
Patch Set: Tweak traits Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/indexed_db/indexed_db_context_impl.cc
diff --git a/content/browser/indexed_db/indexed_db_context_impl.cc b/content/browser/indexed_db/indexed_db_context_impl.cc
index 660a48abd449aaf75f913ddba65fd50ef3517cfe..5357e60c6842a6815987eb9e0dcb30dff1aca9b0 100644
--- a/content/browser/indexed_db/indexed_db_context_impl.cc
+++ b/content/browser/indexed_db/indexed_db_context_impl.cc
@@ -63,7 +63,7 @@ namespace {
void GetAllOriginsAndPaths(const base::FilePath& indexeddb_path,
std::vector<Origin>* origins,
std::vector<base::FilePath>* file_paths) {
- // TODO(jsbell): DCHECK that this is running on an IndexedDB thread,
+ // TODO(jsbell): DCHECK that this is running on an IndexedDB sequence,
// if a global handle to it is ever available.
if (indexeddb_path.empty())
return;
@@ -86,7 +86,7 @@ void GetAllOriginsAndPaths(const base::FilePath& indexeddb_path,
void ClearSessionOnlyOrigins(
const base::FilePath& indexeddb_path,
scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy) {
- // TODO(jsbell): DCHECK that this is running on an IndexedDB thread,
+ // TODO(jsbell): DCHECK that this is running on an IndexedDB sequence,
// if a global handle to it is ever available.
std::vector<Origin> origins;
std::vector<base::FilePath> file_paths;
@@ -110,11 +110,11 @@ IndexedDBContextImpl::IndexedDBContextImpl(
const base::FilePath& data_path,
storage::SpecialStoragePolicy* special_storage_policy,
storage::QuotaManagerProxy* quota_manager_proxy,
- base::SequencedTaskRunner* task_runner)
+ scoped_refptr<base::SequencedTaskRunner> task_runner)
: force_keep_session_state_(false),
special_storage_policy_(special_storage_policy),
quota_manager_proxy_(quota_manager_proxy),
- task_runner_(task_runner) {
+ task_runner_(std::move(task_runner)) {
IDB_TRACE("init");
if (!data_path.empty())
data_path_ = data_path.Append(kIndexedDBDirectory);
« no previous file with comments | « content/browser/indexed_db/indexed_db_context_impl.h ('k') | content/browser/indexed_db/indexed_db_database_callbacks.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698