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

Side by Side Diff: chrome/browser/policy/delayed_work_scheduler.h

Issue 7941008: Cosmetic cleanups in chrome/browser/policy/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Upload was broken? Created 9 years, 3 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_BROWSER_POLICY_DELAYED_WORK_SCHEDULER_H_ 5 #ifndef CHROME_BROWSER_POLICY_DELAYED_WORK_SCHEDULER_H_
6 #define CHROME_BROWSER_POLICY_DELAYED_WORK_SCHEDULER_H_ 6 #define CHROME_BROWSER_POLICY_DELAYED_WORK_SCHEDULER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h"
9 #include "base/callback.h" 10 #include "base/callback.h"
10 #include "base/timer.h" 11 #include "base/timer.h"
11 12
12 namespace policy { 13 namespace policy {
13 14
14 // A mockable class for scheduling and cancelling a delayed task. 15 // A mockable class for scheduling and cancelling a delayed task.
15 // This is only a thin wrapper around base::OneShotTimer. 16 // This is only a thin wrapper around base::OneShotTimer.
16 // This class is not thread-safe: all its methods should be called on the same 17 // This class is not thread-safe: all its methods should be called on the same
17 // thread, and the callback will happen on that same thread. 18 // thread, and the callback will happen on that same thread.
18 class DelayedWorkScheduler { 19 class DelayedWorkScheduler {
(...skipping 12 matching lines...) Expand all
31 base::Closure callback_; 32 base::Closure callback_;
32 33
33 void DoDelayedWork(); 34 void DoDelayedWork();
34 35
35 DISALLOW_COPY_AND_ASSIGN(DelayedWorkScheduler); 36 DISALLOW_COPY_AND_ASSIGN(DelayedWorkScheduler);
36 }; 37 };
37 38
38 } // namespace policy 39 } // namespace policy
39 40
40 #endif // CHROME_BROWSER_POLICY_DELAYED_WORK_SCHEDULER_H_ 41 #endif // CHROME_BROWSER_POLICY_DELAYED_WORK_SCHEDULER_H_
OLDNEW
« no previous file with comments | « chrome/browser/policy/configuration_policy_reader.cc ('k') | chrome/browser/policy/delayed_work_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698