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

Side by Side Diff: content/browser/indexed_db/indexed_db.h

Issue 320833002: [IndexedDB] Use consistent enums on both sides of IPC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase patch. 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 | content/browser/indexed_db/indexed_db_backing_store.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 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_H_ 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_H_
6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_H_ 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_H_
7 7
8 namespace content { 8 namespace content {
9 9
10 namespace indexed_db { 10 namespace indexed_db {
11 11
12 enum TransactionMode {
13 TRANSACTION_READ_ONLY = 0,
14 TRANSACTION_READ_WRITE = 1,
15 TRANSACTION_VERSION_CHANGE = 2
16 };
17
18 enum CursorDirection {
19 CURSOR_NEXT = 0,
20 CURSOR_NEXT_NO_DUPLICATE = 1,
21 CURSOR_PREV = 2,
22 CURSOR_PREV_NO_DUPLICATE = 3,
23 };
24
25 enum CursorType { 12 enum CursorType {
26 CURSOR_KEY_AND_VALUE = 0, 13 CURSOR_KEY_AND_VALUE = 0,
27 CURSOR_KEY_ONLY 14 CURSOR_KEY_ONLY
28 }; 15 };
29 16
30 } // namespace indexed_db 17 } // namespace indexed_db
31 18
32 } // namespace content 19 } // namespace content
33 20
34 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_H_ 21 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/indexed_db/indexed_db_backing_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698