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

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

Issue 10699044: [Sync] Move sync/{internal_api,syncable} into syncer namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync to head 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/sync_session.h ('k') | sync/sessions/sync_session_unittest.cc » ('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 // 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 12 matching lines...) Expand all
23 #include <string> 23 #include <string>
24 #include <vector> 24 #include <vector>
25 25
26 #include "base/time.h" 26 #include "base/time.h"
27 #include "sync/engine/sync_engine_event.h" 27 #include "sync/engine/sync_engine_event.h"
28 #include "sync/engine/syncer_types.h" 28 #include "sync/engine/syncer_types.h"
29 #include "sync/engine/traffic_recorder.h" 29 #include "sync/engine/traffic_recorder.h"
30 #include "sync/internal_api/public/engine/model_safe_worker.h" 30 #include "sync/internal_api/public/engine/model_safe_worker.h"
31 #include "sync/sessions/debug_info_getter.h" 31 #include "sync/sessions/debug_info_getter.h"
32 32
33 namespace syncable {
34 class Directory;
35 }
36
37 namespace syncer { 33 namespace syncer {
38 34
39 class ConflictResolver; 35 class ConflictResolver;
40 class ExtensionsActivityMonitor; 36 class ExtensionsActivityMonitor;
41 class ServerConnectionManager; 37 class ServerConnectionManager;
42 class ThrottledDataTypeTracker; 38 class ThrottledDataTypeTracker;
43 39
40 namespace syncable {
41 class Directory;
42 }
43
44 // Default number of items a client can commit in a single message. 44 // Default number of items a client can commit in a single message.
45 static const int kDefaultMaxCommitBatchSize = 25; 45 static const int kDefaultMaxCommitBatchSize = 25;
46 46
47 namespace sessions { 47 namespace sessions {
48 class ScopedSessionContextConflictResolver; 48 class ScopedSessionContextConflictResolver;
49 class TestScopedSessionEventListener; 49 class TestScopedSessionEventListener;
50 50
51 class SyncSessionContext { 51 class SyncSessionContext {
52 public: 52 public:
53 SyncSessionContext(ServerConnectionManager* connection_manager, 53 SyncSessionContext(ServerConnectionManager* connection_manager,
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 private: 199 private:
200 SyncSessionContext* context_; 200 SyncSessionContext* context_;
201 ConflictResolver* resolver_; 201 ConflictResolver* resolver_;
202 DISALLOW_COPY_AND_ASSIGN(ScopedSessionContextConflictResolver); 202 DISALLOW_COPY_AND_ASSIGN(ScopedSessionContextConflictResolver);
203 }; 203 };
204 204
205 } // namespace sessions 205 } // namespace sessions
206 } // namespace syncer 206 } // namespace syncer
207 207
208 #endif // SYNC_SESSIONS_SYNC_SESSION_CONTEXT_H_ 208 #endif // SYNC_SESSIONS_SYNC_SESSION_CONTEXT_H_
OLDNEW
« no previous file with comments | « sync/sessions/sync_session.h ('k') | sync/sessions/sync_session_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698