Home | History | Annotate | Download | only in indexed_db
      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.
      4 
      5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_H_
      6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_H_
      7 
      8 namespace content {
      9 
     10 namespace indexed_db {
     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 {
     26   CURSOR_KEY_AND_VALUE = 0,
     27   CURSOR_KEY_ONLY
     28 };
     29 
     30 }  // namespace indexed_db
     31 
     32 }  // namespace content
     33 
     34 #endif  // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_H_
     35