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_UNIQUE_NOTIFIER_H_ | 5 #ifndef CC_BASE_UNIQUE_NOTIFIER_H_ |
6 #define CC_BASE_UNIQUE_NOTIFIER_H_ | 6 #define CC_BASE_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 20 matching lines...) Expand all Loading... |
31 | 31 |
32 private: | 32 private: |
33 void Notify(); | 33 void Notify(); |
34 | 34 |
35 // TODO(dcheng): How come this doesn't need to hold a ref to the task runner? | 35 // TODO(dcheng): How come this doesn't need to hold a ref to the task runner? |
36 base::SequencedTaskRunner* task_runner_; | 36 base::SequencedTaskRunner* task_runner_; |
37 base::Closure closure_; | 37 base::Closure closure_; |
38 bool notification_pending_; | 38 bool notification_pending_; |
39 | 39 |
40 base::WeakPtrFactory<UniqueNotifier> weak_ptr_factory_; | 40 base::WeakPtrFactory<UniqueNotifier> weak_ptr_factory_; |
| 41 |
| 42 DISALLOW_COPY_AND_ASSIGN(UniqueNotifier); |
41 }; | 43 }; |
42 | 44 |
43 } // namespace cc | 45 } // namespace cc |
44 | 46 |
45 #endif // CC_BASE_UNIQUE_NOTIFIER_H_ | 47 #endif // CC_BASE_UNIQUE_NOTIFIER_H_ |
OLD | NEW |