Chromium Code Reviews

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

Issue 409113003: Revert of [oilpan]: Remove support for tracing off-heap hashmaps. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * Copyright (C) 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2013 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 33 matching lines...)
44 return database->stringIdentifier(); 44 return database->stringIdentifier();
45 } 45 }
46 46
47 SQLTransactionCoordinator::SQLTransactionCoordinator() 47 SQLTransactionCoordinator::SQLTransactionCoordinator()
48 : m_isShuttingDown(false) 48 : m_isShuttingDown(false)
49 { 49 {
50 } 50 }
51 51
52 void SQLTransactionCoordinator::trace(Visitor* visitor) 52 void SQLTransactionCoordinator::trace(Visitor* visitor)
53 { 53 {
54 #if ENABLE(OILPAN)
55 visitor->trace(m_coordinationInfoMap); 54 visitor->trace(m_coordinationInfoMap);
56 #endif
57 } 55 }
58 56
59 void SQLTransactionCoordinator::processPendingTransactions(CoordinationInfo& inf o) 57 void SQLTransactionCoordinator::processPendingTransactions(CoordinationInfo& inf o)
60 { 58 {
61 if (info.activeWriteTransaction || info.pendingTransactions.isEmpty()) 59 if (info.activeWriteTransaction || info.pendingTransactions.isEmpty())
62 return; 60 return;
63 61
64 RefPtrWillBeRawPtr<SQLTransactionBackend> firstPendingTransaction = info.pen dingTransactions.first(); 62 RefPtrWillBeRawPtr<SQLTransactionBackend> firstPendingTransaction = info.pen dingTransactions.first();
65 if (firstPendingTransaction->isReadOnly()) { 63 if (firstPendingTransaction->isReadOnly()) {
66 do { 64 do {
(...skipping 80 matching lines...)
147 RefPtrWillBeRawPtr<SQLTransactionBackend> transaction = info.pending Transactions.first(); 145 RefPtrWillBeRawPtr<SQLTransactionBackend> transaction = info.pending Transactions.first();
148 transaction->notifyDatabaseThreadIsShuttingDown(); 146 transaction->notifyDatabaseThreadIsShuttingDown();
149 } 147 }
150 } 148 }
151 149
152 // Clean up all pending transactions for all databases 150 // Clean up all pending transactions for all databases
153 m_coordinationInfoMap.clear(); 151 m_coordinationInfoMap.clear();
154 } 152 }
155 153
156 } // namespace blink 154 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/indexeddb/IDBPendingTransactionMonitor.cpp ('k') | Source/platform/Supplementable.h » ('j') | no next file with comments »

Powered by Google App Engine