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

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

Issue 2037233002: Revert of Enable per thread heap for database thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 SQLTransaction::SQLTransaction(Database* db, SQLTransactionCallback* callback, 57 SQLTransaction::SQLTransaction(Database* db, SQLTransactionCallback* callback,
58 VoidCallback* successCallback, SQLTransactionErrorCallback* errorCallback, 58 VoidCallback* successCallback, SQLTransactionErrorCallback* errorCallback,
59 bool readOnly) 59 bool readOnly)
60 : m_database(db) 60 : m_database(db)
61 , m_callback(callback) 61 , m_callback(callback)
62 , m_successCallback(successCallback) 62 , m_successCallback(successCallback)
63 , m_errorCallback(errorCallback) 63 , m_errorCallback(errorCallback)
64 , m_executeSqlAllowed(false) 64 , m_executeSqlAllowed(false)
65 , m_readOnly(readOnly) 65 , m_readOnly(readOnly)
66 { 66 {
67 DCHECK(isMainThread());
68 ASSERT(m_database); 67 ASSERT(m_database);
69 InspectorInstrumentation::asyncTaskScheduled(db->getExecutionContext(), "SQL Transaction", this, true); 68 InspectorInstrumentation::asyncTaskScheduled(db->getExecutionContext(), "SQL Transaction", this, true);
70 } 69 }
71 70
72 SQLTransaction::~SQLTransaction() 71 SQLTransaction::~SQLTransaction()
73 { 72 {
74 } 73 }
75 74
76 DEFINE_TRACE(SQLTransaction) 75 DEFINE_TRACE(SQLTransaction)
77 { 76 {
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 m_successCallback.clear(); 331 m_successCallback.clear();
333 m_errorCallback.clear(); 332 m_errorCallback.clear();
334 } 333 }
335 334
336 SQLTransactionErrorCallback* SQLTransaction::releaseErrorCallback() 335 SQLTransactionErrorCallback* SQLTransaction::releaseErrorCallback()
337 { 336 {
338 return m_errorCallback.release(); 337 return m_errorCallback.release();
339 } 338 }
340 339
341 } // namespace blink 340 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698