OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_DRIVE_BACKEND_CALLBACK_TRACKER_H_ | 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_CALLBACK_TRACKER_H_ |
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_CALLBACK_TRACKER_H_ | 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_CALLBACK_TRACKER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/callback_forward.h" | 11 #include "base/callback_forward.h" |
| 12 #include "base/macros.h" |
12 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
13 #include "chrome/browser/sync_file_system/drive_backend/callback_tracker_interna
l.h" | 14 #include "chrome/browser/sync_file_system/drive_backend/callback_tracker_interna
l.h" |
14 | 15 |
15 namespace sync_file_system { | 16 namespace sync_file_system { |
16 namespace drive_backend { | 17 namespace drive_backend { |
17 | 18 |
18 // A helper class to ensure one-shot callback to be called exactly once. | 19 // A helper class to ensure one-shot callback to be called exactly once. |
19 // | 20 // |
20 // Usage: | 21 // Usage: |
21 // class Foo { | 22 // class Foo { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 | 64 |
64 AbortClosureByHelper helpers_; // Owns AbortHelpers. | 65 AbortClosureByHelper helpers_; // Owns AbortHelpers. |
65 | 66 |
66 DISALLOW_COPY_AND_ASSIGN(CallbackTracker); | 67 DISALLOW_COPY_AND_ASSIGN(CallbackTracker); |
67 }; | 68 }; |
68 | 69 |
69 } // namespace drive_backend | 70 } // namespace drive_backend |
70 } // namespace sync_file_system | 71 } // namespace sync_file_system |
71 | 72 |
72 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_CALLBACK_TRACKER_H_ | 73 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_CALLBACK_TRACKER_H_ |
OLD | NEW |