OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #ifndef SYNC_ENGINE_SYNC_SCHEDULER_IMPL_H_ | 5 #ifndef SYNC_ENGINE_SYNC_SCHEDULER_IMPL_H_ |
6 #define SYNC_ENGINE_SYNC_SCHEDULER_IMPL_H_ | 6 #define SYNC_ENGINE_SYNC_SCHEDULER_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/cancelable_callback.h" | 12 #include "base/cancelable_callback.h" |
13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
14 #include "base/gtest_prod_util.h" | 14 #include "base/gtest_prod_util.h" |
| 15 #include "base/macros.h" |
15 #include "base/memory/linked_ptr.h" | 16 #include "base/memory/linked_ptr.h" |
16 #include "base/memory/scoped_ptr.h" | 17 #include "base/memory/scoped_ptr.h" |
17 #include "base/memory/weak_ptr.h" | 18 #include "base/memory/weak_ptr.h" |
18 #include "base/threading/non_thread_safe.h" | 19 #include "base/threading/non_thread_safe.h" |
19 #include "base/time/time.h" | 20 #include "base/time/time.h" |
20 #include "base/timer/timer.h" | 21 #include "base/timer/timer.h" |
21 #include "sync/base/sync_export.h" | 22 #include "sync/base/sync_export.h" |
22 #include "sync/engine/net/server_connection_manager.h" | 23 #include "sync/engine/net/server_connection_manager.h" |
23 #include "sync/engine/nudge_source.h" | 24 #include "sync/engine/nudge_source.h" |
24 #include "sync/engine/sync_scheduler.h" | 25 #include "sync/engine/sync_scheduler.h" |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 // A second factory specially for weak_handle_this_, to allow the handle | 322 // A second factory specially for weak_handle_this_, to allow the handle |
322 // to be const and alleviate threading concerns. | 323 // to be const and alleviate threading concerns. |
323 base::WeakPtrFactory<SyncSchedulerImpl> weak_ptr_factory_for_weak_handle_; | 324 base::WeakPtrFactory<SyncSchedulerImpl> weak_ptr_factory_for_weak_handle_; |
324 | 325 |
325 DISALLOW_COPY_AND_ASSIGN(SyncSchedulerImpl); | 326 DISALLOW_COPY_AND_ASSIGN(SyncSchedulerImpl); |
326 }; | 327 }; |
327 | 328 |
328 } // namespace syncer | 329 } // namespace syncer |
329 | 330 |
330 #endif // SYNC_ENGINE_SYNC_SCHEDULER_IMPL_H_ | 331 #endif // SYNC_ENGINE_SYNC_SCHEDULER_IMPL_H_ |
OLD | NEW |