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

Issue 103473002: Manage WebSQL callbacks with OwnPtr instead of refcounting (Closed)

Created:
7 years ago by adamk
Modified:
7 years ago
Reviewers:
abarth-chromium
CC:
blink-reviews, apavlov+blink_chromium.org, adamk+blink_chromium.org, aandrey+blink_chromium.org, Nils Barth (inactive), caseq+blink_chromium.org, Nate Chapin, arv+blink, yurys+blink_chromium.org, abarth-chromium, marja+watch_chromium.org, devtools-reviews_chromium.org, loislo+blink_chromium.org, lushnikov+blink_chromium.org, eustas+blink_chromium.org, paulirish+reviews_chromium.org, haraken, kojih, jsbell+bindings_chromium.org, alph+blink_chromium.org, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, Inactive, watchdog-blink-watchlist_google.com, michaeln
Visibility:
Public.

Description

Manage WebSQL callbacks with OwnPtr instead of refcounting The only tricky part of this change is in Database::runTransaction, where a callback's refcount was temporarily 2 in order to queue an error callback. I've reorganized the code a bit to avoid sharing ownership in that case, but I'm not terribly familiar with Blink's WebSQL implementation so I'd appreciate a careful look at what I've done there. R=abarth@chromium.org BUG=323681 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=163191

Patch Set 1 #

Total comments: 10

Patch Set 2 : Added asserts and fixmes #

Patch Set 3 : Fix RefPtr/OwnPtr transition gcc errors #

Unified diffs Side-by-side diffs Delta from patch set Stats (+122 lines, -129 lines) Patch
M Source/bindings/scripts/code_generator_v8.pm View 1 chunk +0 lines, -8 lines 0 comments Download
M Source/bindings/v8/custom/V8SQLTransactionCustom.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M Source/core/inspector/InspectorDatabaseAgent.cpp View 7 chunks +15 lines, -15 lines 0 comments Download
M Source/modules/webdatabase/DOMWindowWebDatabase.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/webdatabase/DOMWindowWebDatabase.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/webdatabase/Database.h View 2 chunks +5 lines, -5 lines 0 comments Download
M Source/modules/webdatabase/Database.cpp View 1 1 chunk +21 lines, -14 lines 0 comments Download
M Source/modules/webdatabase/DatabaseCallback.h View 1 chunk +1 line, -3 lines 0 comments Download
M Source/modules/webdatabase/DatabaseManager.h View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/webdatabase/DatabaseManager.cpp View 4 chunks +5 lines, -5 lines 0 comments Download
M Source/modules/webdatabase/DatabaseSync.h View 2 chunks +4 lines, -4 lines 0 comments Download
M Source/modules/webdatabase/DatabaseSync.cpp View 3 chunks +4 lines, -4 lines 0 comments Download
M Source/modules/webdatabase/SQLCallbackWrapper.h View 1 2 5 chunks +13 lines, -13 lines 0 comments Download
M Source/modules/webdatabase/SQLStatement.h View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/modules/webdatabase/SQLStatement.cpp View 2 chunks +5 lines, -5 lines 0 comments Download
M Source/modules/webdatabase/SQLStatementCallback.h View 1 chunk +1 line, -3 lines 0 comments Download
M Source/modules/webdatabase/SQLStatementErrorCallback.h View 1 chunk +1 line, -3 lines 0 comments Download
M Source/modules/webdatabase/SQLTransaction.h View 1 chunk +7 lines, -5 lines 0 comments Download
M Source/modules/webdatabase/SQLTransaction.cpp View 6 chunks +13 lines, -8 lines 0 comments Download
M Source/modules/webdatabase/SQLTransactionBackendSync.h View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/webdatabase/SQLTransactionBackendSync.cpp View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M Source/modules/webdatabase/SQLTransactionCallback.h View 1 chunk +1 line, -3 lines 0 comments Download
M Source/modules/webdatabase/SQLTransactionErrorCallback.h View 1 chunk +1 line, -3 lines 0 comments Download
M Source/modules/webdatabase/SQLTransactionSync.h View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/webdatabase/SQLTransactionSync.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/webdatabase/SQLTransactionSyncCallback.h View 1 chunk +1 line, -3 lines 0 comments Download
M Source/modules/webdatabase/SQLVoidCallback.h View 1 1 chunk +2 lines, -3 lines 0 comments Download
M Source/modules/webdatabase/WorkerGlobalScopeWebDatabase.h View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/webdatabase/WorkerGlobalScopeWebDatabase.cpp View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
adamk
7 years ago (2013-12-04 01:44:02 UTC) #1
abarth-chromium
LGTM, but I'm not really an expert here either. https://codereview.chromium.org/103473002/diff/1/Source/core/inspector/InspectorDatabaseAgent.cpp File Source/core/inspector/InspectorDatabaseAgent.cpp (right): https://codereview.chromium.org/103473002/diff/1/Source/core/inspector/InspectorDatabaseAgent.cpp#newcode301 Source/core/inspector/InspectorDatabaseAgent.cpp:301: ...
7 years ago (2013-12-04 01:55:49 UTC) #2
adamk
https://codereview.chromium.org/103473002/diff/1/Source/core/inspector/InspectorDatabaseAgent.cpp File Source/core/inspector/InspectorDatabaseAgent.cpp (right): https://codereview.chromium.org/103473002/diff/1/Source/core/inspector/InspectorDatabaseAgent.cpp#newcode301 Source/core/inspector/InspectorDatabaseAgent.cpp:301: OwnPtr<SQLVoidCallback> successCallback(TransactionSuccessCallback::create()); On 2013/12/04 01:55:50, abarth wrote: > Do ...
7 years ago (2013-12-04 02:08:26 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/adamk@chromium.org/103473002/10001
7 years ago (2013-12-04 02:08:46 UTC) #4
commit-bot: I haz the power
Retried try job too often on linux_blink for step(s) blink_platform_unittests, webkit_lint, webkit_python_tests, webkit_tests, webkit_unit_tests, wtf_unittests ...
7 years ago (2013-12-04 02:52:34 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/adamk@chromium.org/103473002/30001
7 years ago (2013-12-04 20:03:01 UTC) #6
adamk
7 years ago (2013-12-04 22:05:34 UTC) #7
Message was sent while issue was closed.
Committed patchset #3 manually as r163191 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698