| 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 <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 597 DCHECK_EQ(kNoTransaction, host_transaction_id_); | 597 DCHECK_EQ(kNoTransaction, host_transaction_id_); |
| 598 DCHECK_EQ(kNoDatabase, ipc_database_id_); | 598 DCHECK_EQ(kNoDatabase, ipc_database_id_); |
| 599 DCHECK_EQ(kNoDatabaseCallbacks, ipc_database_callbacks_id_); | 599 DCHECK_EQ(kNoDatabaseCallbacks, ipc_database_callbacks_id_); |
| 600 DCHECK_EQ(blink::WebIDBDataLossNone, data_loss_); | 600 DCHECK_EQ(blink::WebIDBDataLossNone, data_loss_); |
| 601 | 601 |
| 602 dispatcher_host_->Send(new IndexedDBMsg_CallbacksSuccessUndefined( | 602 dispatcher_host_->Send(new IndexedDBMsg_CallbacksSuccessUndefined( |
| 603 ipc_thread_id_, ipc_callbacks_id_)); | 603 ipc_thread_id_, ipc_callbacks_id_)); |
| 604 dispatcher_host_ = NULL; | 604 dispatcher_host_ = NULL; |
| 605 } | 605 } |
| 606 | 606 |
| 607 bool IndexedDBCallbacks::IsValid() const { |
| 608 DCHECK(dispatcher_host_.get()); |
| 609 |
| 610 return dispatcher_host_->IsOpen(); |
| 611 } |
| 612 |
| 607 void IndexedDBCallbacks::SetConnectionOpenStartTime( | 613 void IndexedDBCallbacks::SetConnectionOpenStartTime( |
| 608 const base::TimeTicks& start_time) { | 614 const base::TimeTicks& start_time) { |
| 609 connection_open_start_time_ = start_time; | 615 connection_open_start_time_ = start_time; |
| 610 } | 616 } |
| 611 | 617 |
| 612 } // namespace content | 618 } // namespace content |
| OLD | NEW |