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

Side by Side Diff: Source/modules/indexeddb/IDBTransaction.h

Issue 216523002: Oilpan: Replace most of RefPtrs for Event objects with oilpan's transition types (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); 91 DEFINE_ATTRIBUTE_EVENT_LISTENER(error);
92 92
93 void onAbort(PassRefPtrWillBeRawPtr<DOMError>); 93 void onAbort(PassRefPtrWillBeRawPtr<DOMError>);
94 void onComplete(); 94 void onComplete();
95 95
96 // EventTarget 96 // EventTarget
97 virtual const AtomicString& interfaceName() const OVERRIDE; 97 virtual const AtomicString& interfaceName() const OVERRIDE;
98 virtual ExecutionContext* executionContext() const OVERRIDE; 98 virtual ExecutionContext* executionContext() const OVERRIDE;
99 99
100 using EventTarget::dispatchEvent; 100 using EventTarget::dispatchEvent;
101 virtual bool dispatchEvent(PassRefPtr<Event>) OVERRIDE; 101 virtual bool dispatchEvent(PassRefPtrWillBeRawPtr<Event>) OVERRIDE;
102 102
103 // ActiveDOMObject 103 // ActiveDOMObject
104 virtual bool hasPendingActivity() const OVERRIDE; 104 virtual bool hasPendingActivity() const OVERRIDE;
105 virtual void stop() OVERRIDE; 105 virtual void stop() OVERRIDE;
106 106
107 private: 107 private:
108 IDBTransaction(ExecutionContext*, int64_t, const Vector<String>&, blink::Web IDBDatabase::TransactionMode, IDBDatabase*, IDBOpenDBRequest*, const IDBDatabase Metadata&); 108 IDBTransaction(ExecutionContext*, int64_t, const Vector<String>&, blink::Web IDBDatabase::TransactionMode, IDBDatabase*, IDBOpenDBRequest*, const IDBDatabase Metadata&);
109 109
110 void enqueueEvent(PassRefPtr<Event>); 110 void enqueueEvent(PassRefPtrWillBeRawPtr<Event>);
111 111
112 enum State { 112 enum State {
113 Inactive, // Created or started, but not in an event callback 113 Inactive, // Created or started, but not in an event callback
114 Active, // Created or started, in creation scope or an event callback 114 Active, // Created or started, in creation scope or an event callback
115 Finishing, // In the process of aborting or completing. 115 Finishing, // In the process of aborting or completing.
116 Finished, // No more events will fire and no new requests may be filed. 116 Finished, // No more events will fire and no new requests may be filed.
117 }; 117 };
118 118
119 int64_t m_id; 119 int64_t m_id;
120 RefPtr<IDBDatabase> m_database; 120 RefPtr<IDBDatabase> m_database;
(...skipping 14 matching lines...) Expand all
135 IDBObjectStoreSet m_deletedObjectStores; 135 IDBObjectStoreSet m_deletedObjectStores;
136 136
137 typedef HashMap<RefPtr<IDBObjectStore>, IDBObjectStoreMetadata> IDBObjectSto reMetadataMap; 137 typedef HashMap<RefPtr<IDBObjectStore>, IDBObjectStoreMetadata> IDBObjectSto reMetadataMap;
138 IDBObjectStoreMetadataMap m_objectStoreCleanupMap; 138 IDBObjectStoreMetadataMap m_objectStoreCleanupMap;
139 IDBDatabaseMetadata m_previousMetadata; 139 IDBDatabaseMetadata m_previousMetadata;
140 }; 140 };
141 141
142 } // namespace WebCore 142 } // namespace WebCore
143 143
144 #endif // IDBTransaction_h 144 #endif // IDBTransaction_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698