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

Side by Side Diff: content/browser/indexed_db/database_impl.h

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 unified diff | Download patch
« no previous file with comments | « content/browser/indexed_db/cursor_impl.cc ('k') | content/browser/indexed_db/database_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #ifndef CONTENT_BROWSER_INDEXED_DB_DATABASE_IMPL_H_ 5 #ifndef CONTENT_BROWSER_INDEXED_DB_DATABASE_IMPL_H_
6 #define CONTENT_BROWSER_INDEXED_DB_DATABASE_IMPL_H_ 6 #define CONTENT_BROWSER_INDEXED_DB_DATABASE_IMPL_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "content/common/indexed_db/indexed_db.mojom.h" 10 #include "content/common/indexed_db/indexed_db.mojom.h"
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 int64_t index_id) override; 114 int64_t index_id) override;
115 void RenameIndex(int64_t transaction_id, 115 void RenameIndex(int64_t transaction_id,
116 int64_t object_store_id, 116 int64_t object_store_id,
117 int64_t index_id, 117 int64_t index_id,
118 const base::string16& new_name) override; 118 const base::string16& new_name) override;
119 void Abort(int64_t transaction_id) override; 119 void Abort(int64_t transaction_id) override;
120 void Commit(int64_t transaction_id) override; 120 void Commit(int64_t transaction_id) override;
121 void AckReceivedBlobs(const std::vector<std::string>& uuids) override; 121 void AckReceivedBlobs(const std::vector<std::string>& uuids) override;
122 122
123 private: 123 private:
124 class IDBThreadHelper; 124 class IDBSequenceHelper;
125 125
126 IDBThreadHelper* helper_; 126 IDBSequenceHelper* helper_;
127 // This raw pointer is safe because all DatabaseImpl instances are owned by 127 // This raw pointer is safe because all DatabaseImpl instances are owned by
128 // an IndexedDBDispatcherHost. 128 // an IndexedDBDispatcherHost.
129 IndexedDBDispatcherHost* dispatcher_host_; 129 IndexedDBDispatcherHost* dispatcher_host_;
130 const url::Origin origin_; 130 const url::Origin origin_;
131 scoped_refptr<base::SequencedTaskRunner> idb_runner_; 131 scoped_refptr<base::SequencedTaskRunner> idb_runner_;
132 132
133 DISALLOW_COPY_AND_ASSIGN(DatabaseImpl); 133 DISALLOW_COPY_AND_ASSIGN(DatabaseImpl);
134 }; 134 };
135 135
136 } // namespace content 136 } // namespace content
137 137
138 #endif // CONTENT_BROWSER_INDEXED_DB_DATABASE_IMPL_H_ 138 #endif // CONTENT_BROWSER_INDEXED_DB_DATABASE_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/indexed_db/cursor_impl.cc ('k') | content/browser/indexed_db/database_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698