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

Side by Side Diff: third_party/WebKit/Source/modules/webdatabase/SQLResultSet.cpp

Issue 1477023003: Refactor the Heap into ThreadHeap to prepare for per thread heaps Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 24 matching lines...) Expand all
35 35
36 namespace blink { 36 namespace blink {
37 37
38 SQLResultSet::SQLResultSet() 38 SQLResultSet::SQLResultSet()
39 : m_rows(SQLResultSetRowList::create()) 39 : m_rows(SQLResultSetRowList::create())
40 , m_insertId(0) 40 , m_insertId(0)
41 , m_rowsAffected(0) 41 , m_rowsAffected(0)
42 , m_insertIdSet(false) 42 , m_insertIdSet(false)
43 , m_isValid(false) 43 , m_isValid(false)
44 { 44 {
45 ASSERT(isMainThread());
45 } 46 }
46 47
47 DEFINE_TRACE(SQLResultSet) 48 DEFINE_TRACE(SQLResultSet)
48 { 49 {
49 visitor->trace(m_rows); 50 visitor->trace(m_rows);
50 } 51 }
51 52
52 int64_t SQLResultSet::insertId(ExceptionState& exceptionState) const 53 int64_t SQLResultSet::insertId(ExceptionState& exceptionState) const
53 { 54 {
54 // 4.11.4 - Return the id of the last row inserted as a result of the query 55 // 4.11.4 - Return the id of the last row inserted as a result of the query
(...skipping 23 matching lines...) Expand all
78 m_insertIdSet = true; 79 m_insertIdSet = true;
79 } 80 }
80 81
81 void SQLResultSet::setRowsAffected(int count) 82 void SQLResultSet::setRowsAffected(int count)
82 { 83 {
83 m_rowsAffected = count; 84 m_rowsAffected = count;
84 m_isValid = true; 85 m_isValid = true;
85 } 86 }
86 87
87 } 88 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698