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

Side by Side Diff: base/callback.h

Issue 1774443002: Replace template_util.h stuff with C++11 <type_traits> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert unrelated whitespace change Created 4 years, 9 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
« no previous file with comments | « base/bind_internal.h ('k') | base/callback_internal.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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 BASE_CALLBACK_H_ 5 #ifndef BASE_CALLBACK_H_
6 #define BASE_CALLBACK_H_ 6 #define BASE_CALLBACK_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/callback_internal.h" 9 #include "base/callback_internal.h"
10 #include "base/template_util.h"
11 10
12 // NOTE: Header files that do not require the full definition of Callback or 11 // NOTE: Header files that do not require the full definition of Callback or
13 // Closure should #include "base/callback_forward.h" instead of this file. 12 // Closure should #include "base/callback_forward.h" instead of this file.
14 13
15 // ----------------------------------------------------------------------------- 14 // -----------------------------------------------------------------------------
16 // Introduction 15 // Introduction
17 // ----------------------------------------------------------------------------- 16 // -----------------------------------------------------------------------------
18 // 17 //
19 // The templated Callback class is a generalized function object. Together 18 // The templated Callback class is a generalized function object. Together
20 // with the Bind() function in bind.h, they provide a type-safe method for 19 // with the Bind() function in bind.h, they provide a type-safe method for
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 395
397 private: 396 private:
398 using PolymorphicInvoke = 397 using PolymorphicInvoke =
399 R(*)(internal::BindStateBase*, 398 R(*)(internal::BindStateBase*,
400 typename internal::CallbackParamTraits<Args>::ForwardType...); 399 typename internal::CallbackParamTraits<Args>::ForwardType...);
401 }; 400 };
402 401
403 } // namespace base 402 } // namespace base
404 403
405 #endif // BASE_CALLBACK_H_ 404 #endif // BASE_CALLBACK_H_
OLDNEW
« no previous file with comments | « base/bind_internal.h ('k') | base/callback_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698