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

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

Issue 2265873003: binding: Moves hasPendingActivity from ActiveScriptWrappable to ScriptWrappable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed review comments. Created 4 years, 4 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 DEFINE_ATTRIBUTE_EVENT_LISTENER(abort); 84 DEFINE_ATTRIBUTE_EVENT_LISTENER(abort);
85 DEFINE_ATTRIBUTE_EVENT_LISTENER(close); 85 DEFINE_ATTRIBUTE_EVENT_LISTENER(close);
86 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); 86 DEFINE_ATTRIBUTE_EVENT_LISTENER(error);
87 DEFINE_ATTRIBUTE_EVENT_LISTENER(versionchange); 87 DEFINE_ATTRIBUTE_EVENT_LISTENER(versionchange);
88 88
89 // IDBDatabaseCallbacks 89 // IDBDatabaseCallbacks
90 void onVersionChange(int64_t oldVersion, int64_t newVersion); 90 void onVersionChange(int64_t oldVersion, int64_t newVersion);
91 void onAbort(int64_t, DOMException*); 91 void onAbort(int64_t, DOMException*);
92 void onComplete(int64_t); 92 void onComplete(int64_t);
93 93
94 // ActiveScriptWrappable 94 // ScriptWrappable
95 bool hasPendingActivity() const final; 95 bool hasPendingActivity() const final;
96 96
97 // ActiveDOMObject 97 // ActiveDOMObject
98 void stop() override; 98 void stop() override;
99 99
100 // EventTarget 100 // EventTarget
101 const AtomicString& interfaceName() const override; 101 const AtomicString& interfaceName() const override;
102 ExecutionContext* getExecutionContext() const override; 102 ExecutionContext* getExecutionContext() const override;
103 103
104 bool isClosePending() const { return m_closePending; } 104 bool isClosePending() const { return m_closePending; }
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 // Keep track of the versionchange events waiting to be fired on this 156 // Keep track of the versionchange events waiting to be fired on this
157 // database so that we can cancel them if the database closes. 157 // database so that we can cancel them if the database closes.
158 HeapVector<Member<Event>> m_enqueuedEvents; 158 HeapVector<Member<Event>> m_enqueuedEvents;
159 159
160 Member<IDBDatabaseCallbacks> m_databaseCallbacks; 160 Member<IDBDatabaseCallbacks> m_databaseCallbacks;
161 }; 161 };
162 162
163 } // namespace blink 163 } // namespace blink
164 164
165 #endif // IDBDatabase_h 165 #endif // IDBDatabase_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698