| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 virtual void commit(long long transactionId) = 0; | 56 virtual void commit(long long transactionId) = 0; |
| 57 | 57 |
| 58 virtual void createIndex(long long transactionId, long long objectStoreId, l
ong long indexId, const WebString& name, const WebIDBKeyPath&, bool unique, bool
multiEntry) = 0; | 58 virtual void createIndex(long long transactionId, long long objectStoreId, l
ong long indexId, const WebString& name, const WebIDBKeyPath&, bool unique, bool
multiEntry) = 0; |
| 59 virtual void deleteIndex(long long transactionId, long long objectStoreId, l
ong long indexId) = 0; | 59 virtual void deleteIndex(long long transactionId, long long objectStoreId, l
ong long indexId) = 0; |
| 60 | 60 |
| 61 static const long long minimumIndexId = 30; | 61 static const long long minimumIndexId = 30; |
| 62 | 62 |
| 63 typedef WebVector<WebIDBKey> WebIndexKeys; | 63 typedef WebVector<WebIDBKey> WebIndexKeys; |
| 64 | 64 |
| 65 virtual void observe(IDBObserver*, long long) = 0; | 65 virtual void observe(IDBObserver*, long long) = 0; |
| 66 virtual void unobserve(IDBObserver*) = 0; |
| 66 virtual void get(long long transactionId, long long objectStoreId, long long
indexId, const WebIDBKeyRange&, bool keyOnly, WebIDBCallbacks*) = 0; | 67 virtual void get(long long transactionId, long long objectStoreId, long long
indexId, const WebIDBKeyRange&, bool keyOnly, WebIDBCallbacks*) = 0; |
| 67 virtual void getAll(long long transactionId, long long objectStoreId, long l
ong indexId, const WebIDBKeyRange&, long long maxCount, bool keyOnly, WebIDBCall
backs*) = 0; | 68 virtual void getAll(long long transactionId, long long objectStoreId, long l
ong indexId, const WebIDBKeyRange&, long long maxCount, bool keyOnly, WebIDBCall
backs*) = 0; |
| 68 virtual void put(long long transactionId, long long objectStoreId, const Web
Data& value, const WebVector<WebBlobInfo>&, const WebIDBKey&, WebIDBPutMode, Web
IDBCallbacks*, const WebVector<long long>& indexIds, const WebVector<WebIndexKey
s>&) = 0; | 69 virtual void put(long long transactionId, long long objectStoreId, const Web
Data& value, const WebVector<WebBlobInfo>&, const WebIDBKey&, WebIDBPutMode, Web
IDBCallbacks*, const WebVector<long long>& indexIds, const WebVector<WebIndexKey
s>&) = 0; |
| 69 virtual void setIndexKeys(long long transactionId, long long objectStoreId,
const WebIDBKey&, const WebVector<long long>& indexIds, const WebVector<WebIndex
Keys>&) = 0; | 70 virtual void setIndexKeys(long long transactionId, long long objectStoreId,
const WebIDBKey&, const WebVector<long long>& indexIds, const WebVector<WebIndex
Keys>&) = 0; |
| 70 virtual void setIndexesReady(long long transactionId, long long objectStoreI
d, const WebVector<long long>& indexIds) = 0; | 71 virtual void setIndexesReady(long long transactionId, long long objectStoreI
d, const WebVector<long long>& indexIds) = 0; |
| 71 virtual void openCursor(long long transactionId, long long objectStoreId, lo
ng long indexId, const WebIDBKeyRange&, WebIDBCursorDirection, bool keyOnly, Web
IDBTaskType, WebIDBCallbacks*) = 0; | 72 virtual void openCursor(long long transactionId, long long objectStoreId, lo
ng long indexId, const WebIDBKeyRange&, WebIDBCursorDirection, bool keyOnly, Web
IDBTaskType, WebIDBCallbacks*) = 0; |
| 72 virtual void count(long long transactionId, long long objectStoreId, long lo
ng indexId, const WebIDBKeyRange&, WebIDBCallbacks*) = 0; | 73 virtual void count(long long transactionId, long long objectStoreId, long lo
ng indexId, const WebIDBKeyRange&, WebIDBCallbacks*) = 0; |
| 73 virtual void deleteRange(long long transactionId, long long objectStoreId, c
onst WebIDBKeyRange&, WebIDBCallbacks*) = 0; | 74 virtual void deleteRange(long long transactionId, long long objectStoreId, c
onst WebIDBKeyRange&, WebIDBCallbacks*) = 0; |
| 74 virtual void clear(long long transactionId, long long objectStoreId, WebIDBC
allbacks*) = 0; | 75 virtual void clear(long long transactionId, long long objectStoreId, WebIDBC
allbacks*) = 0; |
| 75 virtual void ackReceivedBlobs(const WebVector<WebString>& uuids) = 0; | 76 virtual void ackReceivedBlobs(const WebVector<WebString>& uuids) = 0; |
| 76 | 77 |
| 77 protected: | 78 protected: |
| 78 WebIDBDatabase() { } | 79 WebIDBDatabase() { } |
| 79 }; | 80 }; |
| 80 | 81 |
| 81 } // namespace blink | 82 } // namespace blink |
| 82 | 83 |
| 83 #endif // WebIDBDatabase_h | 84 #endif // WebIDBDatabase_h |
| OLD | NEW |