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

Unified Diff: base/bind_helpers.h

Issue 23514018: Add Reset to ScopedClosureRunner. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: android fix 2 Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/base.gypi ('k') | base/bind_helpers.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/bind_helpers.h
diff --git a/base/bind_helpers.h b/base/bind_helpers.h
index 0cfaab7ece74a5d07817313f977fb919a365c9ff..d717892c8f51e316fe4069192e4f7ec7b408a93a 100644
--- a/base/bind_helpers.h
+++ b/base/bind_helpers.h
@@ -139,10 +139,6 @@
// pointer when invoked. Only use this when necessary.
// In most cases MessageLoop::DeleteSoon() is a better
// fit.
-// ScopedClosureRunner - Scoper object that runs the wrapped closure when it
-// goes out of scope. It's conceptually similar to
-// scoped_ptr<> but calls Run() instead of deleting
-// the pointer.
#ifndef BASE_BIND_HELPERS_H_
#define BASE_BIND_HELPERS_H_
@@ -543,21 +539,6 @@ void DeletePointer(T* obj) {
delete obj;
}
-// ScopedClosureRunner is akin to scoped_ptr for Closures. It ensures that the
-// Closure is executed and deleted no matter how the current scope exits.
-class BASE_EXPORT ScopedClosureRunner {
- public:
- explicit ScopedClosureRunner(const Closure& closure);
- ~ScopedClosureRunner();
-
- Closure Release();
-
- private:
- Closure closure_;
-
- DISALLOW_IMPLICIT_CONSTRUCTORS(ScopedClosureRunner);
-};
-
} // namespace base
#endif // BASE_BIND_HELPERS_H_
« no previous file with comments | « base/base.gypi ('k') | base/bind_helpers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698