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_MULTI_CLIENT_STATUS_CHANGE_CHECKER_
H_ | 5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_MULTI_CLIENT_STATUS_CHANGE_CHECKER_
H_ |
6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_MULTI_CLIENT_STATUS_CHANGE_CHECKER_
H_ | 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_MULTI_CLIENT_STATUS_CHANGE_CHECKER_
H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/time/time.h" | 11 #include "base/time/time.h" |
12 #include "chrome/browser/sync/test/integration/status_change_checker.h" | 12 #include "chrome/browser/sync/test/integration/status_change_checker.h" |
13 #include "components/sync_driver/sync_service_observer.h" | 13 #include "components/sync/driver/sync_service_observer.h" |
14 | 14 |
15 class ProfileSyncService; | 15 class ProfileSyncService; |
16 | 16 |
17 // This class provides some common functionality for StatusChangeCheckers that | 17 // This class provides some common functionality for StatusChangeCheckers that |
18 // observe many ProfileSyncServices. This class is abstract. Its descendants | 18 // observe many ProfileSyncServices. This class is abstract. Its descendants |
19 // are expected to provide additional functionality. | 19 // are expected to provide additional functionality. |
20 class MultiClientStatusChangeChecker : public StatusChangeChecker, | 20 class MultiClientStatusChangeChecker : public StatusChangeChecker, |
21 public sync_driver::SyncServiceObserver { | 21 public sync_driver::SyncServiceObserver { |
22 public: | 22 public: |
23 explicit MultiClientStatusChangeChecker( | 23 explicit MultiClientStatusChangeChecker( |
(...skipping 14 matching lines...) Expand all Loading... |
38 std::string GetDebugMessage() const override = 0; | 38 std::string GetDebugMessage() const override = 0; |
39 | 39 |
40 protected: | 40 protected: |
41 const std::vector<ProfileSyncService*>& services() { return services_; } | 41 const std::vector<ProfileSyncService*>& services() { return services_; } |
42 | 42 |
43 private: | 43 private: |
44 std::vector<ProfileSyncService*> services_; | 44 std::vector<ProfileSyncService*> services_; |
45 }; | 45 }; |
46 | 46 |
47 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_MULTI_CLIENT_STATUS_CHANGE_CHECK
ER_H_ | 47 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_MULTI_CLIENT_STATUS_CHANGE_CHECK
ER_H_ |
OLD | NEW |