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/macros.h" |
9 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
10 #include "cc/base/cc_export.h" | 11 #include "cc/base/cc_export.h" |
11 | 12 |
12 namespace base { | 13 namespace base { |
13 class SequencedTaskRunner; | 14 class SequencedTaskRunner; |
14 } // namespace base | 15 } // namespace base |
15 | 16 |
16 namespace cc { | 17 namespace cc { |
17 | 18 |
18 class CC_EXPORT UniqueNotifier { | 19 class CC_EXPORT UniqueNotifier { |
(...skipping 22 matching lines...) Expand all Loading... |
41 bool notification_pending_; | 42 bool notification_pending_; |
42 | 43 |
43 base::WeakPtrFactory<UniqueNotifier> weak_ptr_factory_; | 44 base::WeakPtrFactory<UniqueNotifier> weak_ptr_factory_; |
44 | 45 |
45 DISALLOW_COPY_AND_ASSIGN(UniqueNotifier); | 46 DISALLOW_COPY_AND_ASSIGN(UniqueNotifier); |
46 }; | 47 }; |
47 | 48 |
48 } // namespace cc | 49 } // namespace cc |
49 | 50 |
50 #endif // CC_BASE_UNIQUE_NOTIFIER_H_ | 51 #endif // CC_BASE_UNIQUE_NOTIFIER_H_ |
OLD | NEW |