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

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

Powered by Google App Engine
This is Rietveld 408576698