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

Unified Diff: storage/browser/fileapi/task_runner_bound_observer_list.h

Issue 442383002: Move storage-related files from webkit/ to new top-level directory storage/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « storage/browser/fileapi/sandbox_quota_observer.cc ('k') | storage/browser/fileapi/timed_task_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « storage/browser/fileapi/sandbox_quota_observer.cc ('k') | storage/browser/fileapi/timed_task_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698