OLD | NEW |
---|---|
1 // This file was GENERATED by command: | 1 // This file was GENERATED by command: |
2 // pump.py callback.h.pump | 2 // pump.py callback.h.pump |
3 // DO NOT EDIT BY HAND!!! | 3 // DO NOT EDIT BY HAND!!! |
4 | 4 |
5 | 5 |
6 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 6 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
7 // Use of this source code is governed by a BSD-style license that can be | 7 // Use of this source code is governed by a BSD-style license that can be |
8 // found in the LICENSE file. | 8 // found in the LICENSE file. |
9 | 9 |
10 #ifndef BASE_CALLBACK_H_ | 10 #ifndef BASE_CALLBACK_H_ |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
117 // The design Callback and Bind is heavily influenced by C++'s | 117 // The design Callback and Bind is heavily influenced by C++'s |
118 // tr1::function/tr1::bind, and by the "Google Callback" system used inside | 118 // tr1::function/tr1::bind, and by the "Google Callback" system used inside |
119 // Google. | 119 // Google. |
120 // | 120 // |
121 // | 121 // |
122 // HOW THE IMPLEMENTATION WORKS: | 122 // HOW THE IMPLEMENTATION WORKS: |
123 // | 123 // |
124 // There are three main components to the system: | 124 // There are three main components to the system: |
125 // 1) The Callback classes. | 125 // 1) The Callback classes. |
126 // 2) The Bind() functions. | 126 // 2) The Bind() functions. |
127 // 3) The arguments wrappers (eg., Unretained() and ConstRef()). | 127 // 3) The arguments wrappers (e.g., Unretained() and ConstRef()). |
awong
2011/12/12 21:56:56
Can you also update base/callback.h.pump?
James Hawkins
2011/12/12 22:23:29
Done.
| |
128 // | 128 // |
129 // The Callback classes represent a generic function pointer. Internally, | 129 // The Callback classes represent a generic function pointer. Internally, |
130 // it stores a refcounted piece of state that represents the target function | 130 // it stores a refcounted piece of state that represents the target function |
131 // and all its bound parameters. Each Callback specialization has a templated | 131 // and all its bound parameters. Each Callback specialization has a templated |
132 // constructor that takes an BindStateHolder<> object. In the context of | 132 // constructor that takes an BindStateHolder<> object. In the context of |
133 // the constructor, the static type of this BindStateHolder<> object | 133 // the constructor, the static type of this BindStateHolder<> object |
134 // uniquely identifies the function it is representing, all its bound | 134 // uniquely identifies the function it is representing, all its bound |
135 // parameters, and a DoInvoke() that is capable of invoking the target. | 135 // parameters, and a DoInvoke() that is capable of invoking the target. |
136 // | 136 // |
137 // Callback's constructor is takes the BindStateHolder<> that has the | 137 // Callback's constructor is takes the BindStateHolder<> that has the |
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
641 }; | 641 }; |
642 | 642 |
643 | 643 |
644 // Syntactic sugar to make Callbacks<void(void)> easier to declare since it | 644 // Syntactic sugar to make Callbacks<void(void)> easier to declare since it |
645 // will be used in a lot of APIs with delayed execution. | 645 // will be used in a lot of APIs with delayed execution. |
646 typedef Callback<void(void)> Closure; | 646 typedef Callback<void(void)> Closure; |
647 | 647 |
648 } // namespace base | 648 } // namespace base |
649 | 649 |
650 #endif // BASE_CALLBACK_H | 650 #endif // BASE_CALLBACK_H |
OLD | NEW |