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

Side by Side Diff: components/sync/engine_impl/commit.cc

Issue 2436863005: [Sync] Move events files around a bit. (Closed)
Patch Set: Rebase. Created 4 years, 2 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
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 #include "components/sync/engine_impl/commit.h" 5 #include "components/sync/engine_impl/commit.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/feature_list.h" 9 #include "base/feature_list.h"
10 #include "base/metrics/histogram_macros.h" 10 #include "base/metrics/histogram_macros.h"
11 #include "base/rand_util.h" 11 #include "base/rand_util.h"
12 #include "base/trace_event/trace_event.h" 12 #include "base/trace_event/trace_event.h"
13 #include "components/sync/base/data_type_histogram.h" 13 #include "components/sync/base/data_type_histogram.h"
14 #include "components/sync/engine/events/commit_request_event.h"
15 #include "components/sync/engine/events/commit_response_event.h"
16 #include "components/sync/engine/net/http_bridge.h" 14 #include "components/sync/engine/net/http_bridge.h"
17 #include "components/sync/engine_impl/commit_processor.h" 15 #include "components/sync/engine_impl/commit_processor.h"
18 #include "components/sync/engine_impl/commit_util.h" 16 #include "components/sync/engine_impl/commit_util.h"
19 #include "components/sync/engine_impl/cycle/sync_cycle.h" 17 #include "components/sync/engine_impl/cycle/sync_cycle.h"
18 #include "components/sync/engine_impl/events/commit_request_event.h"
19 #include "components/sync/engine_impl/events/commit_response_event.h"
20 #include "components/sync/engine_impl/syncer.h" 20 #include "components/sync/engine_impl/syncer.h"
21 #include "components/sync/engine_impl/syncer_proto_util.h" 21 #include "components/sync/engine_impl/syncer_proto_util.h"
22 22
23 namespace syncer { 23 namespace syncer {
24 24
25 namespace { 25 namespace {
26 // The number of random ASCII bytes we'll add to CommitMessage. We choose 256 26 // The number of random ASCII bytes we'll add to CommitMessage. We choose 256
27 // because it is not too large (to hurt performance and compression ratio), but 27 // because it is not too large (to hurt performance and compression ratio), but
28 // it is not too small to easily be canceled out using statistical analysis. 28 // it is not too small to easily be canceled out using statistical analysis.
29 const size_t kPaddingSize = 256; 29 const size_t kPaddingSize = 256;
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 190
191 void Commit::CleanUp() { 191 void Commit::CleanUp() {
192 for (ContributionMap::const_iterator it = contributions_.begin(); 192 for (ContributionMap::const_iterator it = contributions_.begin();
193 it != contributions_.end(); ++it) { 193 it != contributions_.end(); ++it) {
194 it->second->CleanUp(); 194 it->second->CleanUp();
195 } 195 }
196 cleaned_up_ = true; 196 cleaned_up_ = true;
197 } 197 }
198 198
199 } // namespace syncer 199 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698