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

Side by Side Diff: jingle/notifier/base/task_pump.h

Issue 2885005: Move chrome/common/net/notifier to jingle/notifier so that it can be used by remoting/remoting.gyp. (Closed) Base URL: git://codf21.jail.google.com/chromium.git
Patch Set: rebased Created 10 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
« no previous file with comments | « jingle/notifier/base/static_assert.h ('k') | jingle/notifier/base/task_pump.cc » ('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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 CHROME_COMMON_NET_NOTIFIER_BASE_TASK_PUMP_H_ 5 #ifndef JINGLE_NOTIFIER_BASE_TASK_PUMP_H_
6 #define CHROME_COMMON_NET_NOTIFIER_BASE_TASK_PUMP_H_ 6 #define JINGLE_NOTIFIER_BASE_TASK_PUMP_H_
7 7
8 #include "base/task.h" 8 #include "base/task.h"
9 #include "talk/base/taskrunner.h" 9 #include "talk/base/taskrunner.h"
10 10
11 namespace notifier { 11 namespace notifier {
12 12
13 class TaskPump : public talk_base::TaskRunner { 13 class TaskPump : public talk_base::TaskRunner {
14 public: 14 public:
15 TaskPump(); 15 TaskPump();
16 16
17 virtual ~TaskPump(); 17 virtual ~TaskPump();
18 18
19 // talk_base::TaskRunner implementation. 19 // talk_base::TaskRunner implementation.
20 virtual void WakeTasks(); 20 virtual void WakeTasks();
21 virtual int64 CurrentTime(); 21 virtual int64 CurrentTime();
22 22
23 private: 23 private:
24 void CheckAndRunTasks(); 24 void CheckAndRunTasks();
25 25
26 ScopedRunnableMethodFactory<TaskPump> scoped_runnable_method_factory_; 26 ScopedRunnableMethodFactory<TaskPump> scoped_runnable_method_factory_;
27 bool posted_wake_; 27 bool posted_wake_;
28 28
29 DISALLOW_COPY_AND_ASSIGN(TaskPump); 29 DISALLOW_COPY_AND_ASSIGN(TaskPump);
30 }; 30 };
31 31
32 } // namespace notifier 32 } // namespace notifier
33 33
34 #endif // CHROME_COMMON_NET_NOTIFIER_BASE_TASK_PUMP_H_ 34 #endif // JINGLE_NOTIFIER_BASE_TASK_PUMP_H_
OLDNEW
« no previous file with comments | « jingle/notifier/base/static_assert.h ('k') | jingle/notifier/base/task_pump.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698