OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_RENDERER_INDEXED_DB_DISPATCHER_H_ | 5 #ifndef CHROME_RENDERER_INDEXED_DB_DISPATCHER_H_ |
6 #define CHROME_RENDERER_INDEXED_DB_DISPATCHER_H_ | 6 #define CHROME_RENDERER_INDEXED_DB_DISPATCHER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/id_map.h" | 9 #include "base/id_map.h" |
10 #include "base/nullable_string16.h" | 10 #include "base/nullable_string16.h" |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 void OnSuccessNull(int32 response_id); | 137 void OnSuccessNull(int32 response_id); |
138 void OnSuccessIDBDatabase(int32 response_id, int32 object_id); | 138 void OnSuccessIDBDatabase(int32 response_id, int32 object_id); |
139 void OnSuccessIndexedDBKey(int32 response_id, const IndexedDBKey& key); | 139 void OnSuccessIndexedDBKey(int32 response_id, const IndexedDBKey& key); |
140 void OnSuccessIDBObjectStore(int32 response_id, int32 object_id); | 140 void OnSuccessIDBObjectStore(int32 response_id, int32 object_id); |
141 void OnSuccessIDBTransaction(int32 response_id, int32 object_id); | 141 void OnSuccessIDBTransaction(int32 response_id, int32 object_id); |
142 void OnSuccessIDBIndex(int32 response_id, int32 object_id); | 142 void OnSuccessIDBIndex(int32 response_id, int32 object_id); |
143 void OnSuccessOpenCursor(int32 response_id, int32 object_id); | 143 void OnSuccessOpenCursor(int32 response_id, int32 object_id); |
144 void OnSuccessSerializedScriptValue(int32 response_id, | 144 void OnSuccessSerializedScriptValue(int32 response_id, |
145 const SerializedScriptValue& value); | 145 const SerializedScriptValue& value); |
146 void OnError(int32 response_id, int code, const string16& message); | 146 void OnError(int32 response_id, int code, const string16& message); |
| 147 void OnBlocked(int32 response_id); |
147 void OnAbort(int32 transaction_id); | 148 void OnAbort(int32 transaction_id); |
148 void OnComplete(int32 transaction_id); | 149 void OnComplete(int32 transaction_id); |
149 void OnTimeout(int32 transaction_id); | 150 void OnTimeout(int32 transaction_id); |
150 | 151 |
151 // Careful! WebIDBCallbacks wraps non-threadsafe data types. It must be | 152 // Careful! WebIDBCallbacks wraps non-threadsafe data types. It must be |
152 // destroyed and used on the same thread it was created on. | 153 // destroyed and used on the same thread it was created on. |
153 IDMap<WebKit::WebIDBCallbacks, IDMapOwnPointer> pending_callbacks_; | 154 IDMap<WebKit::WebIDBCallbacks, IDMapOwnPointer> pending_callbacks_; |
154 IDMap<WebKit::WebIDBTransactionCallbacks, IDMapOwnPointer> | 155 IDMap<WebKit::WebIDBTransactionCallbacks, IDMapOwnPointer> |
155 pending_transaction_callbacks_; | 156 pending_transaction_callbacks_; |
156 | 157 |
157 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); | 158 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); |
158 }; | 159 }; |
159 | 160 |
160 #endif // CHROME_RENDERER_INDEXED_DB_DISPATCHER_H_ | 161 #endif // CHROME_RENDERER_INDEXED_DB_DISPATCHER_H_ |
OLD | NEW |