| 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 19 matching lines...) Expand all Loading... |
| 30 #include "WebIDBCallbacks.h" | 30 #include "WebIDBCallbacks.h" |
| 31 #include "WebIDBKey.h" | 31 #include "WebIDBKey.h" |
| 32 #include "WebString.h" | 32 #include "WebString.h" |
| 33 | 33 |
| 34 namespace blink { | 34 namespace blink { |
| 35 | 35 |
| 36 // See comment in WebIDBFactory for a high level overview these classes. | 36 // See comment in WebIDBFactory for a high level overview these classes. |
| 37 class WebIDBCursor { | 37 class WebIDBCursor { |
| 38 public: | 38 public: |
| 39 virtual ~WebIDBCursor() { } | 39 virtual ~WebIDBCursor() { } |
| 40 | |
| 41 enum Direction { | |
| 42 Next = 0, | |
| 43 NextNoDuplicate = 1, | |
| 44 Prev = 2, | |
| 45 PrevNoDuplicate = 3, | |
| 46 DirectionLast = PrevNoDuplicate | |
| 47 }; | |
| 48 | |
| 49 virtual void advance(unsigned long, WebIDBCallbacks*) { BLINK_ASSERT_NOT_REA
CHED(); } | 40 virtual void advance(unsigned long, WebIDBCallbacks*) { BLINK_ASSERT_NOT_REA
CHED(); } |
| 50 virtual void continueFunction(const WebIDBKey&, const WebIDBKey& primaryKey,
WebIDBCallbacks*) { BLINK_ASSERT_NOT_REACHED(); } | 41 virtual void continueFunction(const WebIDBKey&, const WebIDBKey& primaryKey,
WebIDBCallbacks*) { BLINK_ASSERT_NOT_REACHED(); } |
| 51 virtual void postSuccessHandlerCallback() { } // Only used in frontend. | 42 virtual void postSuccessHandlerCallback() { } // Only used in frontend. |
| 52 | 43 |
| 53 protected: | 44 protected: |
| 54 WebIDBCursor() { } | 45 WebIDBCursor() { } |
| 55 }; | 46 }; |
| 56 | 47 |
| 57 } // namespace blink | 48 } // namespace blink |
| 58 | 49 |
| 59 #endif // WebIDBCursor_h | 50 #endif // WebIDBCursor_h |
| OLD | NEW |