OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CC_BASE_DELAYED_UNIQUE_NOTIFIER_H_ | 5 #ifndef CC_BASE_DELAYED_UNIQUE_NOTIFIER_H_ |
6 #define CC_BASE_DELAYED_UNIQUE_NOTIFIER_H_ | 6 #define CC_BASE_DELAYED_UNIQUE_NOTIFIER_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "cc/base/cc_export.h" | 10 #include "cc/base/cc_export.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 private: | 47 private: |
48 void NotifyIfTime(); | 48 void NotifyIfTime(); |
49 | 49 |
50 base::SequencedTaskRunner* task_runner_; | 50 base::SequencedTaskRunner* task_runner_; |
51 base::Closure closure_; | 51 base::Closure closure_; |
52 base::TimeDelta delay_; | 52 base::TimeDelta delay_; |
53 base::TimeTicks next_notification_time_; | 53 base::TimeTicks next_notification_time_; |
54 bool notification_pending_; | 54 bool notification_pending_; |
55 | 55 |
56 base::WeakPtrFactory<DelayedUniqueNotifier> weak_ptr_factory_; | 56 base::WeakPtrFactory<DelayedUniqueNotifier> weak_ptr_factory_; |
| 57 |
| 58 DISALLOW_COPY_AND_ASSIGN(DelayedUniqueNotifier); |
57 }; | 59 }; |
58 | 60 |
59 } // namespace cc | 61 } // namespace cc |
60 | 62 |
61 #endif // CC_BASE_DELAYED_UNIQUE_NOTIFIER_H_ | 63 #endif // CC_BASE_DELAYED_UNIQUE_NOTIFIER_H_ |
OLD | NEW |