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

Side by Side Diff: trunk/src/webkit/fileapi/task_runner_bound_observer_list.h

Issue 14985007: Revert 198844 "Move sequenced_task_runner to base/task" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 7 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_FILEAPI_TASK_RUNNER_BOUND_OBSERVER_LIST_H_ 5 #ifndef WEBKIT_FILEAPI_TASK_RUNNER_BOUND_OBSERVER_LIST_H_
6 #define WEBKIT_FILEAPI_TASK_RUNNER_BOUND_OBSERVER_LIST_H_ 6 #define WEBKIT_FILEAPI_TASK_RUNNER_BOUND_OBSERVER_LIST_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/task/sequenced_task_runner.h" 13 #include "base/sequenced_task_runner.h"
14 #include "base/threading/thread.h" 14 #include "base/threading/thread.h"
15 15
16 namespace fileapi { 16 namespace fileapi {
17 17
18 // A wrapper for dispatching method. 18 // A wrapper for dispatching method.
19 template <class T, class Method, class Params> 19 template <class T, class Method, class Params>
20 void NotifyWrapper(T obj, Method m, const Params& p) { 20 void NotifyWrapper(T obj, Method m, const Params& p) {
21 DispatchToMethod(base::internal::UnwrapTraits<T>::Unwrap(obj), m, p); 21 DispatchToMethod(base::internal::UnwrapTraits<T>::Unwrap(obj), m, p);
22 } 22 }
23 23
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 class FileChangeObserver; 100 class FileChangeObserver;
101 class FileUpdateObserver; 101 class FileUpdateObserver;
102 102
103 typedef TaskRunnerBoundObserverList<FileAccessObserver> AccessObserverList; 103 typedef TaskRunnerBoundObserverList<FileAccessObserver> AccessObserverList;
104 typedef TaskRunnerBoundObserverList<FileChangeObserver> ChangeObserverList; 104 typedef TaskRunnerBoundObserverList<FileChangeObserver> ChangeObserverList;
105 typedef TaskRunnerBoundObserverList<FileUpdateObserver> UpdateObserverList; 105 typedef TaskRunnerBoundObserverList<FileUpdateObserver> UpdateObserverList;
106 106
107 } // namespace fileapi 107 } // namespace fileapi
108 108
109 #endif // WEBKIT_FILEAPI_TASK_RUNNER_BOUND_OBSERVER_LIST_H_ 109 #endif // WEBKIT_FILEAPI_TASK_RUNNER_BOUND_OBSERVER_LIST_H_
OLDNEW
« no previous file with comments | « trunk/src/webkit/fileapi/syncable/local_file_change_tracker.cc ('k') | trunk/src/webkit/fileapi/test_mount_point_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698