Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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_connection.h" | 5 #include "content/browser/indexed_db/indexed_db_connection.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/stl_util.h" | 8 #include "base/stl_util.h" |
| 9 #include "content/browser/indexed_db/indexed_db_class_factory.h" | 9 #include "content/browser/indexed_db/indexed_db_class_factory.h" |
| 10 #include "content/browser/indexed_db/indexed_db_database_callbacks.h" | 10 #include "content/browser/indexed_db/indexed_db_database_callbacks.h" |
| 11 #include "content/browser/indexed_db/indexed_db_database_error.h" | |
|
pwnall
2017/03/27 20:56:33
why?
dmurph
2017/03/27 23:03:32
Missing include - required transitive includes.
| |
| 11 #include "content/browser/indexed_db/indexed_db_observer.h" | 12 #include "content/browser/indexed_db/indexed_db_observer.h" |
| 12 #include "content/browser/indexed_db/indexed_db_tracing.h" | 13 #include "content/browser/indexed_db/indexed_db_tracing.h" |
| 13 #include "content/browser/indexed_db/indexed_db_transaction.h" | 14 #include "content/browser/indexed_db/indexed_db_transaction.h" |
| 14 | 15 |
| 15 namespace content { | 16 namespace content { |
| 16 | 17 |
| 17 namespace { | 18 namespace { |
| 18 | 19 |
| 19 static int32_t next_id; | 20 static int32_t next_id; |
| 20 | 21 |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 160 | 161 |
| 161 int64_t IndexedDBConnection::NewObserverTransactionId() { | 162 int64_t IndexedDBConnection::NewObserverTransactionId() { |
| 162 // When we overflow to 0, reset the ID to 1 (id of 0 is reserved for upgrade | 163 // When we overflow to 0, reset the ID to 1 (id of 0 is reserved for upgrade |
| 163 // transactions). | 164 // transactions). |
| 164 if (next_observer_transaction_id_ == 0) | 165 if (next_observer_transaction_id_ == 0) |
| 165 next_observer_transaction_id_ = 1; | 166 next_observer_transaction_id_ = 1; |
| 166 return static_cast<int64_t>(next_observer_transaction_id_++) << 32; | 167 return static_cast<int64_t>(next_observer_transaction_id_++) << 32; |
| 167 } | 168 } |
| 168 | 169 |
| 169 } // namespace content | 170 } // namespace content |
| OLD | NEW |