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

Unified Diff: core/scheduler.h

Issue 624713003: Keep only base/extractor.[cc|h]. (Closed) Base URL: https://chromium.googlesource.com/external/omaha.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « core/google_update_core_unittest.cc ('k') | core/scheduler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/scheduler.h
diff --git a/core/scheduler.h b/core/scheduler.h
deleted file mode 100644
index 88ea5c8f38848e83a1007a2e5beea77ecf8d302f..0000000000000000000000000000000000000000
--- a/core/scheduler.h
+++ /dev/null
@@ -1,63 +0,0 @@
-// Copyright 2007-2009 Google Inc.
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-// ========================================================================
-
-// TODO(omaha): consider using a waitable timer registered with the reactor. It
-// seems a lot less code than using the QueueTimer class.
-
-#ifndef OMAHA_CORE_SCHEDULER_H__
-#define OMAHA_CORE_SCHEDULER_H__
-
-#include <windows.h>
-#include <atlstr.h>
-#include "base/basictypes.h"
-#include "base/scoped_ptr.h"
-
-namespace omaha {
-
-class Core;
-class HighresTimer;
-class QueueTimer;
-
-class Scheduler {
- public:
- explicit Scheduler(const Core& core);
- ~Scheduler();
-
- // Starts the scheduler.
- HRESULT Initialize();
-
- private:
- static void TimerCallback(QueueTimer* timer);
- void HandleCallback(QueueTimer* timer);
- HRESULT ScheduleUpdateTimer(int interval_ms);
- HRESULT ScheduleCodeRedTimer(int interval_ms);
-
- const Core& core_;
- HANDLE timer_queue_;
- scoped_ptr<QueueTimer> update_timer_;
- scoped_ptr<QueueTimer> code_red_timer_;
-
- // Measures the actual time interval between code red events for debugging
- // purposes. The timer is started when a code red alarm is set and then,
- // the value of the timer is read when the alarm goes off.
- scoped_ptr<HighresTimer> cr_debug_timer_;
-
- DISALLOW_EVIL_CONSTRUCTORS(Scheduler);
-};
-
-} // namespace omaha
-
-#endif // OMAHA_CORE_SCHEDULER_H__
-
« no previous file with comments | « core/google_update_core_unittest.cc ('k') | core/scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698