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

Side by Side Diff: content/child/indexed_db/webidbdatabase_impl.h

Issue 229483003: WebBlobInfo plumbing for WebIDBDatabaseImpl::put. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rolled in Josh's feedback. Created 6 years, 8 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 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_CHILD_INDEXED_DB_PROXY_WEBIDBDATABASE_IMPL_H_ 5 #ifndef CONTENT_CHILD_INDEXED_DB_PROXY_WEBIDBDATABASE_IMPL_H_
6 #define CONTENT_CHILD_INDEXED_DB_PROXY_WEBIDBDATABASE_IMPL_H_ 6 #define CONTENT_CHILD_INDEXED_DB_PROXY_WEBIDBDATABASE_IMPL_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "third_party/WebKit/public/platform/WebIDBCursor.h" 10 #include "third_party/WebKit/public/platform/WebIDBCursor.h"
11 #include "third_party/WebKit/public/platform/WebIDBDatabase.h" 11 #include "third_party/WebKit/public/platform/WebIDBDatabase.h"
12 12
13 namespace blink { 13 namespace blink {
14 class WebBlobInfo;
14 class WebIDBCallbacks; 15 class WebIDBCallbacks;
15 class WebIDBDatabaseCallbacks; 16 class WebIDBDatabaseCallbacks;
16 class WebString; 17 class WebString;
17 } 18 }
18 19
19 namespace content { 20 namespace content {
20 class ThreadSafeSender; 21 class ThreadSafeSender;
21 22
22 class WebIDBDatabaseImpl : public blink::WebIDBDatabase { 23 class WebIDBDatabaseImpl : public blink::WebIDBDatabase {
23 public: 24 public:
(...skipping 14 matching lines...) Expand all
38 blink::WebIDBDatabaseCallbacks* callbacks, 39 blink::WebIDBDatabaseCallbacks* callbacks,
39 const blink::WebVector<long long>& scope, 40 const blink::WebVector<long long>& scope,
40 blink::WebIDBDatabase::TransactionMode mode); 41 blink::WebIDBDatabase::TransactionMode mode);
41 virtual void close(); 42 virtual void close();
42 virtual void get(long long transactionId, 43 virtual void get(long long transactionId,
43 long long objectStoreId, 44 long long objectStoreId,
44 long long indexId, 45 long long indexId,
45 const blink::WebIDBKeyRange&, 46 const blink::WebIDBKeyRange&,
46 bool keyOnly, 47 bool keyOnly,
47 blink::WebIDBCallbacks*); 48 blink::WebIDBCallbacks*);
49 // TODO(ericu): Remove this once it's obsolete. It's only here for the
50 // three-sided-patch dance.
48 virtual void put(long long transactionId, 51 virtual void put(long long transactionId,
49 long long objectStoreId, 52 long long objectStoreId,
50 const blink::WebData& value, 53 const blink::WebData& value,
51 const blink::WebIDBKey&, 54 const blink::WebIDBKey&,
52 PutMode, 55 PutMode,
53 blink::WebIDBCallbacks*, 56 blink::WebIDBCallbacks*,
54 const blink::WebVector<long long>& indexIds, 57 const blink::WebVector<long long>& indexIds,
55 const blink::WebVector<WebIndexKeys>&); 58 const blink::WebVector<WebIndexKeys>&);
59 virtual void put(long long transactionId,
60 long long objectStoreId,
61 const blink::WebData& value,
62 const blink::WebVector<blink::WebBlobInfo>& webBlobInfo,
63 const blink::WebIDBKey&,
64 PutMode,
65 blink::WebIDBCallbacks*,
66 const blink::WebVector<long long>& indexIds,
67 const blink::WebVector<WebIndexKeys>&);
56 virtual void setIndexKeys(long long transactionId, 68 virtual void setIndexKeys(long long transactionId,
57 long long objectStoreId, 69 long long objectStoreId,
58 const blink::WebIDBKey&, 70 const blink::WebIDBKey&,
59 const blink::WebVector<long long>& indexIds, 71 const blink::WebVector<long long>& indexIds,
60 const blink::WebVector<WebIndexKeys>&); 72 const blink::WebVector<WebIndexKeys>&);
61 virtual void setIndexesReady(long long transactionId, 73 virtual void setIndexesReady(long long transactionId,
62 long long objectStoreId, 74 long long objectStoreId,
63 const blink::WebVector<long long>& indexIds); 75 const blink::WebVector<long long>& indexIds);
64 virtual void openCursor(long long transactionId, 76 virtual void openCursor(long long transactionId,
65 long long objectStoreId, 77 long long objectStoreId,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 110
99 private: 111 private:
100 int32 ipc_database_id_; 112 int32 ipc_database_id_;
101 int32 ipc_database_callbacks_id_; 113 int32 ipc_database_callbacks_id_;
102 scoped_refptr<ThreadSafeSender> thread_safe_sender_; 114 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
103 }; 115 };
104 116
105 } // namespace content 117 } // namespace content
106 118
107 #endif // CONTENT_CHILD_INDEXED_DB_PROXY_WEBIDBDATABASE_IMPL_H_ 119 #endif // CONTENT_CHILD_INDEXED_DB_PROXY_WEBIDBDATABASE_IMPL_H_
OLDNEW
« no previous file with comments | « content/child/indexed_db/indexed_db_dispatcher_unittest.cc ('k') | content/child/indexed_db/webidbdatabase_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698