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

Side by Side Diff: base/bind_helpers.h

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.pump ('k') | base/bind_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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // This defines a set of argument wrappers and related factory methods that 5 // This defines a set of argument wrappers and related factory methods that
6 // can be used specify the refcounting and reference semantics of arguments 6 // can be used specify the refcounting and reference semantics of arguments
7 // that are bound by the Bind() function in base/bind.h. 7 // that are bound by the Bind() function in base/bind.h.
8 // 8 //
9 // It also defines a set of simple functions and utilities that people want 9 // It also defines a set of simple functions and utilities that people want
10 // when using Callback<> and Bind(). 10 // when using Callback<> and Bind().
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 // pointer when invoked. Only use this when necessary. 139 // pointer when invoked. Only use this when necessary.
140 // In most cases MessageLoop::DeleteSoon() is a better 140 // In most cases MessageLoop::DeleteSoon() is a better
141 // fit. 141 // fit.
142 // ScopedClosureRunner - Scoper object that runs the wrapped closure when it 142 // ScopedClosureRunner - Scoper object that runs the wrapped closure when it
143 // goes out of scope. It's conceptually similar to 143 // goes out of scope. It's conceptually similar to
144 // scoped_ptr<> but calls Run() instead of deleting 144 // scoped_ptr<> but calls Run() instead of deleting
145 // the pointer. 145 // the pointer.
146 146
147 #ifndef BASE_BIND_HELPERS_H_ 147 #ifndef BASE_BIND_HELPERS_H_
148 #define BASE_BIND_HELPERS_H_ 148 #define BASE_BIND_HELPERS_H_
149 #pragma once
150 149
151 #include "base/basictypes.h" 150 #include "base/basictypes.h"
152 #include "base/callback.h" 151 #include "base/callback.h"
153 #include "base/memory/weak_ptr.h" 152 #include "base/memory/weak_ptr.h"
154 #include "base/template_util.h" 153 #include "base/template_util.h"
155 154
156 namespace base { 155 namespace base {
157 namespace internal { 156 namespace internal {
158 157
159 // Use the Substitution Failure Is Not An Error (SFINAE) trick to inspect T 158 // Use the Substitution Failure Is Not An Error (SFINAE) trick to inspect T
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 553
555 private: 554 private:
556 Closure closure_; 555 Closure closure_;
557 556
558 DISALLOW_IMPLICIT_CONSTRUCTORS(ScopedClosureRunner); 557 DISALLOW_IMPLICIT_CONSTRUCTORS(ScopedClosureRunner);
559 }; 558 };
560 559
561 } // namespace base 560 } // namespace base
562 561
563 #endif // BASE_BIND_HELPERS_H_ 562 #endif // BASE_BIND_HELPERS_H_
OLDNEW
« no previous file with comments | « base/bind.h.pump ('k') | base/bind_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698