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

Side by Side Diff: webkit/browser/fileapi/timed_task_helper.h

Issue 492873002: Collapse fileapi, webkit_blob, webkit_database, quota, and webkit_common namespaces into single sto… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix chromeos build Created 6 years, 4 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 WEBKIT_BROWSER_FILEAPI_TIMED_TASK_HELPER_H_ 5 #ifndef WEBKIT_BROWSER_FILEAPI_TIMED_TASK_HELPER_H_
6 #define WEBKIT_BROWSER_FILEAPI_TIMED_TASK_HELPER_H_ 6 #define WEBKIT_BROWSER_FILEAPI_TIMED_TASK_HELPER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/location.h" 10 #include "base/location.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/time/time.h" 13 #include "base/time/time.h"
14 #include "webkit/browser/webkit_storage_browser_export.h" 14 #include "webkit/browser/webkit_storage_browser_export.h"
15 15
16 namespace base { 16 namespace base {
17 class SequencedTaskRunner; 17 class SequencedTaskRunner;
18 } 18 }
19 19
20 namespace fileapi { 20 namespace storage {
21 21
22 // Works similarly as base::Timer, but takes SequencedTaskRunner and 22 // Works similarly as base::Timer, but takes SequencedTaskRunner and
23 // runs tasks on it (instead of implicitly bound to a thread). 23 // runs tasks on it (instead of implicitly bound to a thread).
24 // TODO(kinuko): This has nothing to do with fileapi. Move somewhere 24 // TODO(kinuko): This has nothing to do with fileapi. Move somewhere
25 // more common place. 25 // more common place.
26 class WEBKIT_STORAGE_BROWSER_EXPORT TimedTaskHelper { 26 class WEBKIT_STORAGE_BROWSER_EXPORT TimedTaskHelper {
27 public: 27 public:
28 explicit TimedTaskHelper(base::SequencedTaskRunner* task_runner); 28 explicit TimedTaskHelper(base::SequencedTaskRunner* task_runner);
29 ~TimedTaskHelper(); 29 ~TimedTaskHelper();
30 30
(...skipping 16 matching lines...) Expand all
47 base::Closure user_task_; 47 base::Closure user_task_;
48 48
49 base::TimeTicks desired_run_time_; 49 base::TimeTicks desired_run_time_;
50 50
51 // This is set to non-null and owned by a timer task while timer is running. 51 // This is set to non-null and owned by a timer task while timer is running.
52 Tracker* tracker_; 52 Tracker* tracker_;
53 53
54 DISALLOW_COPY_AND_ASSIGN(TimedTaskHelper); 54 DISALLOW_COPY_AND_ASSIGN(TimedTaskHelper);
55 }; 55 };
56 56
57 } // namespace fileapi 57 } // namespace storage
58 58
59 #endif // WEBKIT_BROWSER_FILEAPI_TIMED_TASK_HELPER_H_ 59 #endif // WEBKIT_BROWSER_FILEAPI_TIMED_TASK_HELPER_H_
OLDNEW
« no previous file with comments | « webkit/browser/fileapi/task_runner_bound_observer_list.h ('k') | webkit/browser/fileapi/timed_task_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698