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

Side by Side Diff: Source/modules/webdatabase/SQLTransactionBackend.cpp

Issue 311273005: Oilpan: Prepare to move AbstractSQLStatement, SQLStatement, and SQLCallbackWrapper<T> to Oilpan hea… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/modules/webdatabase/SQLTransactionBackend.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 508 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 // Redirect to the end state to abort, clean up, and end the transaction. 519 // Redirect to the end state to abort, clean up, and end the transaction.
520 doCleanup(); 520 doCleanup();
521 } 521 }
522 522
523 void SQLTransactionBackend::performNextStep() 523 void SQLTransactionBackend::performNextStep()
524 { 524 {
525 computeNextStateAndCleanupIfNeeded(); 525 computeNextStateAndCleanupIfNeeded();
526 runStateMachine(); 526 runStateMachine();
527 } 527 }
528 528
529 void SQLTransactionBackend::executeSQL(PassOwnPtr<AbstractSQLStatement> statemen t, 529 void SQLTransactionBackend::executeSQL(PassOwnPtrWillBeRawPtr<AbstractSQLStateme nt> statement,
530 const String& sqlStatement, const Vector<SQLValue>& arguments, int permissio ns) 530 const String& sqlStatement, const Vector<SQLValue>& arguments, int permissio ns)
531 { 531 {
532 enqueueStatementBackend(SQLStatementBackend::create(statement, sqlStatement, arguments, permissions)); 532 enqueueStatementBackend(SQLStatementBackend::create(statement, sqlStatement, arguments, permissions));
533 } 533 }
534 534
535 void SQLTransactionBackend::notifyDatabaseThreadIsShuttingDown() 535 void SQLTransactionBackend::notifyDatabaseThreadIsShuttingDown()
536 { 536 {
537 ASSERT(database()->databaseContext()->databaseThread()->isDatabaseThread()); 537 ASSERT(database()->databaseContext()->databaseThread()->isDatabaseThread());
538 538
539 // If the transaction is in progress, we should roll it back here, since thi s 539 // If the transaction is in progress, we should roll it back here, since thi s
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
827 } 827 }
828 828
829 SQLTransactionState SQLTransactionBackend::sendToFrontendState() 829 SQLTransactionState SQLTransactionBackend::sendToFrontendState()
830 { 830 {
831 ASSERT(m_nextState != SQLTransactionState::Idle); 831 ASSERT(m_nextState != SQLTransactionState::Idle);
832 m_frontend->requestTransitToState(m_nextState); 832 m_frontend->requestTransitToState(m_nextState);
833 return SQLTransactionState::Idle; 833 return SQLTransactionState::Idle;
834 } 834 }
835 835
836 } // namespace WebCore 836 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/modules/webdatabase/SQLTransactionBackend.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698