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

Side by Side Diff: third_party/WebKit/Source/modules/webdatabase/SQLTransaction.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, 2008, 2013 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 2013 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 SQLTransaction::SQLTransaction(Database* db, SQLTransactionCallback* callback, 58 SQLTransaction::SQLTransaction(Database* db, SQLTransactionCallback* callback,
59 VoidCallback* successCallback, SQLTransactionErrorCallback* errorCallback, 59 VoidCallback* successCallback, SQLTransactionErrorCallback* errorCallback,
60 bool readOnly) 60 bool readOnly)
61 : m_database(db) 61 : m_database(db)
62 , m_callback(callback) 62 , m_callback(callback)
63 , m_successCallback(successCallback) 63 , m_successCallback(successCallback)
64 , m_errorCallback(errorCallback) 64 , m_errorCallback(errorCallback)
65 , m_executeSqlAllowed(false) 65 , m_executeSqlAllowed(false)
66 , m_readOnly(readOnly) 66 , m_readOnly(readOnly)
67 { 67 {
68 ASSERT(isMainThread());
68 ASSERT(m_database); 69 ASSERT(m_database);
69 m_asyncOperationId = InspectorInstrumentation::traceAsyncOperationStarting(d b->executionContext(), "SQLTransaction"); 70 m_asyncOperationId = InspectorInstrumentation::traceAsyncOperationStarting(d b->executionContext(), "SQLTransaction");
70 } 71 }
71 72
72 SQLTransaction::~SQLTransaction() 73 SQLTransaction::~SQLTransaction()
73 { 74 {
74 } 75 }
75 76
76 DEFINE_TRACE(SQLTransaction) 77 DEFINE_TRACE(SQLTransaction)
77 { 78 {
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 m_successCallback.clear(); 334 m_successCallback.clear();
334 m_errorCallback.clear(); 335 m_errorCallback.clear();
335 } 336 }
336 337
337 SQLTransactionErrorCallback* SQLTransaction::releaseErrorCallback() 338 SQLTransactionErrorCallback* SQLTransaction::releaseErrorCallback()
338 { 339 {
339 return m_errorCallback.release(); 340 return m_errorCallback.release();
340 } 341 }
341 342
342 } // namespace blink 343 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698