| 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 CONTENT_RENDERER_INDEXED_DB_DISPATCHER_H_ | 5 #ifndef CONTENT_RENDERER_INDEXED_DB_DISPATCHER_H_ |
| 6 #define CONTENT_RENDERER_INDEXED_DB_DISPATCHER_H_ | 6 #define CONTENT_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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 void OnSuccessIndexedDBKey(int32 response_id, const IndexedDBKey& key); | 152 void OnSuccessIndexedDBKey(int32 response_id, const IndexedDBKey& key); |
| 153 void OnSuccessIDBTransaction(int32 response_id, int32 object_id); | 153 void OnSuccessIDBTransaction(int32 response_id, int32 object_id); |
| 154 void OnSuccessIDBIndex(int32 response_id, int32 object_id); | 154 void OnSuccessIDBIndex(int32 response_id, int32 object_id); |
| 155 void OnSuccessOpenCursor(int32 response_id, int32 object_id); | 155 void OnSuccessOpenCursor(int32 response_id, int32 object_id); |
| 156 void OnSuccessSerializedScriptValue(int32 response_id, | 156 void OnSuccessSerializedScriptValue(int32 response_id, |
| 157 const SerializedScriptValue& value); | 157 const SerializedScriptValue& value); |
| 158 void OnError(int32 response_id, int code, const string16& message); | 158 void OnError(int32 response_id, int code, const string16& message); |
| 159 void OnBlocked(int32 response_id); | 159 void OnBlocked(int32 response_id); |
| 160 void OnAbort(int32 transaction_id); | 160 void OnAbort(int32 transaction_id); |
| 161 void OnComplete(int32 transaction_id); | 161 void OnComplete(int32 transaction_id); |
| 162 void OnTimeout(int32 transaction_id); | |
| 163 void OnVersionChange(int32 database_id, const string16& newVersion); | 162 void OnVersionChange(int32 database_id, const string16& newVersion); |
| 164 | 163 |
| 165 // Careful! WebIDBCallbacks wraps non-threadsafe data types. It must be | 164 // Careful! WebIDBCallbacks wraps non-threadsafe data types. It must be |
| 166 // destroyed and used on the same thread it was created on. | 165 // destroyed and used on the same thread it was created on. |
| 167 IDMap<WebKit::WebIDBCallbacks, IDMapOwnPointer> pending_callbacks_; | 166 IDMap<WebKit::WebIDBCallbacks, IDMapOwnPointer> pending_callbacks_; |
| 168 IDMap<WebKit::WebIDBTransactionCallbacks, IDMapOwnPointer> | 167 IDMap<WebKit::WebIDBTransactionCallbacks, IDMapOwnPointer> |
| 169 pending_transaction_callbacks_; | 168 pending_transaction_callbacks_; |
| 170 IDMap<WebKit::WebIDBDatabaseCallbacks, IDMapOwnPointer> | 169 IDMap<WebKit::WebIDBDatabaseCallbacks, IDMapOwnPointer> |
| 171 pending_database_callbacks_; | 170 pending_database_callbacks_; |
| 172 | 171 |
| 173 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); | 172 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); |
| 174 }; | 173 }; |
| 175 | 174 |
| 176 #endif // CONTENT_RENDERER_INDEXED_DB_DISPATCHER_H_ | 175 #endif // CONTENT_RENDERER_INDEXED_DB_DISPATCHER_H_ |
| OLD | NEW |