Index: webkit/browser/fileapi/timed_task_helper.h |
diff --git a/webkit/browser/fileapi/timed_task_helper.h b/webkit/browser/fileapi/timed_task_helper.h |
index 5ea145f667a6a97950f6f35b39c572f17bb020cb..956eb5872a7fac0c1f3d7869eae822aed0ff4de4 100644 |
--- a/webkit/browser/fileapi/timed_task_helper.h |
+++ b/webkit/browser/fileapi/timed_task_helper.h |
@@ -1,59 +1,5 @@ |
-// Copyright 2013 The Chromium Authors. All rights reserved. |
+// Copyright 2014 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 WEBKIT_BROWSER_FILEAPI_TIMED_TASK_HELPER_H_ |
-#define WEBKIT_BROWSER_FILEAPI_TIMED_TASK_HELPER_H_ |
- |
-#include "base/basictypes.h" |
-#include "base/callback.h" |
-#include "base/location.h" |
-#include "base/memory/ref_counted.h" |
-#include "base/memory/scoped_ptr.h" |
-#include "base/time/time.h" |
-#include "webkit/browser/storage_browser_export.h" |
- |
-namespace base { |
-class SequencedTaskRunner; |
-} |
- |
-namespace storage { |
- |
-// Works similarly as base::Timer, but takes SequencedTaskRunner and |
-// runs tasks on it (instead of implicitly bound to a thread). |
-// TODO(kinuko): This has nothing to do with fileapi. Move somewhere |
-// more common place. |
-class STORAGE_EXPORT TimedTaskHelper { |
- public: |
- explicit TimedTaskHelper(base::SequencedTaskRunner* task_runner); |
- ~TimedTaskHelper(); |
- |
- bool IsRunning() const; |
- void Start(const tracked_objects::Location& posted_from, |
- base::TimeDelta delay, |
- const base::Closure& user_task); |
- void Reset(); |
- |
- private: |
- struct Tracker; |
- static void Fired(scoped_ptr<Tracker> tracker); |
- |
- void OnFired(scoped_ptr<Tracker> tracker); |
- void PostDelayedTask(scoped_ptr<Tracker> tracker, base::TimeDelta delay); |
- |
- scoped_refptr<base::SequencedTaskRunner> task_runner_; |
- tracked_objects::Location posted_from_; |
- base::TimeDelta delay_; |
- base::Closure user_task_; |
- |
- base::TimeTicks desired_run_time_; |
- |
- // This is set to non-null and owned by a timer task while timer is running. |
- Tracker* tracker_; |
- |
- DISALLOW_COPY_AND_ASSIGN(TimedTaskHelper); |
-}; |
- |
-} // namespace storage |
- |
-#endif // WEBKIT_BROWSER_FILEAPI_TIMED_TASK_HELPER_H_ |
+#include "storage/browser/fileapi/timed_task_helper.h" |