| 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 void OnAbort(DOMException*); | 126 void OnAbort(DOMException*); |
| 127 void OnComplete(); | 127 void OnComplete(); |
| 128 | 128 |
| 129 // EventTarget | 129 // EventTarget |
| 130 const AtomicString& InterfaceName() const override; | 130 const AtomicString& InterfaceName() const override; |
| 131 ExecutionContext* GetExecutionContext() const override; | 131 ExecutionContext* GetExecutionContext() const override; |
| 132 | 132 |
| 133 // ScriptWrappable | 133 // ScriptWrappable |
| 134 bool HasPendingActivity() const final; | 134 bool HasPendingActivity() const final; |
| 135 | 135 |
| 136 // For use in IDBObjectStore.isNewlyCreated(). The rest of the code should use | 136 // For use in IDBObjectStore::IsNewlyCreated(). The rest of the code should |
| 137 // IDBObjectStore.isNewlyCreated() instead of calling this method directly. | 137 // use IDBObjectStore::IsNewlyCreated() instead of calling this method |
| 138 // directly. |
| 138 int64_t OldMaxObjectStoreId() const { | 139 int64_t OldMaxObjectStoreId() const { |
| 139 DCHECK(IsVersionChange()); | 140 DCHECK(IsVersionChange()); |
| 140 return old_database_metadata_.max_object_store_id; | 141 return old_database_metadata_.max_object_store_id; |
| 141 } | 142 } |
| 142 | 143 |
| 143 protected: | 144 protected: |
| 144 // EventTarget | 145 // EventTarget |
| 145 DispatchEventResult DispatchEventInternal(Event*) override; | 146 DispatchEventResult DispatchEventInternal(Event*) override; |
| 146 | 147 |
| 147 private: | 148 private: |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 // This does not include a snapshot of the database's object store / index | 252 // This does not include a snapshot of the database's object store / index |
| 252 // metadata. | 253 // metadata. |
| 253 // | 254 // |
| 254 // Only valid for versionchange transactions. | 255 // Only valid for versionchange transactions. |
| 255 IDBDatabaseMetadata old_database_metadata_; | 256 IDBDatabaseMetadata old_database_metadata_; |
| 256 }; | 257 }; |
| 257 | 258 |
| 258 } // namespace blink | 259 } // namespace blink |
| 259 | 260 |
| 260 #endif // IDBTransaction_h | 261 #endif // IDBTransaction_h |
| OLD | NEW |