| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 | 43 |
| 44 using IDBRequest::onSuccess; | 44 using IDBRequest::onSuccess; |
| 45 | 45 |
| 46 void onBlocked(int64_t existingVersion) override; | 46 void onBlocked(int64_t existingVersion) override; |
| 47 void onUpgradeNeeded(int64_t oldVersion, PassOwnPtr<WebIDBDatabase>, const I
DBDatabaseMetadata&, WebIDBDataLoss, String dataLossMessage) override; | 47 void onUpgradeNeeded(int64_t oldVersion, PassOwnPtr<WebIDBDatabase>, const I
DBDatabaseMetadata&, WebIDBDataLoss, String dataLossMessage) override; |
| 48 void onSuccess(PassOwnPtr<WebIDBDatabase>, const IDBDatabaseMetadata&) overr
ide; | 48 void onSuccess(PassOwnPtr<WebIDBDatabase>, const IDBDatabaseMetadata&) overr
ide; |
| 49 void onSuccess(int64_t oldVersion) override; | 49 void onSuccess(int64_t oldVersion) override; |
| 50 | 50 |
| 51 // EventTarget | 51 // EventTarget |
| 52 const AtomicString& interfaceName() const override; | 52 const AtomicString& interfaceName() const override; |
| 53 bool dispatchEvent(PassRefPtrWillBeRawPtr<Event>) override; | |
| 54 | 53 |
| 55 DEFINE_ATTRIBUTE_EVENT_LISTENER(blocked); | 54 DEFINE_ATTRIBUTE_EVENT_LISTENER(blocked); |
| 56 DEFINE_ATTRIBUTE_EVENT_LISTENER(upgradeneeded); | 55 DEFINE_ATTRIBUTE_EVENT_LISTENER(upgradeneeded); |
| 57 | 56 |
| 58 protected: | 57 protected: |
| 59 bool shouldEnqueueEvent() const override; | 58 bool shouldEnqueueEvent() const override; |
| 60 | 59 |
| 60 // EventTarget |
| 61 bool dispatchEventInternal(PassRefPtrWillBeRawPtr<Event>) override; |
| 62 |
| 61 private: | 63 private: |
| 62 IDBOpenDBRequest(ScriptState*, IDBDatabaseCallbacks*, int64_t transactionId,
int64_t version); | 64 IDBOpenDBRequest(ScriptState*, IDBDatabaseCallbacks*, int64_t transactionId,
int64_t version); |
| 63 | 65 |
| 64 Member<IDBDatabaseCallbacks> m_databaseCallbacks; | 66 Member<IDBDatabaseCallbacks> m_databaseCallbacks; |
| 65 const int64_t m_transactionId; | 67 const int64_t m_transactionId; |
| 66 int64_t m_version; | 68 int64_t m_version; |
| 67 }; | 69 }; |
| 68 | 70 |
| 69 } // namespace blink | 71 } // namespace blink |
| 70 | 72 |
| 71 #endif // IDBOpenDBRequest_h | 73 #endif // IDBOpenDBRequest_h |
| OLD | NEW |