| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_UI_AVATAR_BUTTON_ERROR_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_AVATAR_BUTTON_ERROR_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_AVATAR_BUTTON_ERROR_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_AVATAR_BUTTON_ERROR_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/ui/avatar_button_error_controller_delegate.h" | 8 #include "chrome/browser/ui/avatar_button_error_controller_delegate.h" |
| 9 #include "components/signin/core/browser/signin_error_controller.h" | 9 #include "components/signin/core/browser/signin_error_controller.h" |
| 10 #include "components/sync_driver/sync_error_controller.h" | 10 #include "components/sync/driver/sync_error_controller.h" |
| 11 | 11 |
| 12 class Profile; | 12 class Profile; |
| 13 | 13 |
| 14 // Keeps track of the signin and sync errors that should be exposed to the user | 14 // Keeps track of the signin and sync errors that should be exposed to the user |
| 15 // in the avatar button. | 15 // in the avatar button. |
| 16 class AvatarButtonErrorController { | 16 class AvatarButtonErrorController { |
| 17 public: | 17 public: |
| 18 AvatarButtonErrorController(AvatarButtonErrorControllerDelegate* delegate, | 18 AvatarButtonErrorController(AvatarButtonErrorControllerDelegate* delegate, |
| 19 Profile* profile); | 19 Profile* profile); |
| 20 ~AvatarButtonErrorController(); | 20 ~AvatarButtonErrorController(); |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 SigninErrorObserver avatar_signin_error_controller_; | 77 SigninErrorObserver avatar_signin_error_controller_; |
| 78 SyncErrorObserver avatar_sync_error_controller_; | 78 SyncErrorObserver avatar_sync_error_controller_; |
| 79 | 79 |
| 80 bool has_signin_error_; | 80 bool has_signin_error_; |
| 81 bool has_sync_error_; | 81 bool has_sync_error_; |
| 82 | 82 |
| 83 DISALLOW_COPY_AND_ASSIGN(AvatarButtonErrorController); | 83 DISALLOW_COPY_AND_ASSIGN(AvatarButtonErrorController); |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 #endif // CHROME_BROWSER_UI_AVATAR_BUTTON_ERROR_CONTROLLER_H_ | 86 #endif // CHROME_BROWSER_UI_AVATAR_BUTTON_ERROR_CONTROLLER_H_ |
| OLD | NEW |