OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_transaction.h" | 5 #include "content/browser/indexed_db/indexed_db_transaction.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
11 #include "base/single_thread_task_runner.h" | 11 #include "base/single_thread_task_runner.h" |
12 #include "base/stl_util.h" | 12 #include "base/stl_util.h" |
13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
14 #include "base/threading/thread_task_runner_handle.h" | 14 #include "base/threading/thread_task_runner_handle.h" |
15 #include "content/browser/indexed_db/indexed_db_backing_store.h" | 15 #include "content/browser/indexed_db/indexed_db_backing_store.h" |
16 #include "content/browser/indexed_db/indexed_db_cursor.h" | 16 #include "content/browser/indexed_db/indexed_db_cursor.h" |
17 #include "content/browser/indexed_db/indexed_db_database.h" | 17 #include "content/browser/indexed_db/indexed_db_database.h" |
18 #include "content/browser/indexed_db/indexed_db_database_callbacks.h" | 18 #include "content/browser/indexed_db/indexed_db_database_callbacks.h" |
19 #include "content/browser/indexed_db/indexed_db_factory.h" | |
20 #include "content/browser/indexed_db/indexed_db_tracing.h" | 19 #include "content/browser/indexed_db/indexed_db_tracing.h" |
21 #include "content/browser/indexed_db/indexed_db_transaction_coordinator.h" | 20 #include "content/browser/indexed_db/indexed_db_transaction_coordinator.h" |
22 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBDatabaseExc
eption.h" | 21 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBDatabaseExc
eption.h" |
23 #include "third_party/leveldatabase/env_chromium.h" | 22 #include "third_party/leveldatabase/env_chromium.h" |
24 | 23 |
25 namespace content { | 24 namespace content { |
26 | 25 |
27 namespace { | 26 namespace { |
28 | 27 |
29 const int64_t kInactivityTimeoutPeriodSeconds = 60; | 28 const int64_t kInactivityTimeoutPeriodSeconds = 60; |
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
513 void IndexedDBTransaction::RecordObserverForLastObservation( | 512 void IndexedDBTransaction::RecordObserverForLastObservation( |
514 int32_t connection_id, | 513 int32_t connection_id, |
515 int32_t observer_id) { | 514 int32_t observer_id) { |
516 auto it = connection_changes_map_.find(connection_id); | 515 auto it = connection_changes_map_.find(connection_id); |
517 DCHECK(it != connection_changes_map_.end()); | 516 DCHECK(it != connection_changes_map_.end()); |
518 it->second->observation_index_map[observer_id].push_back( | 517 it->second->observation_index_map[observer_id].push_back( |
519 it->second->observations.size() - 1); | 518 it->second->observations.size() - 1); |
520 } | 519 } |
521 | 520 |
522 } // namespace content | 521 } // namespace content |
OLD | NEW |