OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 }; | 106 }; |
107 | 107 |
108 virtual PassRefPtr<Cursor> openObjectStoreCursor(int64_t databaseId, int64_t
objectStoreId, const IDBKeyRange*, IDBCursor::Direction) = 0; | 108 virtual PassRefPtr<Cursor> openObjectStoreCursor(int64_t databaseId, int64_t
objectStoreId, const IDBKeyRange*, IDBCursor::Direction) = 0; |
109 virtual PassRefPtr<Cursor> openIndexKeyCursor(int64_t databaseId, int64_t ob
jectStoreId, int64_t indexId, const IDBKeyRange*, IDBCursor::Direction) = 0; | 109 virtual PassRefPtr<Cursor> openIndexKeyCursor(int64_t databaseId, int64_t ob
jectStoreId, int64_t indexId, const IDBKeyRange*, IDBCursor::Direction) = 0; |
110 virtual PassRefPtr<Cursor> openIndexCursor(int64_t databaseId, int64_t objec
tStoreId, int64_t indexId, const IDBKeyRange*, IDBCursor::Direction) = 0; | 110 virtual PassRefPtr<Cursor> openIndexCursor(int64_t databaseId, int64_t objec
tStoreId, int64_t indexId, const IDBKeyRange*, IDBCursor::Direction) = 0; |
111 | 111 |
112 class Transaction : public RefCounted<Transaction> { | 112 class Transaction : public RefCounted<Transaction> { |
113 public: | 113 public: |
114 virtual ~Transaction() { } | 114 virtual ~Transaction() { } |
115 virtual void begin() = 0; | 115 virtual void begin() = 0; |
116 virtual void commit() = 0; | 116 virtual bool commit() = 0; |
117 virtual void rollback() = 0; | 117 virtual void rollback() = 0; |
118 }; | 118 }; |
119 virtual PassRefPtr<Transaction> createTransaction() = 0; | 119 virtual PassRefPtr<Transaction> createTransaction() = 0; |
120 }; | 120 }; |
121 | 121 |
122 } // namespace WebCore | 122 } // namespace WebCore |
123 | 123 |
124 #endif | 124 #endif |
125 | 125 |
126 #endif // IDBBackingStore_h | 126 #endif // IDBBackingStore_h |
OLD | NEW |