| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #ifndef COMPONENTS_SYNC_SYNCABLE_SYNCABLE_ID_H_ | 5 #ifndef COMPONENTS_SYNC_SYNCABLE_SYNCABLE_ID_H_ |
| 6 #define COMPONENTS_SYNC_SYNCABLE_SYNCABLE_ID_H_ | 6 #define COMPONENTS_SYNC_SYNCABLE_SYNCABLE_ID_H_ |
| 7 | 7 |
| 8 #include <iosfwd> | 8 #include <iosfwd> |
| 9 #include <limits> | 9 #include <limits> |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <sstream> | 11 #include <sstream> |
| 12 #include <string> | 12 #include <string> |
| 13 | 13 |
| 14 #include "base/containers/hash_tables.h" | 14 #include "base/containers/hash_tables.h" |
| 15 #include "base/trace_event/memory_usage_estimator.h" | 15 #include "base/trace_event/memory_usage_estimator.h" |
| 16 | 16 |
| 17 namespace base { | 17 namespace base { |
| 18 class StringValue; | 18 class Value; |
| 19 using StringValue = Value; |
| 19 } // namespace base | 20 } // namespace base |
| 20 | 21 |
| 21 namespace sql { | 22 namespace sql { |
| 22 class Statement; | 23 class Statement; |
| 23 } // namespace sql | 24 } // namespace sql |
| 24 | 25 |
| 25 namespace syncer { | 26 namespace syncer { |
| 26 namespace syncable { | 27 namespace syncable { |
| 27 | 28 |
| 28 class Id; | 29 class Id; |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 }; | 100 }; |
| 100 | 101 |
| 101 inline size_t EstimateMemoryUsage(const Id& id) { | 102 inline size_t EstimateMemoryUsage(const Id& id) { |
| 102 return base::trace_event::EstimateMemoryUsage(id.value()); | 103 return base::trace_event::EstimateMemoryUsage(id.value()); |
| 103 } | 104 } |
| 104 | 105 |
| 105 } // namespace syncable | 106 } // namespace syncable |
| 106 } // namespace syncer | 107 } // namespace syncer |
| 107 | 108 |
| 108 #endif // COMPONENTS_SYNC_SYNCABLE_SYNCABLE_ID_H_ | 109 #endif // COMPONENTS_SYNC_SYNCABLE_SYNCABLE_ID_H_ |
| OLD | NEW |