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

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

Issue 402433005: Oilpan: Remove support for tracing off-heap HashSets. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix deadWrapper number in heap tests. Created 6 years, 5 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/DatabaseThread.cpp ('k') | Source/platform/heap/HeapTest.cpp » ('j') | 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) 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 void shutdown(); 54 void shutdown();
55 private: 55 private:
56 typedef Deque<RefPtrWillBeMember<SQLTransactionBackend> > TransactionsQueue; 56 typedef Deque<RefPtrWillBeMember<SQLTransactionBackend> > TransactionsQueue;
57 struct CoordinationInfo { 57 struct CoordinationInfo {
58 TransactionsQueue pendingTransactions; 58 TransactionsQueue pendingTransactions;
59 WillBeHeapHashSet<RefPtrWillBeMember<SQLTransactionBackend> > activeRead Transactions; 59 WillBeHeapHashSet<RefPtrWillBeMember<SQLTransactionBackend> > activeRead Transactions;
60 RefPtrWillBeMember<SQLTransactionBackend> activeWriteTransaction; 60 RefPtrWillBeMember<SQLTransactionBackend> activeWriteTransaction;
61 61
62 void trace(Visitor* visitor) 62 void trace(Visitor* visitor)
63 { 63 {
64 #if ENABLE(OILPAN)
64 visitor->trace(pendingTransactions); 65 visitor->trace(pendingTransactions);
65 visitor->trace(activeReadTransactions); 66 visitor->trace(activeReadTransactions);
66 visitor->trace(activeWriteTransaction); 67 visitor->trace(activeWriteTransaction);
68 #endif
67 } 69 }
68 ALLOW_ONLY_INLINE_ALLOCATION(); 70 ALLOW_ONLY_INLINE_ALLOCATION();
69 }; 71 };
70 // Maps database names to information about pending transactions 72 // Maps database names to information about pending transactions
71 typedef WillBeHeapHashMap<String, CoordinationInfo> CoordinationInfoHeapMap; 73 typedef WillBeHeapHashMap<String, CoordinationInfo> CoordinationInfoHeapMap;
72 CoordinationInfoHeapMap m_coordinationInfoMap; 74 CoordinationInfoHeapMap m_coordinationInfoMap;
73 bool m_isShuttingDown; 75 bool m_isShuttingDown;
74 76
75 void processPendingTransactions(CoordinationInfo&); 77 void processPendingTransactions(CoordinationInfo&);
76 }; 78 };
77 79
78 } // namespace WebCore 80 } // namespace WebCore
79 81
80 #endif // SQLTransactionCoordinator_h 82 #endif // SQLTransactionCoordinator_h
OLDNEW
« no previous file with comments | « Source/modules/webdatabase/DatabaseThread.cpp ('k') | Source/platform/heap/HeapTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698