| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 20 matching lines...) Expand all Loading... |
| 31 #include "public/platform/modules/indexeddb/WebIDBCallbacks.h" | 31 #include "public/platform/modules/indexeddb/WebIDBCallbacks.h" |
| 32 #include "public/platform/modules/indexeddb/WebIDBKey.h" | 32 #include "public/platform/modules/indexeddb/WebIDBKey.h" |
| 33 #include "public/platform/modules/indexeddb/WebIDBTypes.h" | 33 #include "public/platform/modules/indexeddb/WebIDBTypes.h" |
| 34 | 34 |
| 35 namespace blink { | 35 namespace blink { |
| 36 | 36 |
| 37 class WebIDBCursor { | 37 class WebIDBCursor { |
| 38 public: | 38 public: |
| 39 virtual ~WebIDBCursor() { } | 39 virtual ~WebIDBCursor() { } |
| 40 | 40 |
| 41 virtual void advance(unsigned long, WebIDBCallbacks*) { BLINK_ASSERT_NOT_REA
CHED(); } | 41 virtual void advance(unsigned long, WebIDBCallbacks*) = 0; |
| 42 virtual void continueFunction(const WebIDBKey&, const WebIDBKey& primaryKey,
WebIDBCallbacks*) { BLINK_ASSERT_NOT_REACHED(); } | 42 virtual void continueFunction(const WebIDBKey&, const WebIDBKey& primaryKey,
WebIDBCallbacks*) = 0; |
| 43 virtual void postSuccessHandlerCallback() { } // Only used in frontend. | 43 virtual void postSuccessHandlerCallback() { } // Only used in frontend. |
| 44 | 44 |
| 45 protected: | 45 protected: |
| 46 WebIDBCursor() { } | 46 WebIDBCursor() { } |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 } // namespace blink | 49 } // namespace blink |
| 50 | 50 |
| 51 #endif // WebIDBCursor_h | 51 #endif // WebIDBCursor_h |
| OLD | NEW |