Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(405)

Side by Side Diff: base/bind.h.pump

Issue 6542026: Callback: De-inline CallbackBase, and move to callback_helpers -> callback_internal.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/base
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 $$ This is a pump file for generating file templates. Pump is a python 1 $$ This is a pump file for generating file templates. Pump is a python
2 $$ script that is part of the Google Test suite of utilities. Description 2 $$ script that is part of the Google Test suite of utilities. Description
3 $$ can be found here: 3 $$ can be found here:
4 $$ 4 $$
5 $$ http://code.google.com/p/googletest/wiki/PumpManual 5 $$ http://code.google.com/p/googletest/wiki/PumpManual
6 $$ 6 $$
7 7
8 $var MAX_ARITY = 6 8 $var MAX_ARITY = 6
9 9
10 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 10 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
11 // Use of this source code is governed by a BSD-style license that can be 11 // Use of this source code is governed by a BSD-style license that can be
12 // found in the LICENSE file. 12 // found in the LICENSE file.
13 13
14 #ifndef BASE_BIND_H_ 14 #ifndef BASE_BIND_H_
15 #define BASE_BIND_H_ 15 #define BASE_BIND_H_
16 #pragma once 16 #pragma once
17 17
18 #include "base/bind_internal.h" 18 #include "base/bind_internal.h"
19 #include "base/callback_helpers.h" 19 #include "base/callback_internal.h"
20 20
21 // See base/callback.h for how to use these functions. 21 // See base/callback.h for how to use these functions.
22 // 22 //
23 // IMPLEMENTATION NOTE 23 // IMPLEMENTATION NOTE
24 // Though Bind()'s result is meant to be stored in a Callback<> type, it 24 // Though Bind()'s result is meant to be stored in a Callback<> type, it
25 // cannot actually return the exact type without requiring a large amount 25 // cannot actually return the exact type without requiring a large amount
26 // of extra template specializations. The problem is that in order to 26 // of extra template specializations. The problem is that in order to
27 // discern the correct specialization of Callback<>, Bind would need to 27 // discern the correct specialization of Callback<>, Bind would need to
28 // unwrap the function signature to determine the signature's arity, and 28 // unwrap the function signature to determine the signature's arity, and
29 // whether or not it is a method. 29 // whether or not it is a method.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 f, $for BOUND_ARG , [[p$(BOUND_ARG)]])); 62 f, $for BOUND_ARG , [[p$(BOUND_ARG)]]));
63 } 63 }
64 64
65 ]] 65 ]]
66 66
67 ]] $$ for BOUND 67 ]] $$ for BOUND
68 68
69 } // namespace base 69 } // namespace base
70 70
71 #endif // BASE_BIND_H_ 71 #endif // BASE_BIND_H_
OLDNEW
« no previous file with comments | « base/bind.h ('k') | base/bind_internal.h » ('j') | base/callback_internal.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698