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

Side by Side Diff: third_party/WebKit/Source/modules/webdatabase/SQLTransactionBackend.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 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());
360 ASSERT(m_database); 359 ASSERT(m_database);
361 m_frontend->setBackend(this); 360 m_frontend->setBackend(this);
362 m_requestedState = SQLTransactionState::AcquireLock; 361 m_requestedState = SQLTransactionState::AcquireLock;
363 } 362 }
364 363
365 SQLTransactionBackend::~SQLTransactionBackend() 364 SQLTransactionBackend::~SQLTransactionBackend()
366 { 365 {
367 ASSERT(!m_sqliteTransaction); 366 ASSERT(!m_sqliteTransaction);
368 } 367 }
369 368
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
819 } 818 }
820 819
821 SQLTransactionState SQLTransactionBackend::sendToFrontendState() 820 SQLTransactionState SQLTransactionBackend::sendToFrontendState()
822 { 821 {
823 ASSERT(m_nextState != SQLTransactionState::Idle); 822 ASSERT(m_nextState != SQLTransactionState::Idle);
824 m_frontend->requestTransitToState(m_nextState); 823 m_frontend->requestTransitToState(m_nextState);
825 return SQLTransactionState::Idle; 824 return SQLTransactionState::Idle;
826 } 825 }
827 826
828 } // namespace blink 827 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698