Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: public/platform/WebIDBCursor.h

Issue 325683002: [IndexedDB] Use consistent enums on both sides of IPC. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698