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

Side by Side Diff: sync/sessions/status_controller.h

Issue 25638003: sync: Implement per-type commit interface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Attempt to fix win compile Created 7 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 | Annotate | Revision Log
« no previous file with comments | « sync/sessions/ordered_commit_set_unittest.cc ('k') | sync/sessions/sync_session.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // 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
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
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_
OLDNEW
« no previous file with comments | « sync/sessions/ordered_commit_set_unittest.cc ('k') | sync/sessions/sync_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698