OLD | NEW |
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 #ifndef COMPONENTS_SYNC_ENGINE_IMPL_COMMIT_H_ | 5 #ifndef COMPONENTS_SYNC_ENGINE_IMPL_COMMIT_H_ |
6 #define COMPONENTS_SYNC_ENGINE_IMPL_COMMIT_H_ | 6 #define COMPONENTS_SYNC_ENGINE_IMPL_COMMIT_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
11 #include <memory> | 11 #include <memory> |
12 #include <string> | 12 #include <string> |
13 | 13 |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "components/sync/base/extensions_activity.h" | 15 #include "components/sync/base/extensions_activity.h" |
16 #include "components/sync/base/model_type.h" | 16 #include "components/sync/base/model_type.h" |
17 #include "components/sync/base/syncer_error.h" | 17 #include "components/sync/base/syncer_error.h" |
18 #include "components/sync/engine/model_safe_worker.h" | 18 #include "components/sync/engine/model_safe_worker.h" |
19 #include "components/sync/engine_impl/commit_contribution.h" | 19 #include "components/sync/engine_impl/commit_contribution.h" |
20 #include "components/sync/engine_impl/cycle/nudge_tracker.h" | 20 #include "components/sync/engine_impl/cycle/nudge_tracker.h" |
21 #include "components/sync/protocol/sync.pb.h" | 21 #include "components/sync/protocol/sync.pb.h" |
22 | 22 |
23 namespace syncer { | 23 namespace syncer { |
24 | 24 |
25 class CommitProcessor; | 25 class CommitProcessor; |
26 class StatusController; | 26 class StatusController; |
27 class SyncCycle; | 27 class SyncCycle; |
28 class Syncer; | |
29 | 28 |
30 // This class wraps the actions related to building and executing a single | 29 // This class wraps the actions related to building and executing a single |
31 // commit operation. | 30 // commit operation. |
32 // | 31 // |
33 // This class' most important responsibility is to manage the ContributionsMap. | 32 // This class' most important responsibility is to manage the ContributionsMap. |
34 // This class serves as a container for those objects. Although it would have | 33 // This class serves as a container for those objects. Although it would have |
35 // been acceptable to let this class be a dumb container object, it turns out | 34 // been acceptable to let this class be a dumb container object, it turns out |
36 // that there was no other convenient place to put the Init() and | 35 // that there was no other convenient place to put the Init() and |
37 // PostAndProcessCommitResponse() functions. So they ended up here. | 36 // PostAndProcessCommitResponse() functions. So they ended up here. |
38 class Commit { | 37 class Commit { |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 | 74 |
76 // Debug only flag used to indicate if it's safe to destruct the object. | 75 // Debug only flag used to indicate if it's safe to destruct the object. |
77 bool cleaned_up_; | 76 bool cleaned_up_; |
78 | 77 |
79 DISALLOW_COPY_AND_ASSIGN(Commit); | 78 DISALLOW_COPY_AND_ASSIGN(Commit); |
80 }; | 79 }; |
81 | 80 |
82 } // namespace syncer | 81 } // namespace syncer |
83 | 82 |
84 #endif // COMPONENTS_SYNC_ENGINE_IMPL_COMMIT_H_ | 83 #endif // COMPONENTS_SYNC_ENGINE_IMPL_COMMIT_H_ |
OLD | NEW |