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

Unified Diff: chrome/browser/policy/delayed_work_scheduler.h

Issue 11946017: Remove old cloud policy code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address nits. Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/policy/delayed_work_scheduler.h
diff --git a/chrome/browser/policy/delayed_work_scheduler.h b/chrome/browser/policy/delayed_work_scheduler.h
deleted file mode 100644
index b41fe1b00adfccd408d2cc8b31ef82d6a0fc4fa9..0000000000000000000000000000000000000000
--- a/chrome/browser/policy/delayed_work_scheduler.h
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_POLICY_DELAYED_WORK_SCHEDULER_H_
-#define CHROME_BROWSER_POLICY_DELAYED_WORK_SCHEDULER_H_
-
-#include "base/basictypes.h"
-#include "base/callback.h"
-#include "base/timer.h"
-
-namespace policy {
-
-// A mockable class for scheduling and cancelling a delayed task.
-// This is only a thin wrapper around base::OneShotTimer.
-// This class is not thread-safe: all its methods should be called on the same
-// thread, and the callback will happen on that same thread.
-class DelayedWorkScheduler {
- public:
- DelayedWorkScheduler();
- virtual ~DelayedWorkScheduler();
-
- // Cancels the delayed work task.
- virtual void CancelDelayedWork();
-
- // Posts a new delayed task.
- virtual void PostDelayedWork(const base::Closure& callback, int64 delay);
-
- private:
- base::OneShotTimer<DelayedWorkScheduler> timer_;
- base::Closure callback_;
-
- void DoDelayedWork();
-
- DISALLOW_COPY_AND_ASSIGN(DelayedWorkScheduler);
-};
-
-} // namespace policy
-
-#endif // CHROME_BROWSER_POLICY_DELAYED_WORK_SCHEDULER_H_
« no previous file with comments | « chrome/browser/policy/cros_user_policy_cache_unittest.cc ('k') | chrome/browser/policy/delayed_work_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698