| OLD | NEW |
| 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/WebIDBDatabase.h" | 10 #include "third_party/WebKit/public/platform/WebIDBDatabase.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 class WebBlobInfo; |
| 13 class WebIDBCallbacks; | 14 class WebIDBCallbacks; |
| 14 class WebIDBDatabaseCallbacks; | 15 class WebIDBDatabaseCallbacks; |
| 15 class WebString; | 16 class WebString; |
| 16 } | 17 } |
| 17 | 18 |
| 18 namespace content { | 19 namespace content { |
| 19 class ThreadSafeSender; | 20 class ThreadSafeSender; |
| 20 | 21 |
| 21 class RendererWebIDBDatabaseImpl : public blink::WebIDBDatabase { | 22 class RendererWebIDBDatabaseImpl : public blink::WebIDBDatabase { |
| 22 public: | 23 public: |
| (...skipping 20 matching lines...) Expand all Loading... |
| 43 virtual void close(); | 44 virtual void close(); |
| 44 virtual void get(long long transactionId, | 45 virtual void get(long long transactionId, |
| 45 long long objectStoreId, | 46 long long objectStoreId, |
| 46 long long indexId, | 47 long long indexId, |
| 47 const blink::WebIDBKeyRange&, | 48 const blink::WebIDBKeyRange&, |
| 48 bool keyOnly, | 49 bool keyOnly, |
| 49 blink::WebIDBCallbacks*); | 50 blink::WebIDBCallbacks*); |
| 50 virtual void put(long long transactionId, | 51 virtual void put(long long transactionId, |
| 51 long long objectStoreId, | 52 long long objectStoreId, |
| 52 const blink::WebData& value, | 53 const blink::WebData& value, |
| 54 const blink::WebVector<blink::WebBlobInfo>& webBlobInfo, |
| 53 const blink::WebIDBKey&, | 55 const blink::WebIDBKey&, |
| 54 PutMode, | 56 PutMode, |
| 55 blink::WebIDBCallbacks*, | 57 blink::WebIDBCallbacks*, |
| 56 const blink::WebVector<long long>& indexIds, | 58 const blink::WebVector<long long>& indexIds, |
| 57 const blink::WebVector<WebIndexKeys>&); | 59 const blink::WebVector<WebIndexKeys>&); |
| 58 virtual void setIndexKeys(long long transactionId, | 60 virtual void setIndexKeys(long long transactionId, |
| 59 long long objectStoreId, | 61 long long objectStoreId, |
| 60 const blink::WebIDBKey&, | 62 const blink::WebIDBKey&, |
| 61 const blink::WebVector<long long>& indexIds, | 63 const blink::WebVector<long long>& indexIds, |
| 62 const blink::WebVector<WebIndexKeys>&); | 64 const blink::WebVector<WebIndexKeys>&); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 88 long long indexId, | 90 long long indexId, |
| 89 const blink::WebString& name, | 91 const blink::WebString& name, |
| 90 const blink::WebIDBKeyPath&, | 92 const blink::WebIDBKeyPath&, |
| 91 bool unique, | 93 bool unique, |
| 92 bool multiEntry); | 94 bool multiEntry); |
| 93 virtual void deleteIndex(long long transactionId, long | 95 virtual void deleteIndex(long long transactionId, long |
| 94 long objectStoreId, | 96 long objectStoreId, |
| 95 long long indexId); | 97 long long indexId); |
| 96 virtual void abort(long long transaction_id); | 98 virtual void abort(long long transaction_id); |
| 97 virtual void commit(long long transaction_id); | 99 virtual void commit(long long transaction_id); |
| 100 virtual void ackReceivedBlobs( |
| 101 const blink::WebVector<blink::WebString>& uuids); |
| 98 | 102 |
| 99 private: | 103 private: |
| 100 int32 ipc_database_id_; | 104 int32 ipc_database_id_; |
| 101 int32 ipc_database_callbacks_id_; | 105 int32 ipc_database_callbacks_id_; |
| 102 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 106 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
| 103 }; | 107 }; |
| 104 | 108 |
| 105 } // namespace content | 109 } // namespace content |
| 106 | 110 |
| 107 #endif // CONTENT_CHILD_INDEXED_DB_PROXY_WEBIDBDATABASE_IMPL_H_ | 111 #endif // CONTENT_CHILD_INDEXED_DB_PROXY_WEBIDBDATABASE_IMPL_H_ |
| OLD | NEW |