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

Unified Diff: Source/modules/webdatabase/SQLResultSet.h

Issue 207453006: Oilpan: Prepare to move SQLResultSet and SQLResultSetRowList to oilpan heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove setValid Created 6 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
Index: Source/modules/webdatabase/SQLResultSet.h
diff --git a/Source/modules/webdatabase/SQLResultSet.h b/Source/modules/webdatabase/SQLResultSet.h
index 3c5a9747454e7787780613ee358c9bbc5adbdffb..79b9c49c177adee9871fd0bb34ffa4f49180adf4 100644
--- a/Source/modules/webdatabase/SQLResultSet.h
+++ b/Source/modules/webdatabase/SQLResultSet.h
@@ -38,9 +38,10 @@ namespace WebCore {
class ExceptionState;
-class SQLResultSet : public ThreadSafeRefCounted<SQLResultSet>, public ScriptWrappable {
+class SQLResultSet : public ThreadSafeRefCountedWillBeGarbageCollectedFinalized<SQLResultSet>, public ScriptWrappable {
public:
- static PassRefPtr<SQLResultSet> create() { return adoptRef(new SQLResultSet); }
+ static PassRefPtrWillBeRawPtr<SQLResultSet> create() { return adoptRefWillBeNoop(new SQLResultSet); }
+ void trace(Visitor*);
SQLResultSetRowList* rows() const;
@@ -50,14 +51,16 @@ public:
// For internal (non-JS) use
void setInsertId(int64_t);
void setRowsAffected(int);
+ bool isValid() { return m_isValid; }
private:
SQLResultSet();
- RefPtr<SQLResultSetRowList> m_rows;
+ RefPtrWillBeMember<SQLResultSetRowList> m_rows;
int64_t m_insertId;
- bool m_insertIdSet;
int m_rowsAffected;
+ bool m_insertIdSet;
+ bool m_isValid;
};
} // namespace WebCore
« no previous file with comments | « Source/modules/webdatabase/AbstractSQLStatementBackend.h ('k') | Source/modules/webdatabase/SQLResultSet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698