indexed_db.h revision 868fa2fe829687343ffae624259930155e16dbd8
1868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// Copyright (c) 2013 The Chromium Authors. All rights reserved.
2868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be
3868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// found in the LICENSE file.
4868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
5868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)#ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_H_
6868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)#define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_H_
7868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
8868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)namespace content {
9868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
10868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)namespace indexed_db {
11868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
12868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)enum TransactionMode {
13868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)  TRANSACTION_READ_ONLY = 0,
14868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)  TRANSACTION_READ_WRITE = 1,
15868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)  TRANSACTION_VERSION_CHANGE = 2
16868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)};
17868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
18868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)enum CursorDirection {
19868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)  CURSOR_NEXT = 0,
20868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)  CURSOR_NEXT_NO_DUPLICATE = 1,
21868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)  CURSOR_PREV = 2,
22868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)  CURSOR_PREV_NO_DUPLICATE = 3,
23868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)};
24868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
25868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)enum CursorType {
26868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)  CURSOR_KEY_AND_VALUE = 0,
27868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)  CURSOR_KEY_ONLY
28868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)};
29868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
30868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)}  // namespace indexed_db
31868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
32868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)}  // namespace content
33868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
34868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)#endif  // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_H_
35