| 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 22 matching lines...) Expand all Loading... |
| 33 class IDBDatabaseCallbacksImpl; | 33 class IDBDatabaseCallbacksImpl; |
| 34 | 34 |
| 35 class IDBOpenDBRequest : public IDBRequest { | 35 class IDBOpenDBRequest : public IDBRequest { |
| 36 public: | 36 public: |
| 37 static PassRefPtr<IDBOpenDBRequest> create(ScriptExecutionContext*, PassRefP
tr<IDBDatabaseCallbacksImpl>, int64_t transactionId, int64_t version); | 37 static PassRefPtr<IDBOpenDBRequest> create(ScriptExecutionContext*, PassRefP
tr<IDBDatabaseCallbacksImpl>, int64_t transactionId, int64_t version); |
| 38 virtual ~IDBOpenDBRequest(); | 38 virtual ~IDBOpenDBRequest(); |
| 39 | 39 |
| 40 using IDBRequest::onSuccess; | 40 using IDBRequest::onSuccess; |
| 41 | 41 |
| 42 virtual void onBlocked(int64_t existingVersion) OVERRIDE; | 42 virtual void onBlocked(int64_t existingVersion) OVERRIDE; |
| 43 virtual void onUpgradeNeeded(int64_t oldVersion, PassRefPtr<IDBDatabaseBacke
ndInterface>, const IDBDatabaseMetadata&) OVERRIDE; | 43 virtual void onUpgradeNeeded(int64_t oldVersion, PassRefPtr<IDBDatabaseBacke
ndInterface>, const IDBDatabaseMetadata&, bool dataLoss) OVERRIDE; |
| 44 virtual void onSuccess(PassRefPtr<IDBDatabaseBackendInterface>, const IDBDat
abaseMetadata&) OVERRIDE; | 44 virtual void onSuccess(PassRefPtr<IDBDatabaseBackendInterface>, const IDBDat
abaseMetadata&) OVERRIDE; |
| 45 | 45 |
| 46 // EventTarget | 46 // EventTarget |
| 47 virtual const AtomicString& interfaceName() const; | 47 virtual const AtomicString& interfaceName() const; |
| 48 virtual bool dispatchEvent(PassRefPtr<Event>) OVERRIDE; | 48 virtual bool dispatchEvent(PassRefPtr<Event>) OVERRIDE; |
| 49 | 49 |
| 50 DEFINE_ATTRIBUTE_EVENT_LISTENER(blocked); | 50 DEFINE_ATTRIBUTE_EVENT_LISTENER(blocked); |
| 51 DEFINE_ATTRIBUTE_EVENT_LISTENER(upgradeneeded); | 51 DEFINE_ATTRIBUTE_EVENT_LISTENER(upgradeneeded); |
| 52 | 52 |
| 53 protected: | 53 protected: |
| 54 virtual bool shouldEnqueueEvent() const OVERRIDE; | 54 virtual bool shouldEnqueueEvent() const OVERRIDE; |
| 55 | 55 |
| 56 private: | 56 private: |
| 57 IDBOpenDBRequest(ScriptExecutionContext*, PassRefPtr<IDBDatabaseCallbacksImp
l>, int64_t transactionId, int64_t version); | 57 IDBOpenDBRequest(ScriptExecutionContext*, PassRefPtr<IDBDatabaseCallbacksImp
l>, int64_t transactionId, int64_t version); |
| 58 | 58 |
| 59 RefPtr<IDBDatabaseCallbacksImpl> m_databaseCallbacks; | 59 RefPtr<IDBDatabaseCallbacksImpl> m_databaseCallbacks; |
| 60 const int64_t m_transactionId; | 60 const int64_t m_transactionId; |
| 61 int64_t m_version; | 61 int64_t m_version; |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 } // namespace WebCore | 64 } // namespace WebCore |
| 65 | 65 |
| 66 #endif // IDBOpenDBRequest_h | 66 #endif // IDBOpenDBRequest_h |
| OLD | NEW |