| 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 29 matching lines...) Expand all Loading... |
| 40 class WebBlobInfo; | 40 class WebBlobInfo; |
| 41 class WebData; | 41 class WebData; |
| 42 class WebIDBCursor; | 42 class WebIDBCursor; |
| 43 class WebIDBDatabase; | 43 class WebIDBDatabase; |
| 44 class WebIDBDatabaseError; | 44 class WebIDBDatabaseError; |
| 45 class WebIDBIndex; | 45 class WebIDBIndex; |
| 46 class WebIDBKey; | 46 class WebIDBKey; |
| 47 class WebIDBKeyPath; | 47 class WebIDBKeyPath; |
| 48 struct WebIDBMetadata; | 48 struct WebIDBMetadata; |
| 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 virtual ~WebIDBCallbacksImpl(); |
| 55 | 55 |
| 56 // Pointers transfer ownership. | 56 // Pointers transfer ownership. |
| 57 virtual void onError(const WebIDBDatabaseError&) OVERRIDE; | 57 virtual void onError(const WebIDBDatabaseError&) override; |
| 58 virtual void onSuccess(const WebVector<WebString>&) OVERRIDE; | 58 virtual void onSuccess(const WebVector<WebString>&) override; |
| 59 virtual void onSuccess(WebIDBCursor*, const WebIDBKey&, const WebIDBKey& pri
maryKey, const WebData&, const WebVector<WebBlobInfo>&) OVERRIDE; | 59 virtual void onSuccess(WebIDBCursor*, const WebIDBKey&, const WebIDBKey& pri
maryKey, const WebData&, const WebVector<WebBlobInfo>&) override; |
| 60 virtual void onSuccess(WebIDBDatabase*, const WebIDBMetadata&) OVERRIDE; | 60 virtual void onSuccess(WebIDBDatabase*, const WebIDBMetadata&) override; |
| 61 virtual void onSuccess(const WebIDBKey&) OVERRIDE; | 61 virtual void onSuccess(const WebIDBKey&) override; |
| 62 virtual void onSuccess(const WebData&, const WebVector<WebBlobInfo>&) OVERRI
DE; | 62 virtual void onSuccess(const WebData&, const WebVector<WebBlobInfo>&) overri
de; |
| 63 virtual void onSuccess(const WebData&, const WebVector<WebBlobInfo>&, const
WebIDBKey&, const WebIDBKeyPath&) OVERRIDE; | 63 virtual void onSuccess(const WebData&, const WebVector<WebBlobInfo>&, const
WebIDBKey&, const WebIDBKeyPath&) override; |
| 64 virtual void onSuccess(long long) OVERRIDE; | 64 virtual void onSuccess(long long) override; |
| 65 virtual void onSuccess() OVERRIDE; | 65 virtual void onSuccess() override; |
| 66 virtual void onSuccess(const WebIDBKey&, const WebIDBKey& primaryKey, const
WebData&, const WebVector<WebBlobInfo>&) OVERRIDE; | 66 virtual void onSuccess(const WebIDBKey&, const WebIDBKey& primaryKey, const
WebData&, const WebVector<WebBlobInfo>&) override; |
| 67 virtual void onBlocked(long long oldVersion) OVERRIDE; | 67 virtual void onBlocked(long long oldVersion) override; |
| 68 virtual void onUpgradeNeeded(long long oldVersion, WebIDBDatabase*, const We
bIDBMetadata&, unsigned short dataLoss, WebString dataLossMessage) OVERRIDE; | 68 virtual void onUpgradeNeeded(long long oldVersion, WebIDBDatabase*, const We
bIDBMetadata&, unsigned short dataLoss, WebString dataLossMessage) override; |
| 69 | 69 |
| 70 private: | 70 private: |
| 71 explicit WebIDBCallbacksImpl(IDBRequest*); | 71 explicit WebIDBCallbacksImpl(IDBRequest*); |
| 72 | 72 |
| 73 Persistent<IDBRequest> m_request; | 73 Persistent<IDBRequest> m_request; |
| 74 int m_asyncOperationId; | 74 int m_asyncOperationId; |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 } // namespace blink | 77 } // namespace blink |
| 78 | 78 |
| 79 #endif // WebIDBCallbacksImpl_h | 79 #endif // WebIDBCallbacksImpl_h |
| OLD | NEW |