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

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

Issue 10700154: Remove #pragma once from sync (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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/session_state.h ('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 (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 // 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. It 'controls' the model data 6 // state tracking on behalf of a SyncSession. It 'controls' the model data
7 // defined in session_state.h. The most important feature of StatusController 7 // defined in session_state.h. The most important feature of StatusController
8 // is the ScopedModelSafetyRestriction. When one of these is active, the 8 // is the ScopedModelSafetyRestriction. When one of these is active, the
9 // underlying data set exposed via accessors is swapped out to the appropriate 9 // underlying data set exposed via accessors is swapped out to the appropriate
10 // set for the restricted ModelSafeGroup behind the scenes. For example, if 10 // set for the restricted ModelSafeGroup behind the scenes. For example, if
(...skipping 13 matching lines...) Expand all
24 // SyncerThread) responsible for all "shared" access when no restriction is in 24 // SyncerThread) responsible for all "shared" access when no restriction is in
25 // place. Thus, every bit of data is to be accessed mutually exclusively with 25 // place. Thus, every bit of data is to be accessed mutually exclusively with
26 // respect to threads. 26 // respect to threads.
27 // 27 //
28 // StatusController can also track if changes occur to certain parts of state 28 // StatusController can also track if changes occur to certain parts of state
29 // so that various parts of the sync engine can avoid broadcasting 29 // so that various parts of the sync engine can avoid broadcasting
30 // notifications if no changes occurred. 30 // notifications if no changes occurred.
31 31
32 #ifndef SYNC_SESSIONS_STATUS_CONTROLLER_H_ 32 #ifndef SYNC_SESSIONS_STATUS_CONTROLLER_H_
33 #define SYNC_SESSIONS_STATUS_CONTROLLER_H_ 33 #define SYNC_SESSIONS_STATUS_CONTROLLER_H_
34 #pragma once
35 34
36 #include <map> 35 #include <map>
37 #include <vector> 36 #include <vector>
38 37
39 #include "base/logging.h" 38 #include "base/logging.h"
40 #include "base/stl_util.h" 39 #include "base/stl_util.h"
41 #include "base/time.h" 40 #include "base/time.h"
42 #include "sync/internal_api/public/sessions/model_neutral_state.h" 41 #include "sync/internal_api/public/sessions/model_neutral_state.h"
43 #include "sync/sessions/ordered_commit_set.h" 42 #include "sync/sessions/ordered_commit_set.h"
44 #include "sync/sessions/session_state.h" 43 #include "sync/sessions/session_state.h"
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 } 230 }
232 private: 231 private:
233 StatusController* status_; 232 StatusController* status_;
234 DISALLOW_COPY_AND_ASSIGN(ScopedModelSafeGroupRestriction); 233 DISALLOW_COPY_AND_ASSIGN(ScopedModelSafeGroupRestriction);
235 }; 234 };
236 235
237 } // namespace sessions 236 } // namespace sessions
238 } // namespace syncer 237 } // namespace syncer
239 238
240 #endif // SYNC_SESSIONS_STATUS_CONTROLLER_H_ 239 #endif // SYNC_SESSIONS_STATUS_CONTROLLER_H_
OLDNEW
« no previous file with comments | « sync/sessions/session_state.h ('k') | sync/sessions/sync_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698