| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "chrome/browser/sync/engine/syncer_thread.h" | 5 #include "chrome/browser/sync/engine/syncer_thread.h" |
| 5 | 6 |
| 7 #include <algorithm> |
| 8 #include <map> |
| 9 #include <queue> |
| 10 |
| 11 #include "base/rand_util.h" |
| 12 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" |
| 6 #include "build/build_config.h" | 13 #include "build/build_config.h" |
| 14 #include "chrome/browser/sync/engine/model_safe_worker.h" |
| 15 #include "chrome/browser/sync/engine/net/server_connection_manager.h" |
| 16 #include "chrome/browser/sync/engine/syncer.h" |
| 17 #include "chrome/browser/sync/sessions/sync_session.h" |
| 18 #include "jingle/notifier/listener/notification_constants.h" |
| 7 | 19 |
| 8 #if defined(OS_MACOSX) | 20 #if defined(OS_MACOSX) |
| 9 #include <CoreFoundation/CFNumber.h> | 21 #include <CoreFoundation/CFNumber.h> |
| 10 #include <IOKit/IOTypes.h> | 22 #include <IOKit/IOTypes.h> |
| 11 #include <IOKit/IOKitLib.h> | 23 #include <IOKit/IOKitLib.h> |
| 12 #endif | 24 #endif |
| 13 | 25 |
| 14 #include <algorithm> | |
| 15 #include <map> | |
| 16 #include <queue> | |
| 17 | |
| 18 #include "base/rand_util.h" | |
| 19 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" | |
| 20 #include "chrome/browser/sync/engine/model_safe_worker.h" | |
| 21 #include "chrome/browser/sync/engine/net/server_connection_manager.h" | |
| 22 #include "chrome/browser/sync/engine/syncer.h" | |
| 23 #include "chrome/browser/sync/sessions/sync_session.h" | |
| 24 #include "chrome/common/chrome_switches.h" | |
| 25 #include "jingle/notifier/listener/notification_constants.h" | |
| 26 | |
| 27 using std::priority_queue; | 26 using std::priority_queue; |
| 28 using std::min; | 27 using std::min; |
| 29 using base::Time; | 28 using base::Time; |
| 30 using base::TimeDelta; | 29 using base::TimeDelta; |
| 31 using base::TimeTicks; | 30 using base::TimeTicks; |
| 32 | 31 |
| 33 namespace browser_sync { | 32 namespace browser_sync { |
| 34 | 33 |
| 35 using sessions::SyncSession; | 34 using sessions::SyncSession; |
| 36 using sessions::SyncSessionSnapshot; | 35 using sessions::SyncSessionSnapshot; |
| (...skipping 806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 843 was_logged = true; | 842 was_logged = true; |
| 844 VLOG(1) << "UserIdleTime unimplemented on this platform, synchronization " | 843 VLOG(1) << "UserIdleTime unimplemented on this platform, synchronization " |
| 845 "will not throttle when user idle"; | 844 "will not throttle when user idle"; |
| 846 } | 845 } |
| 847 #endif | 846 #endif |
| 848 | 847 |
| 849 return 0; | 848 return 0; |
| 850 } | 849 } |
| 851 | 850 |
| 852 } // namespace browser_sync | 851 } // namespace browser_sync |
| OLD | NEW |