OLD | NEW |
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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 class IDBTransaction : public RefCountedGarbageCollected<IDBTransaction>, public
ScriptWrappable, public EventTarget, public ActiveDOMObject { | 51 class IDBTransaction : public RefCountedGarbageCollected<IDBTransaction>, public
ScriptWrappable, public EventTarget, public ActiveDOMObject { |
52 DECLARE_GC_INFO | 52 DECLARE_GC_INFO |
53 DEFINE_SELF_HANDLE(IDBTransaction) | 53 DEFINE_SELF_HANDLE(IDBTransaction) |
54 public: | 54 public: |
55 static PassRefPtr<IDBTransaction> create(ScriptExecutionContext*, int64_t, c
onst Vector<String>& objectStoreNames, IndexedDB::TransactionMode, IDBDatabase*)
; | 55 static PassRefPtr<IDBTransaction> create(ScriptExecutionContext*, int64_t, c
onst Vector<String>& objectStoreNames, IndexedDB::TransactionMode, IDBDatabase*)
; |
56 static PassRefPtr<IDBTransaction> create(ScriptExecutionContext*, int64_t, I
DBDatabase*, IDBOpenDBRequest*, const IDBDatabaseMetadata& previousMetadata); | 56 static PassRefPtr<IDBTransaction> create(ScriptExecutionContext*, int64_t, I
DBDatabase*, IDBOpenDBRequest*, const IDBDatabaseMetadata& previousMetadata); |
57 virtual ~IDBTransaction(); | 57 virtual ~IDBTransaction(); |
58 | 58 |
59 virtual void trace(Visitor*); | 59 virtual void trace(Visitor*); |
60 | 60 |
61 virtual void visitWith(Visitor* visitor) const OVERRIDE | 61 virtual void adjustAndMark(Visitor* visitor) const OVERRIDE |
62 { | 62 { |
63 visitor->visit(this); | 63 visitor->mark(this); |
64 } | 64 } |
65 | 65 |
66 static const AtomicString& modeReadOnly(); | 66 static const AtomicString& modeReadOnly(); |
67 static const AtomicString& modeReadWrite(); | 67 static const AtomicString& modeReadWrite(); |
68 static const AtomicString& modeVersionChange(); | 68 static const AtomicString& modeVersionChange(); |
69 static const AtomicString& modeReadOnlyLegacy(); | 69 static const AtomicString& modeReadOnlyLegacy(); |
70 static const AtomicString& modeReadWriteLegacy(); | 70 static const AtomicString& modeReadWriteLegacy(); |
71 | 71 |
72 static IndexedDB::TransactionMode stringToMode(const String&, ExceptionCode&
); | 72 static IndexedDB::TransactionMode stringToMode(const String&, ExceptionCode&
); |
73 static const AtomicString& modeToString(IndexedDB::TransactionMode); | 73 static const AtomicString& modeToString(IndexedDB::TransactionMode); |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 IDBDatabaseMetadata m_previousMetadata; | 171 IDBDatabaseMetadata m_previousMetadata; |
172 | 172 |
173 HashSet<IDBCursor*> m_openCursors; | 173 HashSet<IDBCursor*> m_openCursors; |
174 | 174 |
175 EventTargetData m_eventTargetData; | 175 EventTargetData m_eventTargetData; |
176 }; | 176 }; |
177 | 177 |
178 } // namespace WebCore | 178 } // namespace WebCore |
179 | 179 |
180 #endif // IDBTransaction_h | 180 #endif // IDBTransaction_h |
OLD | NEW |