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

Side by Side Diff: base/task.h

Issue 20378: Reduce the amount of included header files. Vast change like in "Oh God! This... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 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 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_TASK_H__ 5 #ifndef BASE_TASK_H_
6 #define BASE_TASK_H__ 6 #define BASE_TASK_H_
7 7
8 #include <set>
9
10 #include "base/basictypes.h"
11 #include "base/logging.h" 8 #include "base/logging.h"
12 #include "base/non_thread_safe.h" 9 #include "base/non_thread_safe.h"
13 #include "base/revocable_store.h" 10 #include "base/revocable_store.h"
14 #include "base/time.h"
15 #include "base/tracked.h" 11 #include "base/tracked.h"
16 #include "base/tuple.h" 12 #include "base/tuple.h"
17 13
18 // Task ------------------------------------------------------------------------ 14 // Task ------------------------------------------------------------------------
19 // 15 //
20 // A task is a generic runnable thingy, usually used for running code on a 16 // A task is a generic runnable thingy, usually used for running code on a
21 // different thread or for scheduling future tasks off of the message loop. 17 // different thread or for scheduling future tasks off of the message loop.
22 18
23 class Task : public tracked_objects::Tracked { 19 class Task : public tracked_objects::Tracked {
24 public: 20 public:
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after
660 public: 656 public:
661 UnboundMethod(Method m, Params p) : m_(m), p_(p) {} 657 UnboundMethod(Method m, Params p) : m_(m), p_(p) {}
662 void Run(T* obj) const { 658 void Run(T* obj) const {
663 DispatchToMethod(obj, m_, p_); 659 DispatchToMethod(obj, m_, p_);
664 } 660 }
665 private: 661 private:
666 Method m_; 662 Method m_;
667 Params p_; 663 Params p_;
668 }; 664 };
669 665
670 #endif // BASE_TASK_H__ 666 #endif // BASE_TASK_H_
671
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698