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

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

Issue 10735044: Remove #pragma once. Just from base/ for now. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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
« no previous file with comments | « base/bind.h ('k') | base/bind_helpers.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 $$ 8 $$
9 $$ MAX_ARITY controls the number of arguments that Bind() supports. 9 $$ MAX_ARITY controls the number of arguments that Bind() supports.
10 $$ The amount of code, and more importantly, the number of template types 10 $$ The amount of code, and more importantly, the number of template types
(...skipping 13 matching lines...) Expand all
24 $$ See http://crbug.com/98542 for more context. 24 $$ See http://crbug.com/98542 for more context.
25 $$ 25 $$
26 $var MAX_ARITY = 7 26 $var MAX_ARITY = 7
27 27
28 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 28 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
29 // Use of this source code is governed by a BSD-style license that can be 29 // Use of this source code is governed by a BSD-style license that can be
30 // found in the LICENSE file. 30 // found in the LICENSE file.
31 31
32 #ifndef BASE_BIND_H_ 32 #ifndef BASE_BIND_H_
33 #define BASE_BIND_H_ 33 #define BASE_BIND_H_
34 #pragma once
35 34
36 #include "base/bind_internal.h" 35 #include "base/bind_internal.h"
37 #include "base/callback_internal.h" 36 #include "base/callback_internal.h"
38 37
39 // See base/callback.h for how to use these functions. If reading the 38 // See base/callback.h for how to use these functions. If reading the
40 // implementation, before proceeding further, you should read the top 39 // implementation, before proceeding further, you should read the top
41 // comment of base/bind_internal.h for a definition of common terms and 40 // comment of base/bind_internal.h for a definition of common terms and
42 // concepts. 41 // concepts.
43 // 42 //
44 // IMPLEMENTATION NOTE 43 // IMPLEMENTATION NOTE
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 return Callback<typename BindState::UnboundRunType>( 133 return Callback<typename BindState::UnboundRunType>(
135 new BindState(internal::MakeRunnable(functor)[[]] 134 new BindState(internal::MakeRunnable(functor)[[]]
136 $if ARITY > 0 [[, ]] $for ARG , [[p$(ARG)]])); 135 $if ARITY > 0 [[, ]] $for ARG , [[p$(ARG)]]));
137 } 136 }
138 137
139 ]] $$ for ARITY 138 ]] $$ for ARITY
140 139
141 } // namespace base 140 } // namespace base
142 141
143 #endif // BASE_BIND_H_ 142 #endif // BASE_BIND_H_
OLDNEW
« no previous file with comments | « base/bind.h ('k') | base/bind_helpers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698