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

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

Issue 864533002: Fix template angle bracket syntax in modules (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 // state (indicated by m_nextState), and then transits itself to the Idle state 224 // state (indicated by m_nextState), and then transits itself to the Idle state
225 // to wait for further action. 225 // to wait for further action.
226 226
227 227
228 // The Life-Cycle of a SQLTransaction i.e. Who's keeping the SQLTransaction aliv e? 228 // The Life-Cycle of a SQLTransaction i.e. Who's keeping the SQLTransaction aliv e?
229 // ============================================================================= = 229 // ============================================================================= =
230 // The RefPtr chain goes something like this: 230 // The RefPtr chain goes something like this:
231 // 231 //
232 // At birth (in Database::runTransaction()): 232 // At birth (in Database::runTransaction()):
233 // ==================================================== 233 // ====================================================
234 // Database // HeapDeque<Member<SQLTransactionBack end> > m_transactionQueue points to ... 234 // Database // HeapDeque<Member<SQLTransactionBack end>> m_transactionQueue points to ...
235 // --> SQLTransactionBackend // Member<SQLTransaction> m_frontend p oints to ... 235 // --> SQLTransactionBackend // Member<SQLTransaction> m_frontend p oints to ...
236 // --> SQLTransaction // Member<SQLTransactionBackend> m_bac kend points to ... 236 // --> SQLTransaction // Member<SQLTransactionBackend> m_bac kend points to ...
237 // --> SQLTransactionBackend // which is a circular reference. 237 // --> SQLTransactionBackend // which is a circular reference.
238 // 238 //
239 // Note: there's a circular reference between the SQLTransaction front-end a nd 239 // Note: there's a circular reference between the SQLTransaction front-end a nd
240 // back-end. This circular reference is established in the constructor of th e 240 // back-end. This circular reference is established in the constructor of th e
241 // SQLTransactionBackend. The circular reference will be broken by calling 241 // SQLTransactionBackend. The circular reference will be broken by calling
242 // doCleanup() to nullify m_frontend. This is done at the end of the transac tion's 242 // doCleanup() to nullify m_frontend. This is done at the end of the transac tion's
243 // clean up state (i.e. when the transaction should no longer be in use ther eafter), 243 // clean up state (i.e. when the transaction should no longer be in use ther eafter),
244 // or if the database was interrupted. See comments on "What happens if a tr ansaction 244 // or if the database was interrupted. See comments on "What happens if a tr ansaction
(...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after
819 } 819 }
820 820
821 SQLTransactionState SQLTransactionBackend::sendToFrontendState() 821 SQLTransactionState SQLTransactionBackend::sendToFrontendState()
822 { 822 {
823 ASSERT(m_nextState != SQLTransactionState::Idle); 823 ASSERT(m_nextState != SQLTransactionState::Idle);
824 m_frontend->requestTransitToState(m_nextState); 824 m_frontend->requestTransitToState(m_nextState);
825 return SQLTransactionState::Idle; 825 return SQLTransactionState::Idle;
826 } 826 }
827 827
828 } // namespace blink 828 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698