|
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
Total comments: 2
|
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
|
Total messages: 7 (0 generated)
|