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

Unified Diff: third_party/WebKit/Source/modules/webdatabase/Database.h

Issue 2741443003: Replace createCrossThreadTask with crossThreadBind in webdatabase (Closed)
Patch Set: comment Created 3 years, 9 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/webdatabase/Database.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/webdatabase/Database.h
diff --git a/third_party/WebKit/Source/modules/webdatabase/Database.h b/third_party/WebKit/Source/modules/webdatabase/Database.h
index 77aa67586a9ac808058cc59804ec167aa4d20273..4a4d57b19b010e33b7a6cff9786dc411e9415027 100644
--- a/third_party/WebKit/Source/modules/webdatabase/Database.h
+++ b/third_party/WebKit/Source/modules/webdatabase/Database.h
@@ -115,6 +115,7 @@ class Database final : public GarbageCollectedFinalized<Database>,
return m_databaseContext.get();
}
ExecutionContext* getExecutionContext() const;
+ WebTaskRunner* getDatabaseTaskRunner() const;
private:
class DatabaseOpenTask;
@@ -176,6 +177,9 @@ class Database final : public GarbageCollectedFinalized<Database>,
RefPtr<SecurityOrigin> m_databaseThreadSecurityOrigin;
Member<DatabaseContext>
m_databaseContext; // Associated with m_executionContext.
+ // TaskRunnerHelper::get is not thread-safe, so we save WebTaskRunner for
+ // DatabaseContext for later use as the constructor runs in the main thread.
nhiroki 2017/03/09 09:07:39 s/DatabaseContext/TaskType::DatabaseAccess/ ?
yuryu 2017/03/10 06:00:57 Done.
+ RefPtr<WebTaskRunner> m_databaseTaskRunner;
String m_name;
String m_expectedVersion;
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/webdatabase/Database.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698