OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 COMPONENTS_BROWSER_SYNC_SIGNIN_CONFIRMATION_HELPER_H_ | 5 #ifndef COMPONENTS_BROWSER_SYNC_SIGNIN_CONFIRMATION_HELPER_H_ |
6 #define COMPONENTS_BROWSER_SYNC_SIGNIN_CONFIRMATION_HELPER_H_ | 6 #define COMPONENTS_BROWSER_SYNC_SIGNIN_CONFIRMATION_HELPER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/task/cancelable_task_tracker.h" | 12 #include "base/task/cancelable_task_tracker.h" |
13 | 13 |
| 14 namespace base { |
| 15 class SingleThreadTaskRunner; |
| 16 } |
| 17 |
14 namespace history { | 18 namespace history { |
15 class HistoryService; | 19 class HistoryService; |
16 class QueryResults; | 20 class QueryResults; |
17 } | 21 } |
18 | 22 |
19 namespace browser_sync { | 23 namespace browser_sync { |
20 | 24 |
21 // Helper class for sync signin to check some asynchronous conditions. Call | 25 // Helper class for sync signin to check some asynchronous conditions. Call |
22 // either CheckHasHistory or CheckHasTypedUrls or both, and |return_result| | 26 // either CheckHasHistory or CheckHasTypedUrls or both, and |return_result| |
23 // will be called with true if either returns true, otherwise false. | 27 // will be called with true if either returns true, otherwise false. |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 | 65 |
62 // Callback to pass the result back to the caller. | 66 // Callback to pass the result back to the caller. |
63 const base::Callback<void(bool)> return_result_; | 67 const base::Callback<void(bool)> return_result_; |
64 | 68 |
65 DISALLOW_COPY_AND_ASSIGN(SigninConfirmationHelper); | 69 DISALLOW_COPY_AND_ASSIGN(SigninConfirmationHelper); |
66 }; | 70 }; |
67 | 71 |
68 } // namespace browser_sync | 72 } // namespace browser_sync |
69 | 73 |
70 #endif // COMPONENTS_BROWSER_SYNC_SIGNIN_CONFIRMATION_HELPER_H_ | 74 #endif // COMPONENTS_BROWSER_SYNC_SIGNIN_CONFIRMATION_HELPER_H_ |
OLD | NEW |