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

Side by Side Diff: chrome/renderer/net/mockable_one_shot_timer.h

Issue 136203009: Support auto-reload on errors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Add UMA Created 6 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
OLDNEW
(Empty)
1 // Copyright 2014 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_RENDERER_NET_MOCKABLE_ONE_SHOT_TIMER_H_
6 #define CHROME_RENDERER_NET_MOCKABLE_ONE_SHOT_TIMER_H_
7
8 #include <base/callback.h>
9 #include <base/macros.h>
10 #include <base/timer/timer.h>
mmenke 2014/02/14 17:56:10 These should all use quotes.
Elly Fong-Jones 2014/02/25 19:19:52 Done.
11
12 class MockableOneShotTimer {
13 public:
14 MockableOneShotTimer();
15 virtual ~MockableOneShotTimer();
16 virtual void Start(const tracked_objects::Location& posted_from,
17 base::TimeDelta delay,
18 const base::Closure& task);
19 virtual void Stop();
20 virtual bool IsRunning() const;
mmenke 2014/02/14 17:56:10 Maybe a comment that these all mirror base::OneSho
Elly Fong-Jones 2014/02/25 19:19:52 Done.
21
22 private:
23 void Fired();
24
25 base::OneShotTimer<MockableOneShotTimer> timer_;
26 base::Closure task_;
27
28 DISALLOW_COPY_AND_ASSIGN(MockableOneShotTimer);
29 };
30
31 #endif // CHROME_RENDERER_NET_MOCKABLE_ONE_SHOT_TIMER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698