OLD | NEW |
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 CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNCABLE_FILE_SYSTEM_UTIL_H_ | 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNCABLE_FILE_SYSTEM_UTIL_H_ |
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNCABLE_FILE_SYSTEM_UTIL_H_ | 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNCABLE_FILE_SYSTEM_UTIL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 private: | 95 private: |
96 bool was_enabled_; | 96 bool was_enabled_; |
97 | 97 |
98 DISALLOW_COPY_AND_ASSIGN(ScopedDisableSyncFSV2); | 98 DISALLOW_COPY_AND_ASSIGN(ScopedDisableSyncFSV2); |
99 }; | 99 }; |
100 | 100 |
101 // Posts |callback| to the current thread. | 101 // Posts |callback| to the current thread. |
102 void RunSoon(const tracked_objects::Location& from_here, | 102 void RunSoon(const tracked_objects::Location& from_here, |
103 const base::Closure& callback); | 103 const base::Closure& callback); |
104 | 104 |
| 105 base::Closure NoopClosure(); |
| 106 |
105 } // namespace sync_file_system | 107 } // namespace sync_file_system |
106 | 108 |
107 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNCABLE_FILE_SYSTEM_UTIL_H_ | 109 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNCABLE_FILE_SYSTEM_UTIL_H_ |
OLD | NEW |