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

Side by Side Diff: chrome/common/net/notifier/base/task_pump.cc

Issue 2255007: New libjingle integrated to chrome. (Closed)
Patch Set: - Created 10 years, 6 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
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 #include "base/message_loop.h" 5 #include "base/message_loop.h"
6 #include "chrome/common/net/notifier/base/task_pump.h" 6 #include "chrome/common/net/notifier/base/task_pump.h"
7 7
8 namespace notifier { 8 namespace notifier {
9 9
10 TaskPump::TaskPump() 10 TaskPump::TaskPump()
(...skipping 17 matching lines...) Expand all
28 int64 TaskPump::CurrentTime() { 28 int64 TaskPump::CurrentTime() {
29 // Only timeout tasks rely on this function. Since we're not using 29 // Only timeout tasks rely on this function. Since we're not using
30 // libjingle tasks for timeout, it's safe to return 0 here. 30 // libjingle tasks for timeout, it's safe to return 0 here.
31 return 0; 31 return 0;
32 } 32 }
33 33
34 void TaskPump::CheckAndRunTasks() { 34 void TaskPump::CheckAndRunTasks() {
35 posted_wake_ = false; 35 posted_wake_ = false;
36 // We shouldn't be using libjingle for timeout tasks, so we should 36 // We shouldn't be using libjingle for timeout tasks, so we should
37 // have no timeout tasks at all. 37 // have no timeout tasks at all.
38 DCHECK(!HasTimeoutTask()); 38
39 // TODO(akalin): Add HasTimeoutTask() back in TaskRunner class and
40 // uncomment this check.
41 // DCHECK(!HasTimeoutTask())
39 RunTasks(); 42 RunTasks();
40 } 43 }
41 44
42 } // namespace notifier 45 } // namespace notifier
OLDNEW
« no previous file with comments | « chrome/browser/sync/tools/sync_listen_notifications.cc ('k') | chrome/common/net/notifier/communicator/connection_settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698