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

Side by Side Diff: storage/browser/fileapi/task_runner_bound_observer_list.h

Issue 1775453002: Replace base::Tuple in //storage with std::tuple (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update #include Created 4 years, 9 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
« no previous file with comments | « storage/browser/fileapi/sandbox_file_stream_writer.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 STORAGE_BROWSER_FILEAPI_TASK_RUNNER_BOUND_OBSERVER_LIST_H_ 5 #ifndef STORAGE_BROWSER_FILEAPI_TASK_RUNNER_BOUND_OBSERVER_LIST_H_
6 #define STORAGE_BROWSER_FILEAPI_TASK_RUNNER_BOUND_OBSERVER_LIST_H_ 6 #define STORAGE_BROWSER_FILEAPI_TASK_RUNNER_BOUND_OBSERVER_LIST_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/sequenced_task_runner.h" 12 #include "base/sequenced_task_runner.h"
13 #include "base/threading/thread.h" 13 #include "base/threading/thread.h"
14 #include "base/tuple.h"
nhiroki 2016/03/08 00:49:26 I see. We should have include this for "DispatchTo
14 15
15 namespace storage { 16 namespace storage {
16 17
17 // A wrapper for dispatching method. 18 // A wrapper for dispatching method.
18 template <class T, class Method, class Params> 19 template <class T, class Method, class Params>
19 void NotifyWrapper(T obj, Method m, const Params& p) { 20 void NotifyWrapper(T obj, Method m, const Params& p) {
20 base::DispatchToMethod(obj, m, p); 21 base::DispatchToMethod(obj, m, p);
21 } 22 }
22 23
23 // An observer list helper to notify on a given task runner. 24 // An observer list helper to notify on a given task runner.
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 class FileChangeObserver; 88 class FileChangeObserver;
88 class FileUpdateObserver; 89 class FileUpdateObserver;
89 90
90 typedef TaskRunnerBoundObserverList<FileAccessObserver> AccessObserverList; 91 typedef TaskRunnerBoundObserverList<FileAccessObserver> AccessObserverList;
91 typedef TaskRunnerBoundObserverList<FileChangeObserver> ChangeObserverList; 92 typedef TaskRunnerBoundObserverList<FileChangeObserver> ChangeObserverList;
92 typedef TaskRunnerBoundObserverList<FileUpdateObserver> UpdateObserverList; 93 typedef TaskRunnerBoundObserverList<FileUpdateObserver> UpdateObserverList;
93 94
94 } // namespace storage 95 } // namespace storage
95 96
96 #endif // STORAGE_BROWSER_FILEAPI_TASK_RUNNER_BOUND_OBSERVER_LIST_H_ 97 #endif // STORAGE_BROWSER_FILEAPI_TASK_RUNNER_BOUND_OBSERVER_LIST_H_
OLDNEW
« no previous file with comments | « storage/browser/fileapi/sandbox_file_stream_writer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698