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

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

Issue 10804039: Make SyncBackendRegistrar aware of loaded data (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 4 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,
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 static const int kDefaultMaxCommitBatchSize = 25; 44 static const int kDefaultMaxCommitBatchSize = 25;
45 45
46 namespace sessions { 46 namespace sessions {
47 class ScopedSessionContextConflictResolver; 47 class ScopedSessionContextConflictResolver;
48 class TestScopedSessionEventListener; 48 class TestScopedSessionEventListener;
49 49
50 class SyncSessionContext { 50 class SyncSessionContext {
51 public: 51 public:
52 SyncSessionContext(ServerConnectionManager* connection_manager, 52 SyncSessionContext(ServerConnectionManager* connection_manager,
53 syncable::Directory* directory, 53 syncable::Directory* directory,
54 const ModelSafeRoutingInfo& model_safe_routing_info,
55 const std::vector<ModelSafeWorker*>& workers, 54 const std::vector<ModelSafeWorker*>& workers,
56 ExtensionsActivityMonitor* extensions_activity_monitor, 55 ExtensionsActivityMonitor* extensions_activity_monitor,
57 ThrottledDataTypeTracker* throttled_data_type_tracker, 56 ThrottledDataTypeTracker* throttled_data_type_tracker,
58 const std::vector<SyncEngineEventListener*>& listeners, 57 const std::vector<SyncEngineEventListener*>& listeners,
59 DebugInfoGetter* debug_info_getter, 58 DebugInfoGetter* debug_info_getter,
60 TrafficRecorder* traffic_recorder); 59 TrafficRecorder* traffic_recorder);
61 ~SyncSessionContext(); 60 ~SyncSessionContext();
62 61
63 ConflictResolver* resolver() { return resolver_; } 62 ConflictResolver* resolver() { return resolver_; }
64 ServerConnectionManager* connection_manager() { 63 ServerConnectionManager* connection_manager() {
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 private: 197 private:
199 SyncSessionContext* context_; 198 SyncSessionContext* context_;
200 ConflictResolver* resolver_; 199 ConflictResolver* resolver_;
201 DISALLOW_COPY_AND_ASSIGN(ScopedSessionContextConflictResolver); 200 DISALLOW_COPY_AND_ASSIGN(ScopedSessionContextConflictResolver);
202 }; 201 };
203 202
204 } // namespace sessions 203 } // namespace sessions
205 } // namespace syncer 204 } // namespace syncer
206 205
207 #endif // SYNC_SESSIONS_SYNC_SESSION_CONTEXT_H_ 206 #endif // SYNC_SESSIONS_SYNC_SESSION_CONTEXT_H_
OLDNEW
« no previous file with comments | « sync/internal_api/test/test_internal_components_factory.cc ('k') | sync/sessions/sync_session_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698