| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 void onBlocked(int64_t existingVersion) override; | 51 void onBlocked(int64_t existingVersion) override; |
| 52 void onUpgradeNeeded(int64_t oldVersion, | 52 void onUpgradeNeeded(int64_t oldVersion, |
| 53 std::unique_ptr<WebIDBDatabase>, | 53 std::unique_ptr<WebIDBDatabase>, |
| 54 const IDBDatabaseMetadata&, | 54 const IDBDatabaseMetadata&, |
| 55 WebIDBDataLoss, | 55 WebIDBDataLoss, |
| 56 String dataLossMessage) override; | 56 String dataLossMessage) override; |
| 57 void onSuccess(std::unique_ptr<WebIDBDatabase>, | 57 void onSuccess(std::unique_ptr<WebIDBDatabase>, |
| 58 const IDBDatabaseMetadata&) override; | 58 const IDBDatabaseMetadata&) override; |
| 59 void onSuccess(int64_t oldVersion) override; | 59 void onSuccess(int64_t oldVersion) override; |
| 60 | 60 |
| 61 // ActiveDOMObject | 61 // SuspendableObject |
| 62 void contextDestroyed() final; | 62 void contextDestroyed() final; |
| 63 | 63 |
| 64 // EventTarget | 64 // EventTarget |
| 65 const AtomicString& interfaceName() const override; | 65 const AtomicString& interfaceName() const override; |
| 66 | 66 |
| 67 DEFINE_ATTRIBUTE_EVENT_LISTENER(blocked); | 67 DEFINE_ATTRIBUTE_EVENT_LISTENER(blocked); |
| 68 DEFINE_ATTRIBUTE_EVENT_LISTENER(upgradeneeded); | 68 DEFINE_ATTRIBUTE_EVENT_LISTENER(upgradeneeded); |
| 69 | 69 |
| 70 protected: | 70 protected: |
| 71 bool shouldEnqueueEvent() const override; | 71 bool shouldEnqueueEvent() const override; |
| 72 | 72 |
| 73 // EventTarget | 73 // EventTarget |
| 74 DispatchEventResult dispatchEventInternal(Event*) override; | 74 DispatchEventResult dispatchEventInternal(Event*) override; |
| 75 | 75 |
| 76 private: | 76 private: |
| 77 IDBOpenDBRequest(ScriptState*, | 77 IDBOpenDBRequest(ScriptState*, |
| 78 IDBDatabaseCallbacks*, | 78 IDBDatabaseCallbacks*, |
| 79 int64_t transactionId, | 79 int64_t transactionId, |
| 80 int64_t version); | 80 int64_t version); |
| 81 | 81 |
| 82 Member<IDBDatabaseCallbacks> m_databaseCallbacks; | 82 Member<IDBDatabaseCallbacks> m_databaseCallbacks; |
| 83 const int64_t m_transactionId; | 83 const int64_t m_transactionId; |
| 84 int64_t m_version; | 84 int64_t m_version; |
| 85 }; | 85 }; |
| 86 | 86 |
| 87 } // namespace blink | 87 } // namespace blink |
| 88 | 88 |
| 89 #endif // IDBOpenDBRequest_h | 89 #endif // IDBOpenDBRequest_h |
| OLD | NEW |