| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 COMPONENTS_PROXIMITY_AUTH_CRYPTAUTH_CRYPTAUTH_SYNC_SCHEDULER_IMPL_H | 5 #ifndef COMPONENTS_PROXIMITY_AUTH_CRYPTAUTH_CRYPTAUTH_SYNC_SCHEDULER_IMPL_H |
| 6 #define COMPONENTS_PROXIMITY_AUTH_CRYPTAUTH_CRYPTAUTH_SYNC_SCHEDULER_IMPL_H | 6 #define COMPONENTS_PROXIMITY_AUTH_CRYPTAUTH_CRYPTAUTH_SYNC_SCHEDULER_IMPL_H |
| 7 | 7 |
| 8 #include <stddef.h> |
| 9 |
| 10 #include "base/macros.h" |
| 8 #include "base/timer/timer.h" | 11 #include "base/timer/timer.h" |
| 9 #include "components/proximity_auth/cryptauth/sync_scheduler.h" | 12 #include "components/proximity_auth/cryptauth/sync_scheduler.h" |
| 10 | 13 |
| 11 namespace proximity_auth { | 14 namespace proximity_auth { |
| 12 | 15 |
| 13 // Implementation of SyncScheduler. | 16 // Implementation of SyncScheduler. |
| 14 class SyncSchedulerImpl : public SyncScheduler { | 17 class SyncSchedulerImpl : public SyncScheduler { |
| 15 public: | 18 public: |
| 16 // Creates the scheduler: | 19 // Creates the scheduler: |
| 17 // |delegate|: Handles sync requests and must outlive the scheduler. | 20 // |delegate|: Handles sync requests and must outlive the scheduler. |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 scoped_ptr<base::Timer> timer_; | 95 scoped_ptr<base::Timer> timer_; |
| 93 | 96 |
| 94 base::WeakPtrFactory<SyncSchedulerImpl> weak_ptr_factory_; | 97 base::WeakPtrFactory<SyncSchedulerImpl> weak_ptr_factory_; |
| 95 | 98 |
| 96 DISALLOW_COPY_AND_ASSIGN(SyncSchedulerImpl); | 99 DISALLOW_COPY_AND_ASSIGN(SyncSchedulerImpl); |
| 97 }; | 100 }; |
| 98 | 101 |
| 99 } // namespace proximity_auth | 102 } // namespace proximity_auth |
| 100 | 103 |
| 101 #endif // COMPONENTS_PROXIMITY_CRYPTAUTH_CRYPTAUTH_SYNC_SCHEDULER_IMPL_H | 104 #endif // COMPONENTS_PROXIMITY_CRYPTAUTH_CRYPTAUTH_SYNC_SCHEDULER_IMPL_H |
| OLD | NEW |