| Index: storage/browser/fileapi/task_runner_bound_observer_list.h
|
| diff --git a/webkit/browser/fileapi/task_runner_bound_observer_list.h b/storage/browser/fileapi/task_runner_bound_observer_list.h
|
| similarity index 95%
|
| rename from webkit/browser/fileapi/task_runner_bound_observer_list.h
|
| rename to storage/browser/fileapi/task_runner_bound_observer_list.h
|
| index 36a3393fe1d5427af037c8c4687be805258b4268..51d9d724c3c49be1628c7d01147bd1351a1b4bbc 100644
|
| --- a/webkit/browser/fileapi/task_runner_bound_observer_list.h
|
| +++ b/storage/browser/fileapi/task_runner_bound_observer_list.h
|
| @@ -13,7 +13,7 @@
|
| #include "base/sequenced_task_runner.h"
|
| #include "base/threading/thread.h"
|
|
|
| -namespace fileapi {
|
| +namespace storage {
|
|
|
| // A wrapper for dispatching method.
|
| template <class T, class Method, class Params>
|
| @@ -68,7 +68,8 @@ class TaskRunnerBoundObserverList {
|
| (base::internal::ParamsUseScopedRefptrCorrectly<Params>::value),
|
| badunboundmethodparams);
|
| for (typename ObserversListMap::const_iterator it = observers_.begin();
|
| - it != observers_.end(); ++it) {
|
| + it != observers_.end();
|
| + ++it) {
|
| if (!it->second.get() || it->second->RunsTasksOnCurrentThread()) {
|
| DispatchToMethod(UnwrapTraits::Unwrap(it->first), method, params);
|
| continue;
|
| @@ -76,7 +77,9 @@ class TaskRunnerBoundObserverList {
|
| it->second->PostTask(
|
| FROM_HERE,
|
| base::Bind(&NotifyWrapper<ObserverStoreType, Method, Params>,
|
| - it->first, method, params));
|
| + it->first,
|
| + method,
|
| + params));
|
| }
|
| }
|
|
|
| @@ -94,6 +97,6 @@ typedef TaskRunnerBoundObserverList<FileAccessObserver> AccessObserverList;
|
| typedef TaskRunnerBoundObserverList<FileChangeObserver> ChangeObserverList;
|
| typedef TaskRunnerBoundObserverList<FileUpdateObserver> UpdateObserverList;
|
|
|
| -} // namespace fileapi
|
| +} // namespace storage
|
|
|
| #endif // WEBKIT_BROWSER_FILEAPI_TASK_RUNNER_BOUND_OBSERVER_LIST_H_
|
|
|