| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * 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 * | 10 * |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 class WebIDBDatabaseError; | 44 class WebIDBDatabaseError; |
| 45 class WebIDBKey; | 45 class WebIDBKey; |
| 46 class WebIDBKeyPath; | 46 class WebIDBKeyPath; |
| 47 struct WebIDBMetadata; | 47 struct WebIDBMetadata; |
| 48 struct WebIDBValue; | 48 struct WebIDBValue; |
| 49 | 49 |
| 50 class WebIDBCallbacksImpl final : public WebIDBCallbacks { | 50 class WebIDBCallbacksImpl final : public WebIDBCallbacks { |
| 51 public: | 51 public: |
| 52 static PassOwnPtr<WebIDBCallbacksImpl> create(IDBRequest*); | 52 static PassOwnPtr<WebIDBCallbacksImpl> create(IDBRequest*); |
| 53 | 53 |
| 54 virtual ~WebIDBCallbacksImpl(); | 54 ~WebIDBCallbacksImpl() override; |
| 55 | 55 |
| 56 // Pointers transfer ownership. | 56 // Pointers transfer ownership. |
| 57 virtual void onError(const WebIDBDatabaseError&) override; | 57 void onError(const WebIDBDatabaseError&) override; |
| 58 virtual void onSuccess(const WebVector<WebString>&) override; | 58 void onSuccess(const WebVector<WebString>&) override; |
| 59 virtual void onSuccess(WebIDBCursor*, const WebIDBKey&, const WebIDBKey& pri
maryKey, const WebData&, const WebVector<WebBlobInfo>&) override; | 59 void onSuccess(WebIDBCursor*, const WebIDBKey&, const WebIDBKey& primaryKey,
const WebData&, const WebVector<WebBlobInfo>&) override; |
| 60 virtual void onSuccess(WebIDBDatabase*, const WebIDBMetadata&) override; | 60 void onSuccess(WebIDBDatabase*, const WebIDBMetadata&) override; |
| 61 virtual void onSuccess(const WebIDBKey&) override; | 61 void onSuccess(const WebIDBKey&) override; |
| 62 virtual void onSuccess(const WebData&, const WebVector<WebBlobInfo>&) overri
de; | 62 void onSuccess(const WebData&, const WebVector<WebBlobInfo>&) override; |
| 63 virtual void onSuccess(const WebIDBValue&) override; | 63 void onSuccess(const WebIDBValue&) override; |
| 64 virtual void onSuccess(const WebVector<WebIDBValue>&) override; | 64 void onSuccess(const WebVector<WebIDBValue>&) override; |
| 65 virtual void onSuccess(const WebData&, const WebVector<WebBlobInfo>&, const
WebIDBKey&, const WebIDBKeyPath&) override; | 65 void onSuccess(const WebData&, const WebVector<WebBlobInfo>&, const WebIDBKe
y&, const WebIDBKeyPath&) override; |
| 66 virtual void onSuccess(long long) override; | 66 void onSuccess(long long) override; |
| 67 virtual void onSuccess() override; | 67 void onSuccess() override; |
| 68 virtual void onSuccess(const WebIDBKey&, const WebIDBKey& primaryKey, const
WebData&, const WebVector<WebBlobInfo>&) override; | 68 void onSuccess(const WebIDBKey&, const WebIDBKey& primaryKey, const WebData&
, const WebVector<WebBlobInfo>&) override; |
| 69 virtual void onBlocked(long long oldVersion) override; | 69 void onBlocked(long long oldVersion) override; |
| 70 virtual void onUpgradeNeeded(long long oldVersion, WebIDBDatabase*, const We
bIDBMetadata&, unsigned short dataLoss, WebString dataLossMessage) override; | 70 void onUpgradeNeeded(long long oldVersion, WebIDBDatabase*, const WebIDBMeta
data&, unsigned short dataLoss, WebString dataLossMessage) override; |
| 71 | 71 |
| 72 private: | 72 private: |
| 73 explicit WebIDBCallbacksImpl(IDBRequest*); | 73 explicit WebIDBCallbacksImpl(IDBRequest*); |
| 74 | 74 |
| 75 Persistent<IDBRequest> m_request; | 75 Persistent<IDBRequest> m_request; |
| 76 int m_asyncOperationId; | 76 int m_asyncOperationId; |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 } // namespace blink | 79 } // namespace blink |
| 80 | 80 |
| 81 #endif // WebIDBCallbacksImpl_h | 81 #endif // WebIDBCallbacksImpl_h |
| OLD | NEW |