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

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

Issue 348203002: [IndexedDB] Removed FIXMEs as consistent enums being used 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
« no previous file with comments | « no previous file | public/platform/WebIDBDatabase.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 21 matching lines...) Expand all
32 #include "WebIDBTypes.h" 32 #include "WebIDBTypes.h"
33 #include "WebString.h" 33 #include "WebString.h"
34 34
35 namespace blink { 35 namespace blink {
36 36
37 // See comment in WebIDBFactory for a high level overview these classes. 37 // See comment in WebIDBFactory for a high level overview these classes.
38 class WebIDBCursor { 38 class WebIDBCursor {
39 public: 39 public:
40 virtual ~WebIDBCursor() { } 40 virtual ~WebIDBCursor() { }
41 41
42 // FIXME: Remove once Chromium is updated to use the new enums.
43 typedef WebIDBCursorDirection Direction;
44 static const WebIDBCursorDirection Next = WebIDBCursorDirectionNext;
45 static const WebIDBCursorDirection NextNoDuplicate =WebIDBCursorDirectionNex tNoDuplicate;
46 static const WebIDBCursorDirection Prev = WebIDBCursorDirectionPrev;
47 static const WebIDBCursorDirection PrevNoDuplicate =WebIDBCursorDirectionPre vNoDuplicate;
48 static const WebIDBCursorDirection DirectionLast =WebIDBCursorDirectionLast;
49
50 virtual void advance(unsigned long, WebIDBCallbacks*) { BLINK_ASSERT_NOT_REA CHED(); } 42 virtual void advance(unsigned long, WebIDBCallbacks*) { BLINK_ASSERT_NOT_REA CHED(); }
51 virtual void continueFunction(const WebIDBKey&, const WebIDBKey& primaryKey, WebIDBCallbacks*) { BLINK_ASSERT_NOT_REACHED(); } 43 virtual void continueFunction(const WebIDBKey&, const WebIDBKey& primaryKey, WebIDBCallbacks*) { BLINK_ASSERT_NOT_REACHED(); }
52 virtual void postSuccessHandlerCallback() { } // Only used in frontend. 44 virtual void postSuccessHandlerCallback() { } // Only used in frontend.
53 45
54 protected: 46 protected:
55 WebIDBCursor() { } 47 WebIDBCursor() { }
56 }; 48 };
57 49
58 } // namespace blink 50 } // namespace blink
59 51
60 #endif // WebIDBCursor_h 52 #endif // WebIDBCursor_h
OLDNEW
« no previous file with comments | « no previous file | public/platform/WebIDBDatabase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698