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

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

Issue 18778002: Inherit EventTarget interface instead of duplicating its code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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
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 30 matching lines...) Expand all
41 #include "wtf/RefCounted.h" 41 #include "wtf/RefCounted.h"
42 #include "wtf/RefPtr.h" 42 #include "wtf/RefPtr.h"
43 43
44 namespace WebCore { 44 namespace WebCore {
45 45
46 class DOMError; 46 class DOMError;
47 class ScriptExecutionContext; 47 class ScriptExecutionContext;
48 48
49 typedef int ExceptionCode; 49 typedef int ExceptionCode;
50 50
51 class IDBDatabase : public RefCounted<IDBDatabase>, public ScriptWrappable, publ ic EventTarget, public ActiveDOMObject { 51 class IDBDatabase : public EventTarget, public RefCounted<IDBDatabase>, public S criptWrappable, public ActiveDOMObject {
52 public: 52 public:
53 static PassRefPtr<IDBDatabase> create(ScriptExecutionContext*, PassRefPtr<ID BDatabaseBackendInterface>, PassRefPtr<IDBDatabaseCallbacks>); 53 static PassRefPtr<IDBDatabase> create(ScriptExecutionContext*, PassRefPtr<ID BDatabaseBackendInterface>, PassRefPtr<IDBDatabaseCallbacks>);
54 ~IDBDatabase(); 54 ~IDBDatabase();
55 55
56 void setMetadata(const IDBDatabaseMetadata& metadata) { m_metadata = metadat a; } 56 void setMetadata(const IDBDatabaseMetadata& metadata) { m_metadata = metadat a; }
57 void indexCreated(int64_t objectStoreId, const IDBIndexMetadata&); 57 void indexCreated(int64_t objectStoreId, const IDBIndexMetadata&);
58 void indexDeleted(int64_t objectStoreId, int64_t indexId); 58 void indexDeleted(int64_t objectStoreId, int64_t indexId);
59 void transactionCreated(IDBTransaction*); 59 void transactionCreated(IDBTransaction*);
60 void transactionFinished(IDBTransaction*); 60 void transactionFinished(IDBTransaction*);
61 61
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 // Keep track of the versionchange events waiting to be fired on this 135 // Keep track of the versionchange events waiting to be fired on this
136 // database so that we can cancel them if the database closes. 136 // database so that we can cancel them if the database closes.
137 Vector<RefPtr<Event> > m_enqueuedEvents; 137 Vector<RefPtr<Event> > m_enqueuedEvents;
138 138
139 RefPtr<IDBDatabaseCallbacks> m_databaseCallbacks; 139 RefPtr<IDBDatabaseCallbacks> m_databaseCallbacks;
140 }; 140 };
141 141
142 } // namespace WebCore 142 } // namespace WebCore
143 143
144 #endif // IDBDatabase_h 144 #endif // IDBDatabase_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698