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

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

Issue 1909813002: 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());
67 ASSERT(m_database); 68 ASSERT(m_database);
68 InspectorInstrumentation::asyncTaskScheduled(db->getExecutionContext(), "SQL Transaction", this, true); 69 InspectorInstrumentation::asyncTaskScheduled(db->getExecutionContext(), "SQL Transaction", this, true);
69 } 70 }
70 71
71 SQLTransaction::~SQLTransaction() 72 SQLTransaction::~SQLTransaction()
72 { 73 {
73 } 74 }
74 75
75 DEFINE_TRACE(SQLTransaction) 76 DEFINE_TRACE(SQLTransaction)
76 { 77 {
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 m_successCallback.clear(); 332 m_successCallback.clear();
332 m_errorCallback.clear(); 333 m_errorCallback.clear();
333 } 334 }
334 335
335 SQLTransactionErrorCallback* SQLTransaction::releaseErrorCallback() 336 SQLTransactionErrorCallback* SQLTransaction::releaseErrorCallback()
336 { 337 {
337 return m_errorCallback.release(); 338 return m_errorCallback.release();
338 } 339 }
339 340
340 } // namespace blink 341 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698