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

Side by Side Diff: third_party/WebKit/Source/modules/webdatabase/SQLTransactionBackend.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 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 , m_wrapper(wrapper) 349 , m_wrapper(wrapper)
350 , m_hasCallback(m_frontend->hasCallback()) 350 , m_hasCallback(m_frontend->hasCallback())
351 , m_hasSuccessCallback(m_frontend->hasSuccessCallback()) 351 , m_hasSuccessCallback(m_frontend->hasSuccessCallback())
352 , m_hasErrorCallback(m_frontend->hasErrorCallback()) 352 , m_hasErrorCallback(m_frontend->hasErrorCallback())
353 , m_shouldRetryCurrentStatement(false) 353 , m_shouldRetryCurrentStatement(false)
354 , m_modifiedDatabase(false) 354 , m_modifiedDatabase(false)
355 , m_lockAcquired(false) 355 , m_lockAcquired(false)
356 , m_readOnly(readOnly) 356 , m_readOnly(readOnly)
357 , m_hasVersionMismatch(false) 357 , m_hasVersionMismatch(false)
358 { 358 {
359 DCHECK(isMainThread());
359 ASSERT(m_database); 360 ASSERT(m_database);
360 m_frontend->setBackend(this); 361 m_frontend->setBackend(this);
361 m_requestedState = SQLTransactionState::AcquireLock; 362 m_requestedState = SQLTransactionState::AcquireLock;
362 } 363 }
363 364
364 SQLTransactionBackend::~SQLTransactionBackend() 365 SQLTransactionBackend::~SQLTransactionBackend()
365 { 366 {
366 ASSERT(!m_sqliteTransaction); 367 ASSERT(!m_sqliteTransaction);
367 } 368 }
368 369
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
818 } 819 }
819 820
820 SQLTransactionState SQLTransactionBackend::sendToFrontendState() 821 SQLTransactionState SQLTransactionBackend::sendToFrontendState()
821 { 822 {
822 ASSERT(m_nextState != SQLTransactionState::Idle); 823 ASSERT(m_nextState != SQLTransactionState::Idle);
823 m_frontend->requestTransitToState(m_nextState); 824 m_frontend->requestTransitToState(m_nextState);
824 return SQLTransactionState::Idle; 825 return SQLTransactionState::Idle;
825 } 826 }
826 827
827 } // namespace blink 828 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698