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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 class IDBObjectStore; | 47 class IDBObjectStore; |
48 class IDBOpenDBRequest; | 48 class IDBOpenDBRequest; |
49 struct IDBObjectStoreMetadata; | 49 struct IDBObjectStoreMetadata; |
50 | 50 |
51 class IDBTransaction FINAL | 51 class IDBTransaction FINAL |
52 : public RefCountedGarbageCollected<IDBTransaction> | 52 : public RefCountedGarbageCollected<IDBTransaction> |
53 , public ScriptWrappable | 53 , public ScriptWrappable |
54 , public EventTargetWithInlineData | 54 , public EventTargetWithInlineData |
55 , public ActiveDOMObject { | 55 , public ActiveDOMObject { |
56 DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedGarbageCollected<IDBTransaction>); | 56 DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedGarbageCollected<IDBTransaction>); |
57 | 57 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(IDBTransaction); |
58 public: | 58 public: |
59 static IDBTransaction* create(ExecutionContext*, int64_t, const Vector<Strin
g>& objectStoreNames, blink::WebIDBDatabase::TransactionMode, IDBDatabase*); | 59 static IDBTransaction* create(ExecutionContext*, int64_t, const Vector<Strin
g>& objectStoreNames, blink::WebIDBDatabase::TransactionMode, IDBDatabase*); |
60 static IDBTransaction* create(ExecutionContext*, int64_t, IDBDatabase*, IDBO
penDBRequest*, const IDBDatabaseMetadata& previousMetadata); | 60 static IDBTransaction* create(ExecutionContext*, int64_t, IDBDatabase*, IDBO
penDBRequest*, const IDBDatabaseMetadata& previousMetadata); |
61 virtual ~IDBTransaction(); | 61 virtual ~IDBTransaction(); |
62 void trace(Visitor*); | 62 virtual void trace(Visitor*) OVERRIDE; |
63 | 63 |
64 static const AtomicString& modeReadOnly(); | 64 static const AtomicString& modeReadOnly(); |
65 static const AtomicString& modeReadWrite(); | 65 static const AtomicString& modeReadWrite(); |
66 static const AtomicString& modeVersionChange(); | 66 static const AtomicString& modeVersionChange(); |
67 | 67 |
68 static blink::WebIDBDatabase::TransactionMode stringToMode(const String&, Ex
ceptionState&); | 68 static blink::WebIDBDatabase::TransactionMode stringToMode(const String&, Ex
ceptionState&); |
69 static const AtomicString& modeToString(blink::WebIDBDatabase::TransactionMo
de); | 69 static const AtomicString& modeToString(blink::WebIDBDatabase::TransactionMo
de); |
70 | 70 |
71 // When the connection is closed backend will be 0. | 71 // When the connection is closed backend will be 0. |
72 blink::WebIDBDatabase* backendDB() const; | 72 blink::WebIDBDatabase* backendDB() const; |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 IDBObjectStoreSet m_deletedObjectStores; | 141 IDBObjectStoreSet m_deletedObjectStores; |
142 | 142 |
143 typedef HeapHashMap<Member<IDBObjectStore>, IDBObjectStoreMetadata> IDBObjec
tStoreMetadataMap; | 143 typedef HeapHashMap<Member<IDBObjectStore>, IDBObjectStoreMetadata> IDBObjec
tStoreMetadataMap; |
144 IDBObjectStoreMetadataMap m_objectStoreCleanupMap; | 144 IDBObjectStoreMetadataMap m_objectStoreCleanupMap; |
145 IDBDatabaseMetadata m_previousMetadata; | 145 IDBDatabaseMetadata m_previousMetadata; |
146 }; | 146 }; |
147 | 147 |
148 } // namespace WebCore | 148 } // namespace WebCore |
149 | 149 |
150 #endif // IDBTransaction_h | 150 #endif // IDBTransaction_h |
OLD | NEW |