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

Side by Side Diff: chrome/browser/sync/notifier/base/timer.h

Issue 1956001: Moved XMPP notifier library from chrome/browser/sync to chrome/common.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 7 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_SYNC_NOTIFIER_BASE_TIMER_H_
6 #define CHROME_BROWSER_SYNC_NOTIFIER_BASE_TIMER_H_
7
8 #include "talk/base/task.h"
9
10 namespace notifier {
11
12 class Timer : private talk_base::Task {
13 public:
14 Timer(talk_base::Task* parent, int timeout_seconds, bool repeat);
15 ~Timer();
16
17 // Call Abort() to stop the timer.
18 using talk_base::Task::Abort;
19
20 // Call to find out when the timer is set to go off. Returns int64.
21 using talk_base::Task::get_timeout_time;
22
23 // Call to set the timeout interval.
24 using talk_base::Task::set_timeout_seconds;
25
26 using talk_base::Task::SignalTimeout;
27
28 private:
29 virtual int OnTimeout();
30 virtual int ProcessStart();
31
32 bool repeat_;
33
34 DISALLOW_COPY_AND_ASSIGN(Timer);
35 };
36
37 } // namespace notifier
38
39 #endif // CHROME_BROWSER_SYNC_NOTIFIER_BASE_TIMER_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/notifier/base/time_unittest.cc ('k') | chrome/browser/sync/notifier/base/timer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698