Revert 268405 "Make sure that ScratchBuffer::Allocate() always r..."
[chromium-blink-merge.git] / content / browser / indexed_db / indexed_db.h
blob3714d40af338b3651393cf12e711b886181ecb2d
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
3 // found in the LICENSE file.
5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_H_
6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_H_
8 namespace content {
10 namespace indexed_db {
12 enum TransactionMode {
13 TRANSACTION_READ_ONLY = 0,
14 TRANSACTION_READ_WRITE = 1,
15 TRANSACTION_VERSION_CHANGE = 2
18 enum CursorDirection {
19 CURSOR_NEXT = 0,
20 CURSOR_NEXT_NO_DUPLICATE = 1,
21 CURSOR_PREV = 2,
22 CURSOR_PREV_NO_DUPLICATE = 3,
25 enum CursorType {
26 CURSOR_KEY_AND_VALUE = 0,
27 CURSOR_KEY_ONLY
30 } // namespace indexed_db
32 } // namespace content
34 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_H_