| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_SIGNIN_SIGNIN_GLOBAL_ERROR_H_ | 5 #ifndef CHROME_BROWSER_SIGNIN_SIGNIN_GLOBAL_ERROR_H_ |
| 6 #define CHROME_BROWSER_SIGNIN_SIGNIN_GLOBAL_ERROR_H_ | 6 #define CHROME_BROWSER_SIGNIN_SIGNIN_GLOBAL_ERROR_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 void AuthStatusChanged(); | 46 void AuthStatusChanged(); |
| 47 | 47 |
| 48 GoogleServiceAuthError GetLastAuthError() const { return auth_error_; } | 48 GoogleServiceAuthError GetLastAuthError() const { return auth_error_; } |
| 49 | 49 |
| 50 // GlobalError implementation. | 50 // GlobalError implementation. |
| 51 virtual bool HasMenuItem() OVERRIDE; | 51 virtual bool HasMenuItem() OVERRIDE; |
| 52 virtual int MenuItemCommandID() OVERRIDE; | 52 virtual int MenuItemCommandID() OVERRIDE; |
| 53 virtual string16 MenuItemLabel() OVERRIDE; | 53 virtual string16 MenuItemLabel() OVERRIDE; |
| 54 virtual void ExecuteMenuItem(Browser* browser) OVERRIDE; | 54 virtual void ExecuteMenuItem(Browser* browser) OVERRIDE; |
| 55 virtual bool HasBubbleView() OVERRIDE; | 55 virtual bool HasBubbleView() OVERRIDE; |
| 56 virtual gfx::Image GetBubbleViewIcon() OVERRIDE; |
| 56 virtual string16 GetBubbleViewTitle() OVERRIDE; | 57 virtual string16 GetBubbleViewTitle() OVERRIDE; |
| 57 virtual std::vector<string16> GetBubbleViewMessages() OVERRIDE; | 58 virtual std::vector<string16> GetBubbleViewMessages() OVERRIDE; |
| 58 virtual string16 GetBubbleViewAcceptButtonLabel() OVERRIDE; | 59 virtual string16 GetBubbleViewAcceptButtonLabel() OVERRIDE; |
| 59 virtual string16 GetBubbleViewCancelButtonLabel() OVERRIDE; | 60 virtual string16 GetBubbleViewCancelButtonLabel() OVERRIDE; |
| 60 virtual void OnBubbleViewDidClose(Browser* browser) OVERRIDE; | 61 virtual void OnBubbleViewDidClose(Browser* browser) OVERRIDE; |
| 61 virtual void BubbleViewAcceptButtonPressed(Browser* browser) OVERRIDE; | 62 virtual void BubbleViewAcceptButtonPressed(Browser* browser) OVERRIDE; |
| 62 virtual void BubbleViewCancelButtonPressed(Browser* browser) OVERRIDE; | 63 virtual void BubbleViewCancelButtonPressed(Browser* browser) OVERRIDE; |
| 63 | 64 |
| 64 private: | 65 private: |
| 65 std::set<const AuthStatusProvider*> provider_set_; | 66 std::set<const AuthStatusProvider*> provider_set_; |
| 66 | 67 |
| 67 // The auth error detected the last time AuthStatusChanged() was invoked (or | 68 // The auth error detected the last time AuthStatusChanged() was invoked (or |
| 68 // NONE if AuthStatusChanged() has never been invoked). | 69 // NONE if AuthStatusChanged() has never been invoked). |
| 69 GoogleServiceAuthError auth_error_; | 70 GoogleServiceAuthError auth_error_; |
| 70 | 71 |
| 71 // The SigninManager that owns this object. | 72 // The SigninManager that owns this object. |
| 72 SigninManagerBase* signin_manager_; | 73 SigninManagerBase* signin_manager_; |
| 73 | 74 |
| 74 // The Profile this object belongs to. | 75 // The Profile this object belongs to. |
| 75 Profile* profile_; | 76 Profile* profile_; |
| 76 }; | 77 }; |
| 77 | 78 |
| 78 #endif // CHROME_BROWSER_SIGNIN_SIGNIN_GLOBAL_ERROR_H_ | 79 #endif // CHROME_BROWSER_SIGNIN_SIGNIN_GLOBAL_ERROR_H_ |
| OLD | NEW |