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

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

Issue 10698145: Remove #pragma once from chrome/browser/policy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | 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
8 7
9 #include "base/basictypes.h" 8 #include "base/basictypes.h"
10 #include "base/callback.h" 9 #include "base/callback.h"
11 #include "base/timer.h" 10 #include "base/timer.h"
12 11
13 namespace policy { 12 namespace policy {
14 13
15 // A mockable class for scheduling and cancelling a delayed task. 14 // A mockable class for scheduling and cancelling a delayed task.
16 // This is only a thin wrapper around base::OneShotTimer. 15 // This is only a thin wrapper around base::OneShotTimer.
17 // This class is not thread-safe: all its methods should be called on the same 16 // This class is not thread-safe: all its methods should be called on the same
(...skipping 14 matching lines...) Expand all
32 base::Closure callback_; 31 base::Closure callback_;
33 32
34 void DoDelayedWork(); 33 void DoDelayedWork();
35 34
36 DISALLOW_COPY_AND_ASSIGN(DelayedWorkScheduler); 35 DISALLOW_COPY_AND_ASSIGN(DelayedWorkScheduler);
37 }; 36 };
38 37
39 } // namespace policy 38 } // namespace policy
40 39
41 #endif // CHROME_BROWSER_POLICY_DELAYED_WORK_SCHEDULER_H_ 40 #endif // CHROME_BROWSER_POLICY_DELAYED_WORK_SCHEDULER_H_
OLDNEW
« no previous file with comments | « chrome/browser/policy/cros_user_policy_cache.h ('k') | chrome/browser/policy/device_management_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698