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

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

Issue 11028086: Cleanup: IWYU for base/time.h in sync/. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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
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 // SyncSessionContext encapsulates the contextual information and engine 5 // SyncSessionContext encapsulates the contextual information and engine
6 // components specific to a SyncSession. A context is accessible via 6 // components specific to a SyncSession. A context is accessible via
7 // a SyncSession so that session SyncerCommands and parts of the engine have 7 // a SyncSession so that session SyncerCommands and parts of the engine have
8 // a convenient way to access other parts. In this way it can be thought of as 8 // a convenient way to access other parts. In this way it can be thought of as
9 // the surrounding environment for the SyncSession. The components of this 9 // the surrounding environment for the SyncSession. The components of this
10 // environment are either valid or not valid for the entire context lifetime, 10 // environment are either valid or not valid for the entire context lifetime,
11 // or they are valid for explicitly scoped periods of time by using Scoped 11 // or they are valid for explicitly scoped periods of time by using Scoped
12 // installation utilities found below. This means that the context assumes no 12 // installation utilities found below. This means that the context assumes no
13 // ownership whatsoever of any object that was not created by the context 13 // ownership whatsoever of any object that was not created by the context
14 // itself. 14 // itself.
15 // 15 //
16 // It can only be used from the SyncerThread. 16 // It can only be used from the SyncerThread.
17 17
18 #ifndef SYNC_SESSIONS_SYNC_SESSION_CONTEXT_H_ 18 #ifndef SYNC_SESSIONS_SYNC_SESSION_CONTEXT_H_
19 #define SYNC_SESSIONS_SYNC_SESSION_CONTEXT_H_ 19 #define SYNC_SESSIONS_SYNC_SESSION_CONTEXT_H_
20 20
21 #include <map> 21 #include <map>
22 #include <string> 22 #include <string>
23 #include <vector> 23 #include <vector>
24 24
25 #include "base/time.h"
26 #include "sync/engine/sync_engine_event.h" 25 #include "sync/engine/sync_engine_event.h"
27 #include "sync/engine/syncer_types.h" 26 #include "sync/engine/syncer_types.h"
28 #include "sync/engine/traffic_recorder.h" 27 #include "sync/engine/traffic_recorder.h"
29 #include "sync/internal_api/public/engine/model_safe_worker.h" 28 #include "sync/internal_api/public/engine/model_safe_worker.h"
30 #include "sync/sessions/debug_info_getter.h" 29 #include "sync/sessions/debug_info_getter.h"
31 30
32 namespace syncer { 31 namespace syncer {
33 32
34 class ConflictResolver; 33 class ConflictResolver;
35 class ExtensionsActivityMonitor; 34 class ExtensionsActivityMonitor;
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 private: 195 private:
197 SyncSessionContext* context_; 196 SyncSessionContext* context_;
198 ConflictResolver* resolver_; 197 ConflictResolver* resolver_;
199 DISALLOW_COPY_AND_ASSIGN(ScopedSessionContextConflictResolver); 198 DISALLOW_COPY_AND_ASSIGN(ScopedSessionContextConflictResolver);
200 }; 199 };
201 200
202 } // namespace sessions 201 } // namespace sessions
203 } // namespace syncer 202 } // namespace syncer
204 203
205 #endif // SYNC_SESSIONS_SYNC_SESSION_CONTEXT_H_ 204 #endif // SYNC_SESSIONS_SYNC_SESSION_CONTEXT_H_
OLDNEW
« sync/internal_api/public/base_node.h ('K') | « sync/internal_api/public/sync_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698