| OLD | NEW |
| 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 #include "sync/sessions/sync_session_context.h" | 5 #include "sync/sessions/sync_session_context.h" |
| 6 | 6 |
| 7 #include "sync/sessions/debug_info_getter.h" | 7 #include "sync/sessions/debug_info_getter.h" |
| 8 #include "sync/util/extensions_activity.h" | 8 #include "sync/util/extensions_activity.h" |
| 9 | 9 |
| 10 namespace syncer { | 10 namespace syncer { |
| 11 namespace sessions { | 11 namespace sessions { |
| 12 | 12 |
| 13 const unsigned int kMaxMessagesToRecord = 10; | |
| 14 const unsigned int kMaxMessageSizeToRecord = 5 * 1024; | |
| 15 | |
| 16 SyncSessionContext::SyncSessionContext( | 13 SyncSessionContext::SyncSessionContext( |
| 17 ServerConnectionManager* connection_manager, | 14 ServerConnectionManager* connection_manager, |
| 18 syncable::Directory* directory, | 15 syncable::Directory* directory, |
| 19 const std::vector<ModelSafeWorker*>& workers, | 16 const std::vector<ModelSafeWorker*>& workers, |
| 20 ExtensionsActivity* extensions_activity, | 17 ExtensionsActivity* extensions_activity, |
| 21 const std::vector<SyncEngineEventListener*>& listeners, | 18 const std::vector<SyncEngineEventListener*>& listeners, |
| 22 DebugInfoGetter* debug_info_getter, | 19 DebugInfoGetter* debug_info_getter, |
| 23 TrafficRecorder* traffic_recorder, | 20 TrafficRecorder* traffic_recorder, |
| 24 bool keystore_encryption_enabled, | 21 bool keystore_encryption_enabled, |
| 25 bool client_enabled_pre_commit_update_avoidance, | 22 bool client_enabled_pre_commit_update_avoidance, |
| (...skipping 16 matching lines...) Expand all Loading... |
| 42 std::vector<SyncEngineEventListener*>::const_iterator it; | 39 std::vector<SyncEngineEventListener*>::const_iterator it; |
| 43 for (it = listeners.begin(); it != listeners.end(); ++it) | 40 for (it = listeners.begin(); it != listeners.end(); ++it) |
| 44 listeners_.AddObserver(*it); | 41 listeners_.AddObserver(*it); |
| 45 } | 42 } |
| 46 | 43 |
| 47 SyncSessionContext::~SyncSessionContext() { | 44 SyncSessionContext::~SyncSessionContext() { |
| 48 } | 45 } |
| 49 | 46 |
| 50 } // namespace sessions | 47 } // namespace sessions |
| 51 } // namespace syncer | 48 } // namespace syncer |
| OLD | NEW |