| 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 30 matching lines...) Expand all Loading... |
| 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 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 WTF_MAKE_FAST_ALLOCATED(WebIDBCallbacksImpl); |
| 51 public: | 52 public: |
| 52 static PassOwnPtr<WebIDBCallbacksImpl> create(IDBRequest*); | 53 static PassOwnPtr<WebIDBCallbacksImpl> create(IDBRequest*); |
| 53 | 54 |
| 54 ~WebIDBCallbacksImpl() override; | 55 ~WebIDBCallbacksImpl() override; |
| 55 | 56 |
| 56 // Pointers transfer ownership. | 57 // Pointers transfer ownership. |
| 57 void onError(const WebIDBDatabaseError&) override; | 58 void onError(const WebIDBDatabaseError&) override; |
| 58 void onSuccess(const WebVector<WebString>&) override; | 59 void onSuccess(const WebVector<WebString>&) override; |
| 59 void onSuccess(WebIDBCursor*, const WebIDBKey&, const WebIDBKey& primaryKey,
const WebData&, const WebVector<WebBlobInfo>&) override; | 60 void onSuccess(WebIDBCursor*, const WebIDBKey&, const WebIDBKey& primaryKey,
const WebData&, const WebVector<WebBlobInfo>&) override; |
| 60 void onSuccess(WebIDBDatabase*, const WebIDBMetadata&) override; | 61 void onSuccess(WebIDBDatabase*, const WebIDBMetadata&) override; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 72 private: | 73 private: |
| 73 explicit WebIDBCallbacksImpl(IDBRequest*); | 74 explicit WebIDBCallbacksImpl(IDBRequest*); |
| 74 | 75 |
| 75 Persistent<IDBRequest> m_request; | 76 Persistent<IDBRequest> m_request; |
| 76 int m_asyncOperationId; | 77 int m_asyncOperationId; |
| 77 }; | 78 }; |
| 78 | 79 |
| 79 } // namespace blink | 80 } // namespace blink |
| 80 | 81 |
| 81 #endif // WebIDBCallbacksImpl_h | 82 #endif // WebIDBCallbacksImpl_h |
| OLD | NEW |