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

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

Issue 1479923002: Enumerate the return value of dispatchEvent so it is clear. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_passive_uma_add
Patch Set: Fix typo Created 4 years, 10 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) 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 // EventTarget 97 // EventTarget
98 const AtomicString& interfaceName() const override; 98 const AtomicString& interfaceName() const override;
99 ExecutionContext* executionContext() const override; 99 ExecutionContext* executionContext() const override;
100 100
101 // ActiveDOMObject 101 // ActiveDOMObject
102 bool hasPendingActivity() const override; 102 bool hasPendingActivity() const override;
103 void stop() override; 103 void stop() override;
104 104
105 protected: 105 protected:
106 // EventTarget 106 // EventTarget
107 bool dispatchEventInternal(PassRefPtrWillBeRawPtr<Event>) override; 107 DispatchEventResult dispatchEventInternal(PassRefPtrWillBeRawPtr<Event>) ove rride;
108 108
109 private: 109 private:
110 IDBTransaction(ScriptState*, int64_t, const HashSet<String>&, WebIDBTransact ionMode, IDBDatabase*, IDBOpenDBRequest*, const IDBDatabaseMetadata&); 110 IDBTransaction(ScriptState*, int64_t, const HashSet<String>&, WebIDBTransact ionMode, IDBDatabase*, IDBOpenDBRequest*, const IDBDatabaseMetadata&);
111 111
112 void enqueueEvent(PassRefPtrWillBeRawPtr<Event>); 112 void enqueueEvent(PassRefPtrWillBeRawPtr<Event>);
113 113
114 enum State { 114 enum State {
115 Inactive, // Created or started, but not in an event callback 115 Inactive, // Created or started, but not in an event callback
116 Active, // Created or started, in creation scope or an event callback 116 Active, // Created or started, in creation scope or an event callback
117 Finishing, // In the process of aborting or completing. 117 Finishing, // In the process of aborting or completing.
(...skipping 16 matching lines...) Expand all
134 IDBObjectStoreMap m_objectStoreMap; 134 IDBObjectStoreMap m_objectStoreMap;
135 135
136 HeapHashSet<Member<IDBObjectStore>> m_deletedObjectStores; 136 HeapHashSet<Member<IDBObjectStore>> m_deletedObjectStores;
137 HeapHashMap<Member<IDBObjectStore>, IDBObjectStoreMetadata> m_objectStoreCle anupMap; 137 HeapHashMap<Member<IDBObjectStore>, IDBObjectStoreMetadata> m_objectStoreCle anupMap;
138 IDBDatabaseMetadata m_previousMetadata; 138 IDBDatabaseMetadata m_previousMetadata;
139 }; 139 };
140 140
141 } // namespace blink 141 } // namespace blink
142 142
143 #endif // IDBTransaction_h 143 #endif // IDBTransaction_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698