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

Issue 207453006: Oilpan: Prepare to move SQLResultSet and SQLResultSetRowList to oilpan heap. (Closed)

Created:
6 years, 9 months ago by tkent
Modified:
6 years, 9 months ago
Reviewers:
oilpan-reviews, haraken
CC:
blink-reviews
Visibility:
Public.

Description

Oilpan: Prepare to move SQLResultSet and SQLResultSetRowList to oilpan heap. Without this CL, a SQLResultSet object in SQLStatementBackend can be constructed in a database thread, moved to main/worker thread, and referred by JavaScript object in the main/worker thread. We can't move object ownership over threads in Oilpan. So, SQLStatementBackend should construct a SQLResultSet object in the SQLStatementBackend constructor, which runs in main/worker thread. SQLResultSet should have a validity flag to represent nullness in the code without this CL. Note: * Change the return type of AbstractSQLStatementBackend::sqlResultSet from PassRefPtr<SQLResultSet> to SQLResultSet* because the function doesn't release the ownership of the SQLResultSet object. * Change the order of data members of SQLResultSet to pack better. BUG=347902 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=169929

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove setValid #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -30 lines) Patch
M Source/modules/webdatabase/AbstractSQLStatementBackend.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/webdatabase/SQLResultSet.h View 1 2 chunks +7 lines, -4 lines 0 comments Download
M Source/modules/webdatabase/SQLResultSet.cpp View 1 2 chunks +9 lines, -1 line 0 comments Download
M Source/modules/webdatabase/SQLResultSet.idl View 1 chunk +2 lines, -1 line 0 comments Download
M Source/modules/webdatabase/SQLResultSetRowList.h View 1 chunk +4 lines, -2 lines 0 comments Download
M Source/modules/webdatabase/SQLResultSetRowList.idl View 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/webdatabase/SQLStatement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/webdatabase/SQLStatementBackend.h View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/modules/webdatabase/SQLStatementBackend.cpp View 1 5 chunks +11 lines, -12 lines 0 comments Download
M Source/modules/webdatabase/SQLStatementSync.h View 2 chunks +2 lines, -1 line 0 comments Download
M Source/modules/webdatabase/SQLStatementSync.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M Source/modules/webdatabase/SQLTransactionBackendSync.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/webdatabase/SQLTransactionBackendSync.cpp View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
tkent
Please review this
6 years, 9 months ago (2014-03-25 07:45:08 UTC) #1
haraken
LGTM > a SQLResultSet object in SQLStatementBackend can be constructed > in a database thread, ...
6 years, 9 months ago (2014-03-25 07:55:30 UTC) #2
tkent
> > a SQLResultSet object in SQLStatementBackend can be constructed > > in a database ...
6 years, 9 months ago (2014-03-25 08:34:06 UTC) #3
tkent
The CQ bit was checked by tkent@chromium.org
6 years, 9 months ago (2014-03-25 08:40:05 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tkent@chromium.org/207453006/10001
6 years, 9 months ago (2014-03-25 08:40:08 UTC) #5
tkent
https://codereview.chromium.org/207453006/diff/1/Source/modules/webdatabase/SQLStatementBackend.cpp File Source/modules/webdatabase/SQLStatementBackend.cpp (right): https://codereview.chromium.org/207453006/diff/1/Source/modules/webdatabase/SQLStatementBackend.cpp#newcode210 Source/modules/webdatabase/SQLStatementBackend.cpp:210: m_resultSet->setValid(); On 2014/03/25 07:55:30, haraken wrote: > > In ...
6 years, 9 months ago (2014-03-25 08:40:32 UTC) #6
commit-bot: I haz the power
6 years, 9 months ago (2014-03-25 09:41:34 UTC) #7
Message was sent while issue was closed.
Change committed as 169929

Powered by Google App Engine
This is Rietveld 408576698