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

Side by Side Diff: sync/internal_api/sync_manager_impl.cc

Issue 254473008: sync: Introduce classes for per-type counters (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fixes Created 6 years, 7 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 | Annotate | Revision Log
OLDNEW
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 "sync/internal_api/sync_manager_impl.h" 5 #include "sync/internal_api/sync_manager_impl.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/base64.h" 9 #include "base/base64.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/json/json_writer.h" 13 #include "base/json/json_writer.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "base/metrics/histogram.h" 15 #include "base/metrics/histogram.h"
16 #include "base/observer_list.h" 16 #include "base/observer_list.h"
17 #include "base/strings/string_number_conversions.h" 17 #include "base/strings/string_number_conversions.h"
18 #include "base/values.h" 18 #include "base/values.h"
19 #include "sync/engine/directory_type_debug_info_emitter.h"
20 #include "sync/engine/sync_scheduler.h" 19 #include "sync/engine/sync_scheduler.h"
21 #include "sync/engine/syncer_types.h" 20 #include "sync/engine/syncer_types.h"
22 #include "sync/internal_api/change_reorder_buffer.h" 21 #include "sync/internal_api/change_reorder_buffer.h"
23 #include "sync/internal_api/public/base/cancelation_signal.h" 22 #include "sync/internal_api/public/base/cancelation_signal.h"
24 #include "sync/internal_api/public/base/model_type.h" 23 #include "sync/internal_api/public/base/model_type.h"
25 #include "sync/internal_api/public/base_node.h" 24 #include "sync/internal_api/public/base_node.h"
26 #include "sync/internal_api/public/configure_reason.h" 25 #include "sync/internal_api/public/configure_reason.h"
27 #include "sync/internal_api/public/engine/polling_constants.h" 26 #include "sync/internal_api/public/engine/polling_constants.h"
28 #include "sync/internal_api/public/http_post_provider_factory.h" 27 #include "sync/internal_api/public/http_post_provider_factory.h"
29 #include "sync/internal_api/public/internal_components_factory.h" 28 #include "sync/internal_api/public/internal_components_factory.h"
30 #include "sync/internal_api/public/read_node.h" 29 #include "sync/internal_api/public/read_node.h"
31 #include "sync/internal_api/public/read_transaction.h" 30 #include "sync/internal_api/public/read_transaction.h"
32 #include "sync/internal_api/public/sync_core_proxy.h" 31 #include "sync/internal_api/public/sync_core_proxy.h"
33 #include "sync/internal_api/public/user_share.h" 32 #include "sync/internal_api/public/user_share.h"
34 #include "sync/internal_api/public/util/experiments.h" 33 #include "sync/internal_api/public/util/experiments.h"
35 #include "sync/internal_api/public/write_node.h" 34 #include "sync/internal_api/public/write_node.h"
36 #include "sync/internal_api/public/write_transaction.h" 35 #include "sync/internal_api/public/write_transaction.h"
37 #include "sync/internal_api/sync_core.h" 36 #include "sync/internal_api/sync_core.h"
38 #include "sync/internal_api/sync_core_proxy_impl.h" 37 #include "sync/internal_api/sync_core_proxy_impl.h"
39 #include "sync/internal_api/syncapi_internal.h" 38 #include "sync/internal_api/syncapi_internal.h"
40 #include "sync/internal_api/syncapi_server_connection_manager.h" 39 #include "sync/internal_api/syncapi_server_connection_manager.h"
41 #include "sync/notifier/invalidation_util.h" 40 #include "sync/notifier/invalidation_util.h"
42 #include "sync/notifier/invalidator.h" 41 #include "sync/notifier/invalidator.h"
43 #include "sync/notifier/object_id_invalidation_map.h" 42 #include "sync/notifier/object_id_invalidation_map.h"
44 #include "sync/protocol/proto_value_conversions.h" 43 #include "sync/protocol/proto_value_conversions.h"
45 #include "sync/protocol/sync.pb.h" 44 #include "sync/protocol/sync.pb.h"
45 #include "sync/sessions/directory_type_debug_info_emitter.h"
46 #include "sync/syncable/directory.h" 46 #include "sync/syncable/directory.h"
47 #include "sync/syncable/entry.h" 47 #include "sync/syncable/entry.h"
48 #include "sync/syncable/in_memory_directory_backing_store.h" 48 #include "sync/syncable/in_memory_directory_backing_store.h"
49 #include "sync/syncable/on_disk_directory_backing_store.h" 49 #include "sync/syncable/on_disk_directory_backing_store.h"
50 50
51 using base::TimeDelta; 51 using base::TimeDelta;
52 using sync_pb::GetUpdatesCallerInfo; 52 using sync_pb::GetUpdatesCallerInfo;
53 53
54 namespace syncer { 54 namespace syncer {
55 55
(...skipping 1072 matching lines...) Expand 10 before | Expand all | Expand 10 after
1128 int SyncManagerImpl::GetDefaultNudgeDelay() { 1128 int SyncManagerImpl::GetDefaultNudgeDelay() {
1129 return kDefaultNudgeDelayMilliseconds; 1129 return kDefaultNudgeDelayMilliseconds;
1130 } 1130 }
1131 1131
1132 // static. 1132 // static.
1133 int SyncManagerImpl::GetPreferencesNudgeDelay() { 1133 int SyncManagerImpl::GetPreferencesNudgeDelay() {
1134 return kPreferencesNudgeDelayMilliseconds; 1134 return kPreferencesNudgeDelayMilliseconds;
1135 } 1135 }
1136 1136
1137 } // namespace syncer 1137 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/internal_api/public/sessions/update_counters.cc ('k') | sync/sessions/directory_type_debug_info_emitter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698