| 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 23 matching lines...) Expand all Loading... |
| 34 namespace WebCore { | 34 namespace WebCore { |
| 35 | 35 |
| 36 class IDBCallbacks; | 36 class IDBCallbacks; |
| 37 class IDBDatabaseCallbacks; | 37 class IDBDatabaseCallbacks; |
| 38 class IDBKey; | 38 class IDBKey; |
| 39 class IDBKeyPath; | 39 class IDBKeyPath; |
| 40 class IDBKeyRange; | 40 class IDBKeyRange; |
| 41 struct IDBDatabaseMetadata; | 41 struct IDBDatabaseMetadata; |
| 42 class SharedBuffer; | 42 class SharedBuffer; |
| 43 | 43 |
| 44 typedef int ExceptionCode; | |
| 45 | |
| 46 // This is implemented by IDBDatabaseBackendImpl and optionally others (in order
to proxy | 44 // This is implemented by IDBDatabaseBackendImpl and optionally others (in order
to proxy |
| 47 // calls across process barriers). All calls to these classes should be non-bloc
king and | 45 // calls across process barriers). All calls to these classes should be non-bloc
king and |
| 48 // trigger work on a background thread if necessary. | 46 // trigger work on a background thread if necessary. |
| 49 class IDBDatabaseBackendInterface : public RefCounted<IDBDatabaseBackendInterfac
e> { | 47 class IDBDatabaseBackendInterface : public RefCounted<IDBDatabaseBackendInterfac
e> { |
| 50 public: | 48 public: |
| 51 virtual ~IDBDatabaseBackendInterface() { } | 49 virtual ~IDBDatabaseBackendInterface() { } |
| 52 | 50 |
| 53 virtual void createObjectStore(int64_t transactionId, int64_t objectStoreId,
const String& name, const IDBKeyPath&, bool autoIncrement) = 0; | 51 virtual void createObjectStore(int64_t transactionId, int64_t objectStoreId,
const String& name, const IDBKeyPath&, bool autoIncrement) = 0; |
| 54 virtual void deleteObjectStore(int64_t transactionId, int64_t objectStoreId)
= 0; | 52 virtual void deleteObjectStore(int64_t transactionId, int64_t objectStoreId)
= 0; |
| 55 virtual void createTransaction(int64_t transactionId, PassRefPtr<IDBDatabase
Callbacks>, const Vector<int64_t>& objectStoreIds, unsigned short mode) = 0; | 53 virtual void createTransaction(int64_t transactionId, PassRefPtr<IDBDatabase
Callbacks>, const Vector<int64_t>& objectStoreIds, unsigned short mode) = 0; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 84 virtual void setIndexesReady(int64_t transactionId, int64_t objectStoreId, c
onst Vector<int64_t>& indexIds) = 0; | 82 virtual void setIndexesReady(int64_t transactionId, int64_t objectStoreId, c
onst Vector<int64_t>& indexIds) = 0; |
| 85 virtual void openCursor(int64_t transactionId, int64_t objectStoreId, int64_
t indexId, PassRefPtr<IDBKeyRange>, IndexedDB::CursorDirection, bool keyOnly, Ta
skType, PassRefPtr<IDBCallbacks>) = 0; | 83 virtual void openCursor(int64_t transactionId, int64_t objectStoreId, int64_
t indexId, PassRefPtr<IDBKeyRange>, IndexedDB::CursorDirection, bool keyOnly, Ta
skType, PassRefPtr<IDBCallbacks>) = 0; |
| 86 virtual void count(int64_t transactionId, int64_t objectStoreId, int64_t ind
exId, PassRefPtr<IDBKeyRange>, PassRefPtr<IDBCallbacks>) = 0; | 84 virtual void count(int64_t transactionId, int64_t objectStoreId, int64_t ind
exId, PassRefPtr<IDBKeyRange>, PassRefPtr<IDBCallbacks>) = 0; |
| 87 virtual void deleteRange(int64_t transactionId, int64_t objectStoreId, PassR
efPtr<IDBKeyRange>, PassRefPtr<IDBCallbacks>) = 0; | 85 virtual void deleteRange(int64_t transactionId, int64_t objectStoreId, PassR
efPtr<IDBKeyRange>, PassRefPtr<IDBCallbacks>) = 0; |
| 88 virtual void clear(int64_t transactionId, int64_t objectStoreId, PassRefPtr<
IDBCallbacks>) = 0; | 86 virtual void clear(int64_t transactionId, int64_t objectStoreId, PassRefPtr<
IDBCallbacks>) = 0; |
| 89 }; | 87 }; |
| 90 | 88 |
| 91 } // namespace WebCore | 89 } // namespace WebCore |
| 92 | 90 |
| 93 #endif // IDBDatabaseBackendInterface_h | 91 #endif // IDBDatabaseBackendInterface_h |
| OLD | NEW |