| 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_TEST_INTEGRATION_QUIESCE_STATUS_CHANGE_CHECKER_H_ | 5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_QUIESCE_STATUS_CHANGE_CHECKER_H_ |
| 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_QUIESCE_STATUS_CHANGE_CHECKER_H_ | 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_QUIESCE_STATUS_CHANGE_CHECKER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 std::vector<ProfileSyncService*> services); | 34 std::vector<ProfileSyncService*> services); |
| 35 virtual ~QuiesceStatusChangeChecker(); | 35 virtual ~QuiesceStatusChangeChecker(); |
| 36 | 36 |
| 37 // Blocks until all clients have quiesced or we time out. | 37 // Blocks until all clients have quiesced or we time out. |
| 38 void Wait(); | 38 void Wait(); |
| 39 | 39 |
| 40 // A callback function for some helper objects. | 40 // A callback function for some helper objects. |
| 41 void OnServiceStateChanged(ProfileSyncService* service); | 41 void OnServiceStateChanged(ProfileSyncService* service); |
| 42 | 42 |
| 43 // Implementation of StatusChangeChecker. | 43 // Implementation of StatusChangeChecker. |
| 44 virtual bool IsExitConditionSatisfied() OVERRIDE; | 44 virtual bool IsExitConditionSatisfied() override; |
| 45 virtual std::string GetDebugMessage() const OVERRIDE; | 45 virtual std::string GetDebugMessage() const override; |
| 46 | 46 |
| 47 private: | 47 private: |
| 48 std::vector<ProfileSyncService*> services_; | 48 std::vector<ProfileSyncService*> services_; |
| 49 ScopedVector<ProgressMarkerWatcher> observers_; | 49 ScopedVector<ProgressMarkerWatcher> observers_; |
| 50 | 50 |
| 51 DISALLOW_COPY_AND_ASSIGN(QuiesceStatusChangeChecker); | 51 DISALLOW_COPY_AND_ASSIGN(QuiesceStatusChangeChecker); |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_QUIESCE_STATUS_CHANGE_CHECKER_H_ | 54 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_QUIESCE_STATUS_CHANGE_CHECKER_H_ |
| OLD | NEW |