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 // StatusController handles all counter and status related number crunching and | 5 // StatusController handles all counter and status related number crunching and |
6 // state tracking on behalf of a SyncSession. | 6 // state tracking on behalf of a SyncSession. |
7 // | 7 // |
8 // The most important feature of StatusController is the | 8 // The most important feature of StatusController is the |
9 // ScopedModelSafeGroupRestriction. Some of its functions expose per-thread | 9 // ScopedModelSafeGroupRestriction. Some of its functions expose per-thread |
10 // state, and can be called only when the restriction is in effect. For | 10 // state, and can be called only when the restriction is in effect. For |
(...skipping 17 matching lines...) Expand all Loading... |
28 #ifndef SYNC_SESSIONS_STATUS_CONTROLLER_H_ | 28 #ifndef SYNC_SESSIONS_STATUS_CONTROLLER_H_ |
29 #define SYNC_SESSIONS_STATUS_CONTROLLER_H_ | 29 #define SYNC_SESSIONS_STATUS_CONTROLLER_H_ |
30 | 30 |
31 #include <map> | 31 #include <map> |
32 #include <vector> | 32 #include <vector> |
33 | 33 |
34 #include "base/logging.h" | 34 #include "base/logging.h" |
35 #include "base/stl_util.h" | 35 #include "base/stl_util.h" |
36 #include "base/time/time.h" | 36 #include "base/time/time.h" |
37 #include "sync/base/sync_export.h" | 37 #include "sync/base/sync_export.h" |
| 38 #include "sync/internal_api/public/engine/model_safe_worker.h" |
38 #include "sync/internal_api/public/sessions/model_neutral_state.h" | 39 #include "sync/internal_api/public/sessions/model_neutral_state.h" |
39 #include "sync/sessions/ordered_commit_set.h" | |
40 | 40 |
41 namespace syncer { | 41 namespace syncer { |
42 namespace sessions { | 42 namespace sessions { |
43 | 43 |
44 class SYNC_EXPORT_PRIVATE StatusController { | 44 class SYNC_EXPORT_PRIVATE StatusController { |
45 public: | 45 public: |
46 explicit StatusController(); | 46 explicit StatusController(); |
47 ~StatusController(); | 47 ~StatusController(); |
48 | 48 |
49 // ClientToServer messages. | 49 // ClientToServer messages. |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 } | 183 } |
184 private: | 184 private: |
185 StatusController* status_; | 185 StatusController* status_; |
186 DISALLOW_COPY_AND_ASSIGN(ScopedModelSafeGroupRestriction); | 186 DISALLOW_COPY_AND_ASSIGN(ScopedModelSafeGroupRestriction); |
187 }; | 187 }; |
188 | 188 |
189 } // namespace sessions | 189 } // namespace sessions |
190 } // namespace syncer | 190 } // namespace syncer |
191 | 191 |
192 #endif // SYNC_SESSIONS_STATUS_CONTROLLER_H_ | 192 #endif // SYNC_SESSIONS_STATUS_CONTROLLER_H_ |
OLD | NEW |