| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 , public ActiveDOMObject { | 54 , public ActiveDOMObject { |
| 55 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<I
DBTransaction>); | 55 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<I
DBTransaction>); |
| 56 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(IDBTransaction); | 56 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(IDBTransaction); |
| 57 DEFINE_WRAPPERTYPEINFO(); | 57 DEFINE_WRAPPERTYPEINFO(); |
| 58 public: | 58 public: |
| 59 static IDBTransaction* create(ScriptState*, int64_t, const HashSet<String>&
objectStoreNames, WebIDBTransactionMode, IDBDatabase*); | 59 static IDBTransaction* create(ScriptState*, int64_t, const HashSet<String>&
objectStoreNames, WebIDBTransactionMode, IDBDatabase*); |
| 60 static IDBTransaction* create(ScriptState*, int64_t, IDBDatabase*, IDBOpenDB
Request*, const IDBDatabaseMetadata& previousMetadata); | 60 static IDBTransaction* create(ScriptState*, int64_t, IDBDatabase*, IDBOpenDB
Request*, const IDBDatabaseMetadata& previousMetadata); |
| 61 virtual ~IDBTransaction(); | 61 virtual ~IDBTransaction(); |
| 62 DECLARE_VIRTUAL_TRACE(); | 62 DECLARE_VIRTUAL_TRACE(); |
| 63 | 63 |
| 64 static WebIDBTransactionMode stringToMode(const String&, ExceptionState&); | 64 static WebIDBTransactionMode stringToMode(const String&); |
| 65 | 65 |
| 66 // When the connection is closed backend will be 0. | 66 // When the connection is closed backend will be 0. |
| 67 WebIDBDatabase* backendDB() const; | 67 WebIDBDatabase* backendDB() const; |
| 68 | 68 |
| 69 int64_t id() const { return m_id; } | 69 int64_t id() const { return m_id; } |
| 70 bool isActive() const { return m_state == Active; } | 70 bool isActive() const { return m_state == Active; } |
| 71 bool isFinished() const { return m_state == Finished; } | 71 bool isFinished() const { return m_state == Finished; } |
| 72 bool isFinishing() const { return m_state == Finishing; } | 72 bool isFinishing() const { return m_state == Finishing; } |
| 73 bool isReadOnly() const { return m_mode == WebIDBTransactionModeReadOnly; } | 73 bool isReadOnly() const { return m_mode == WebIDBTransactionModeReadOnly; } |
| 74 bool isVersionChange() const { return m_mode == WebIDBTransactionModeVersion
Change; } | 74 bool isVersionChange() const { return m_mode == WebIDBTransactionModeVersion
Change; } |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 IDBObjectStoreSet m_deletedObjectStores; | 137 IDBObjectStoreSet m_deletedObjectStores; |
| 138 | 138 |
| 139 typedef HeapHashMap<Member<IDBObjectStore>, IDBObjectStoreMetadata> IDBObjec
tStoreMetadataMap; | 139 typedef HeapHashMap<Member<IDBObjectStore>, IDBObjectStoreMetadata> IDBObjec
tStoreMetadataMap; |
| 140 IDBObjectStoreMetadataMap m_objectStoreCleanupMap; | 140 IDBObjectStoreMetadataMap m_objectStoreCleanupMap; |
| 141 IDBDatabaseMetadata m_previousMetadata; | 141 IDBDatabaseMetadata m_previousMetadata; |
| 142 }; | 142 }; |
| 143 | 143 |
| 144 } // namespace blink | 144 } // namespace blink |
| 145 | 145 |
| 146 #endif // IDBTransaction_h | 146 #endif // IDBTransaction_h |
| OLD | NEW |