OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "content/browser/indexed_db/indexed_db_callbacks.h" | 5 #include "content/browser/indexed_db/indexed_db_callbacks.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "content/browser/indexed_db/indexed_db_connection.h" | 9 #include "content/browser/indexed_db/indexed_db_connection.h" |
10 #include "content/browser/indexed_db/indexed_db_cursor.h" | 10 #include "content/browser/indexed_db/indexed_db_cursor.h" |
11 #include "content/browser/indexed_db/indexed_db_database_callbacks.h" | 11 #include "content/browser/indexed_db/indexed_db_database_callbacks.h" |
12 #include "content/browser/indexed_db/indexed_db_database_error.h" | 12 #include "content/browser/indexed_db/indexed_db_database_error.h" |
13 #include "content/browser/indexed_db/indexed_db_metadata.h" | 13 #include "content/browser/indexed_db/indexed_db_metadata.h" |
14 #include "content/common/indexed_db/indexed_db_messages.h" | 14 #include "content/common/indexed_db/indexed_db_messages.h" |
15 #include "webkit/browser/quota/quota_manager.h" | 15 #include "webkit/browser/quota/quota_manager.h" |
16 | 16 |
17 using WebKit::WebIDBCallbacks; | 17 using blink::WebIDBCallbacks; |
18 | 18 |
19 namespace content { | 19 namespace content { |
20 | 20 |
21 namespace { | 21 namespace { |
22 const int32 kNoCursor = -1; | 22 const int32 kNoCursor = -1; |
23 const int32 kNoDatabase = -1; | 23 const int32 kNoDatabase = -1; |
24 const int32 kNoDatabaseCallbacks = -1; | 24 const int32 kNoDatabaseCallbacks = -1; |
25 const int64 kNoTransaction = -1; | 25 const int64 kNoTransaction = -1; |
26 } | 26 } |
27 | 27 |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 DCHECK_EQ(kNoTransaction, host_transaction_id_); | 329 DCHECK_EQ(kNoTransaction, host_transaction_id_); |
330 DCHECK_EQ(kNoDatabase, ipc_database_id_); | 330 DCHECK_EQ(kNoDatabase, ipc_database_id_); |
331 DCHECK_EQ(kNoDatabaseCallbacks, ipc_database_callbacks_id_); | 331 DCHECK_EQ(kNoDatabaseCallbacks, ipc_database_callbacks_id_); |
332 | 332 |
333 dispatcher_host_->Send(new IndexedDBMsg_CallbacksSuccessUndefined( | 333 dispatcher_host_->Send(new IndexedDBMsg_CallbacksSuccessUndefined( |
334 ipc_thread_id_, ipc_callbacks_id_)); | 334 ipc_thread_id_, ipc_callbacks_id_)); |
335 dispatcher_host_ = NULL; | 335 dispatcher_host_ = NULL; |
336 } | 336 } |
337 | 337 |
338 } // namespace content | 338 } // namespace content |
OLD | NEW |