| 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 30 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 using IDBRequest::onSuccess; | 42 using IDBRequest::onSuccess; |
| 43 | 43 |
| 44 virtual void onBlocked(int64_t existingVersion) OVERRIDE; | 44 virtual void onBlocked(int64_t existingVersion) OVERRIDE; |
| 45 virtual void onUpgradeNeeded(int64_t oldVersion, PassRefPtr<IDBTransactionBa
ckendInterface>, PassRefPtr<IDBDatabaseBackendInterface>) OVERRIDE; | 45 virtual void onUpgradeNeeded(int64_t oldVersion, PassRefPtr<IDBTransactionBa
ckendInterface>, PassRefPtr<IDBDatabaseBackendInterface>) OVERRIDE; |
| 46 virtual void onSuccess(PassRefPtr<IDBDatabaseBackendInterface>) OVERRIDE; | 46 virtual void onSuccess(PassRefPtr<IDBDatabaseBackendInterface>) OVERRIDE; |
| 47 | 47 |
| 48 // EventTarget | 48 // EventTarget |
| 49 virtual const AtomicString& interfaceName() const; | 49 virtual const AtomicString& interfaceName() const; |
| 50 virtual bool dispatchEvent(PassRefPtr<Event>); | 50 virtual bool dispatchEvent(PassRefPtr<Event>); |
| 51 bool dispatchEvent(PassRefPtr<Event> event, ExceptionCode& ec) { return IDBR
equest::dispatchEvent(event, ec); } | |
| 52 | 51 |
| 53 DEFINE_ATTRIBUTE_EVENT_LISTENER(blocked); | 52 DEFINE_ATTRIBUTE_EVENT_LISTENER(blocked); |
| 54 DEFINE_ATTRIBUTE_EVENT_LISTENER(upgradeneeded); | 53 DEFINE_ATTRIBUTE_EVENT_LISTENER(upgradeneeded); |
| 55 | 54 |
| 56 protected: | 55 protected: |
| 57 virtual bool shouldEnqueueEvent() const OVERRIDE; | 56 virtual bool shouldEnqueueEvent() const OVERRIDE; |
| 58 | 57 |
| 59 private: | 58 private: |
| 60 IDBOpenDBRequest(ScriptExecutionContext*, PassRefPtr<IDBAny> source, PassRef
Ptr<IDBDatabaseCallbacksImpl>, int64_t version); | 59 IDBOpenDBRequest(ScriptExecutionContext*, PassRefPtr<IDBAny> source, PassRef
Ptr<IDBDatabaseCallbacksImpl>, int64_t version); |
| 61 | 60 |
| 62 RefPtr<IDBDatabaseCallbacksImpl> m_databaseCallbacks; | 61 RefPtr<IDBDatabaseCallbacksImpl> m_databaseCallbacks; |
| 63 int64_t m_version; | 62 int64_t m_version; |
| 64 }; | 63 }; |
| 65 | 64 |
| 66 } // namespace WebCore | 65 } // namespace WebCore |
| 67 | 66 |
| 68 #endif // ENABLE(INDEXED_DATABASE) | 67 #endif // ENABLE(INDEXED_DATABASE) |
| 69 | 68 |
| 70 #endif // IDBOpenDBRequest_h | 69 #endif // IDBOpenDBRequest_h |
| OLD | NEW |