| 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 19 matching lines...) Expand all Loading... |
| 30 #include "public/platform/WebCommon.h" | 30 #include "public/platform/WebCommon.h" |
| 31 #include "public/platform/modules/indexeddb/WebIDBCursor.h" | 31 #include "public/platform/modules/indexeddb/WebIDBCursor.h" |
| 32 #include "public/platform/modules/indexeddb/WebIDBMetadata.h" | 32 #include "public/platform/modules/indexeddb/WebIDBMetadata.h" |
| 33 #include "public/platform/modules/indexeddb/WebIDBObserver.h" | 33 #include "public/platform/modules/indexeddb/WebIDBObserver.h" |
| 34 #include "public/platform/modules/indexeddb/WebIDBTypes.h" | 34 #include "public/platform/modules/indexeddb/WebIDBTypes.h" |
| 35 | 35 |
| 36 namespace blink { | 36 namespace blink { |
| 37 | 37 |
| 38 class WebData; | 38 class WebData; |
| 39 class WebIDBCallbacks; | 39 class WebIDBCallbacks; |
| 40 class WebIDBDatabaseCallbacks; | |
| 41 class WebIDBKey; | 40 class WebIDBKey; |
| 42 class WebIDBKeyPath; | 41 class WebIDBKeyPath; |
| 43 class WebIDBKeyRange; | 42 class WebIDBKeyRange; |
| 44 class WebIDBObserver; | 43 class WebIDBObserver; |
| 45 | 44 |
| 46 class WebIDBDatabase { | 45 class WebIDBDatabase { |
| 47 public: | 46 public: |
| 48 virtual ~WebIDBDatabase() { } | 47 virtual ~WebIDBDatabase() { } |
| 49 | 48 |
| 50 virtual void createObjectStore(long long transactionId, long long objectStor
eId, const WebString& name, const WebIDBKeyPath&, bool autoIncrement) = 0; | 49 virtual void createObjectStore(long long transactionId, long long objectStor
eId, const WebString& name, const WebIDBKeyPath&, bool autoIncrement) = 0; |
| 51 virtual void deleteObjectStore(long long transactionId, long long objectStor
eId) = 0; | 50 virtual void deleteObjectStore(long long transactionId, long long objectStor
eId) = 0; |
| 52 virtual void createTransaction(long long id, WebIDBDatabaseCallbacks*, const
WebVector<long long>& scope, WebIDBTransactionMode) = 0; | 51 virtual void createTransaction(long long id, const WebVector<long long>& sco
pe, WebIDBTransactionMode) = 0; |
| 53 virtual void close() = 0; | 52 virtual void close() = 0; |
| 54 virtual void versionChangeIgnored() = 0; | 53 virtual void versionChangeIgnored() = 0; |
| 55 | 54 |
| 56 virtual void abort(long long transactionId) = 0; | 55 virtual void abort(long long transactionId) = 0; |
| 57 virtual void commit(long long transactionId) = 0; | 56 virtual void commit(long long transactionId) = 0; |
| 58 | 57 |
| 59 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; |
| 60 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; |
| 61 | 60 |
| 62 static const long long minimumIndexId = 30; | 61 static const long long minimumIndexId = 30; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 76 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; |
| 77 virtual void ackReceivedBlobs(const WebVector<WebString>& uuids) = 0; | 76 virtual void ackReceivedBlobs(const WebVector<WebString>& uuids) = 0; |
| 78 | 77 |
| 79 protected: | 78 protected: |
| 80 WebIDBDatabase() { } | 79 WebIDBDatabase() { } |
| 81 }; | 80 }; |
| 82 | 81 |
| 83 } // namespace blink | 82 } // namespace blink |
| 84 | 83 |
| 85 #endif // WebIDBDatabase_h | 84 #endif // WebIDBDatabase_h |
| OLD | NEW |