Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: Source/modules/indexeddb/IDBDatabaseBackendInterface.h

Issue 18590006: Blob support for IDB [Blink] (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Merge fixes [builds, untested] Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 15 matching lines...) Expand all
26 #ifndef IDBDatabaseBackendInterface_h 26 #ifndef IDBDatabaseBackendInterface_h
27 #define IDBDatabaseBackendInterface_h 27 #define IDBDatabaseBackendInterface_h
28 28
29 #include "modules/indexeddb/IndexedDB.h" 29 #include "modules/indexeddb/IndexedDB.h"
30 #include "wtf/PassRefPtr.h" 30 #include "wtf/PassRefPtr.h"
31 #include "wtf/RefCounted.h" 31 #include "wtf/RefCounted.h"
32 #include "wtf/text/WTFString.h" 32 #include "wtf/text/WTFString.h"
33 33
34 namespace WebCore { 34 namespace WebCore {
35 35
36 class BlobInfo;
36 class IDBCallbacks; 37 class IDBCallbacks;
37 class IDBDatabaseCallbacks; 38 class IDBDatabaseCallbacks;
38 class IDBKey; 39 class IDBKey;
39 class IDBKeyPath; 40 class IDBKeyPath;
40 class IDBKeyRange; 41 class IDBKeyRange;
41 struct IDBDatabaseMetadata; 42 struct IDBDatabaseMetadata;
42 class SharedBuffer; 43 class SharedBuffer;
43 44
44 // This is implemented by IDBDatabaseBackendImpl and optionally others (in order to proxy 45 // This is implemented by IDBDatabaseBackendImpl and optionally others (in order to proxy
45 // calls across process barriers). All calls to these classes should be non-bloc king and 46 // calls across process barriers). All calls to these classes should be non-bloc king and
(...skipping 24 matching lines...) Expand all
70 AddOnly, 71 AddOnly,
71 CursorUpdate 72 CursorUpdate
72 }; 73 };
73 74
74 static const int64_t MinimumIndexId = 30; 75 static const int64_t MinimumIndexId = 30;
75 76
76 typedef Vector<RefPtr<IDBKey> > IndexKeys; 77 typedef Vector<RefPtr<IDBKey> > IndexKeys;
77 78
78 virtual void get(int64_t transactionId, int64_t objectStoreId, int64_t index Id, PassRefPtr<IDBKeyRange>, bool keyOnly, PassRefPtr<IDBCallbacks>) = 0; 79 virtual void get(int64_t transactionId, int64_t objectStoreId, int64_t index Id, PassRefPtr<IDBKeyRange>, bool keyOnly, PassRefPtr<IDBCallbacks>) = 0;
79 // Note that 'value' may be consumed/adopted by this call. 80 // Note that 'value' may be consumed/adopted by this call.
80 virtual void put(int64_t transactionId, int64_t objectStoreId, PassRefPtr<Sh aredBuffer> value, PassRefPtr<IDBKey>, PutMode, PassRefPtr<IDBCallbacks>, const Vector<int64_t>& indexIds, const Vector<IndexKeys>&) = 0; 81 virtual void put(int64_t transactionId, int64_t objectStoreId, PassRefPtr<Sh aredBuffer> value, const Vector<BlobInfo>*, PassRefPtr<IDBKey>, PutMode, PassRef Ptr<IDBCallbacks>, const Vector<int64_t>& indexIds, const Vector<IndexKeys>&) = 0;
81 virtual void setIndexKeys(int64_t transactionId, int64_t objectStoreId, Pass RefPtr<IDBKey> prpPrimaryKey, const Vector<int64_t>& indexIds, const Vector<Inde xKeys>&) = 0; 82 virtual void setIndexKeys(int64_t transactionId, int64_t objectStoreId, Pass RefPtr<IDBKey> prpPrimaryKey, const Vector<int64_t>& indexIds, const Vector<Inde xKeys>&) = 0;
82 virtual void setIndexesReady(int64_t transactionId, int64_t objectStoreId, c onst Vector<int64_t>& indexIds) = 0; 83 virtual void setIndexesReady(int64_t transactionId, int64_t objectStoreId, c onst Vector<int64_t>& indexIds) = 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; 84 virtual void openCursor(int64_t transactionId, int64_t objectStoreId, int64_ t indexId, PassRefPtr<IDBKeyRange>, IndexedDB::CursorDirection, bool keyOnly, Ta skType, PassRefPtr<IDBCallbacks>) = 0;
84 virtual void count(int64_t transactionId, int64_t objectStoreId, int64_t ind exId, PassRefPtr<IDBKeyRange>, PassRefPtr<IDBCallbacks>) = 0; 85 virtual void count(int64_t transactionId, int64_t objectStoreId, int64_t ind exId, PassRefPtr<IDBKeyRange>, PassRefPtr<IDBCallbacks>) = 0;
85 virtual void deleteRange(int64_t transactionId, int64_t objectStoreId, PassR efPtr<IDBKeyRange>, PassRefPtr<IDBCallbacks>) = 0; 86 virtual void deleteRange(int64_t transactionId, int64_t objectStoreId, PassR efPtr<IDBKeyRange>, PassRefPtr<IDBCallbacks>) = 0;
86 virtual void clear(int64_t transactionId, int64_t objectStoreId, PassRefPtr< IDBCallbacks>) = 0; 87 virtual void clear(int64_t transactionId, int64_t objectStoreId, PassRefPtr< IDBCallbacks>) = 0;
87 }; 88 };
88 89
89 } // namespace WebCore 90 } // namespace WebCore
90 91
91 #endif // IDBDatabaseBackendInterface_h 92 #endif // IDBDatabaseBackendInterface_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698