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

Side by Side Diff: Source/modules/indexeddb/IDBTransaction.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 namespace WebCore { 41 namespace WebCore {
42 42
43 class DOMError; 43 class DOMError;
44 class IDBCursor; 44 class IDBCursor;
45 class IDBDatabase; 45 class IDBDatabase;
46 class IDBDatabaseBackendInterface; 46 class IDBDatabaseBackendInterface;
47 class IDBObjectStore; 47 class IDBObjectStore;
48 class IDBOpenDBRequest; 48 class IDBOpenDBRequest;
49 struct IDBObjectStoreMetadata; 49 struct IDBObjectStoreMetadata;
50 50
51 class IDBTransaction : public ScriptWrappable, public RefCounted<IDBTransaction> , public EventTarget, public ActiveDOMObject { 51 class IDBTransaction : public EventTarget, public ScriptWrappable, public RefCou nted<IDBTransaction>, public ActiveDOMObject {
52 public: 52 public:
53 static PassRefPtr<IDBTransaction> create(ScriptExecutionContext*, int64_t, c onst Vector<String>& objectStoreNames, IndexedDB::TransactionMode, IDBDatabase*) ; 53 static PassRefPtr<IDBTransaction> create(ScriptExecutionContext*, int64_t, c onst Vector<String>& objectStoreNames, IndexedDB::TransactionMode, IDBDatabase*) ;
54 static PassRefPtr<IDBTransaction> create(ScriptExecutionContext*, int64_t, I DBDatabase*, IDBOpenDBRequest*, const IDBDatabaseMetadata& previousMetadata); 54 static PassRefPtr<IDBTransaction> create(ScriptExecutionContext*, int64_t, I DBDatabase*, IDBOpenDBRequest*, const IDBDatabaseMetadata& previousMetadata);
55 virtual ~IDBTransaction(); 55 virtual ~IDBTransaction();
56 56
57 static const AtomicString& modeReadOnly(); 57 static const AtomicString& modeReadOnly();
58 static const AtomicString& modeReadWrite(); 58 static const AtomicString& modeReadWrite();
59 static const AtomicString& modeVersionChange(); 59 static const AtomicString& modeVersionChange();
60 static const AtomicString& modeReadOnlyLegacy(); 60 static const AtomicString& modeReadOnlyLegacy();
61 static const AtomicString& modeReadWriteLegacy(); 61 static const AtomicString& modeReadWriteLegacy();
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 IDBDatabaseMetadata m_previousMetadata; 162 IDBDatabaseMetadata m_previousMetadata;
163 163
164 HashSet<IDBCursor*> m_openCursors; 164 HashSet<IDBCursor*> m_openCursors;
165 165
166 EventTargetData m_eventTargetData; 166 EventTargetData m_eventTargetData;
167 }; 167 };
168 168
169 } // namespace WebCore 169 } // namespace WebCore
170 170
171 #endif // IDBTransaction_h 171 #endif // IDBTransaction_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698