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 15 matching lines...) Expand all Loading... |
26 // notifications if no changes occurred. | 26 // notifications if no changes occurred. |
27 | 27 |
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.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/sessions/model_neutral_state.h" | 38 #include "sync/internal_api/public/sessions/model_neutral_state.h" |
39 #include "sync/sessions/ordered_commit_set.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(); |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 } | 184 } |
185 private: | 185 private: |
186 StatusController* status_; | 186 StatusController* status_; |
187 DISALLOW_COPY_AND_ASSIGN(ScopedModelSafeGroupRestriction); | 187 DISALLOW_COPY_AND_ASSIGN(ScopedModelSafeGroupRestriction); |
188 }; | 188 }; |
189 | 189 |
190 } // namespace sessions | 190 } // namespace sessions |
191 } // namespace syncer | 191 } // namespace syncer |
192 | 192 |
193 #endif // SYNC_SESSIONS_STATUS_CONTROLLER_H_ | 193 #endif // SYNC_SESSIONS_STATUS_CONTROLLER_H_ |
OLD | NEW |