Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(365)

Side by Side Diff: components/sync/syncable/syncable_id.h

Issue 2516363005: Inline StringValue into base::Value (Closed)
Patch Set: Rebase and Nits. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/sync/base/model_type.h ('k') | extensions/browser/api/idle/idle_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « components/sync/base/model_type.h ('k') | extensions/browser/api/idle/idle_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698