| OLD | NEW |
| 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_ |
| OLD | NEW |