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