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

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: 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..bc1b60fbdf9efee22e17770acc188c35893f781e 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,17 @@ public:
// For internal (non-JS) use
void setInsertId(int64_t);
void setRowsAffected(int);
+ void setValid() { m_isValid = true; }
+ 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

Powered by Google App Engine
This is Rietveld 408576698