| 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_context_impl.h" | 5 #include "content/browser/indexed_db/indexed_db_context_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 break; | 229 break; |
| 230 case IndexedDBTransaction::COMMITTING: | 230 case IndexedDBTransaction::COMMITTING: |
| 231 transaction_info->SetString("status", "committing"); | 231 transaction_info->SetString("status", "committing"); |
| 232 break; | 232 break; |
| 233 case IndexedDBTransaction::FINISHED: | 233 case IndexedDBTransaction::FINISHED: |
| 234 transaction_info->SetString("status", "finished"); | 234 transaction_info->SetString("status", "finished"); |
| 235 break; | 235 break; |
| 236 } | 236 } |
| 237 | 237 |
| 238 transaction_info->SetDouble( | 238 transaction_info->SetDouble( |
| 239 "pid", | 239 "pid", transaction->connection()->child_process_id()); |
| 240 IndexedDBDispatcherHost::TransactionIdToProcessId( | 240 transaction_info->SetDouble("tid", transaction->id()); |
| 241 transaction->id())); | |
| 242 transaction_info->SetDouble( | |
| 243 "tid", | |
| 244 IndexedDBDispatcherHost::TransactionIdToRendererTransactionId( | |
| 245 transaction->id())); | |
| 246 transaction_info->SetDouble( | 241 transaction_info->SetDouble( |
| 247 "age", | 242 "age", |
| 248 (base::Time::Now() - transaction->diagnostics().creation_time) | 243 (base::Time::Now() - transaction->diagnostics().creation_time) |
| 249 .InMillisecondsF()); | 244 .InMillisecondsF()); |
| 250 transaction_info->SetDouble( | 245 transaction_info->SetDouble( |
| 251 "runtime", | 246 "runtime", |
| 252 (base::Time::Now() - transaction->diagnostics().start_time) | 247 (base::Time::Now() - transaction->diagnostics().start_time) |
| 253 .InMillisecondsF()); | 248 .InMillisecondsF()); |
| 254 transaction_info->SetDouble( | 249 transaction_info->SetDouble( |
| 255 "tasks_scheduled", transaction->diagnostics().tasks_scheduled); | 250 "tasks_scheduled", transaction->diagnostics().tasks_scheduled); |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 567 void IndexedDBContextImpl::ResetCaches() { | 562 void IndexedDBContextImpl::ResetCaches() { |
| 568 origin_set_.reset(); | 563 origin_set_.reset(); |
| 569 origin_size_map_.clear(); | 564 origin_size_map_.clear(); |
| 570 } | 565 } |
| 571 | 566 |
| 572 base::SequencedTaskRunner* IndexedDBContextImpl::TaskRunner() const { | 567 base::SequencedTaskRunner* IndexedDBContextImpl::TaskRunner() const { |
| 573 return task_runner_.get(); | 568 return task_runner_.get(); |
| 574 } | 569 } |
| 575 | 570 |
| 576 } // namespace content | 571 } // namespace content |
| OLD | NEW |