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

Unified Diff: Source/modules/indexeddb/IDBDatabase.h

Issue 1241613004: Rework dispatchEvent so it is consistent for isTrusted support. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Work around MSVC optimization bug Created 5 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 side-by-side diff with in-line comments
Download patch
Index: Source/modules/indexeddb/IDBDatabase.h
diff --git a/Source/modules/indexeddb/IDBDatabase.h b/Source/modules/indexeddb/IDBDatabase.h
index 31f5d2de4618ef5e556273734bddc0f6b27c8625..17da59a4e6166ce09dff1485dad9ffd4e6522e18 100644
--- a/Source/modules/indexeddb/IDBDatabase.h
+++ b/Source/modules/indexeddb/IDBDatabase.h
@@ -102,9 +102,6 @@ public:
const IDBDatabaseMetadata& metadata() const { return m_metadata; }
void enqueueEvent(PassRefPtrWillBeRawPtr<Event>);
- using EventTarget::dispatchEvent;
- bool dispatchEvent(PassRefPtrWillBeRawPtr<Event>) override;
-
int64_t findObjectStoreId(const String& name) const;
bool containsObjectStore(const String& name) const
{
@@ -133,6 +130,10 @@ public:
static const char databaseClosedErrorMessage[];
static const char notValidMaxCountErrorMessage[];
+protected:
+ // EventTarget
+ bool dispatchEventInternal(PassRefPtrWillBeRawPtr<Event>) override;
+
private:
IDBDatabase(ExecutionContext*, PassOwnPtr<WebIDBDatabase>, IDBDatabaseCallbacks*);

Powered by Google App Engine
This is Rietveld 408576698