| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_BROWSER_SIGNIN_H_ | 5 #ifndef CHROME_BROWSER_BROWSER_SIGNIN_H_ |
| 6 #define CHROME_BROWSER_BROWSER_SIGNIN_H_ | 6 #define CHROME_BROWSER_BROWSER_SIGNIN_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 const string16& suggested_email, | 59 const string16& suggested_email, |
| 60 const string16& login_message, | 60 const string16& login_message, |
| 61 SigninDelegate* delegate); | 61 SigninDelegate* delegate); |
| 62 | 62 |
| 63 // Returns the username of the user currently signed in. If no | 63 // Returns the username of the user currently signed in. If no |
| 64 // user is signed in, returns the empty string. virtual for test | 64 // user is signed in, returns the empty string. virtual for test |
| 65 // override. | 65 // override. |
| 66 virtual std::string GetSignedInUsername() const; | 66 virtual std::string GetSignedInUsername() const; |
| 67 | 67 |
| 68 // NotificationObserver implementation. | 68 // NotificationObserver implementation. |
| 69 virtual void Observe(NotificationType type, | 69 virtual void Observe(int type, |
| 70 const NotificationSource& source, | 70 const NotificationSource& source, |
| 71 const NotificationDetails& details); | 71 const NotificationDetails& details); |
| 72 | 72 |
| 73 ProfileSyncService* GetProfileSyncService() const; | 73 ProfileSyncService* GetProfileSyncService() const; |
| 74 | 74 |
| 75 // Close the dialog. Delegate's OnLoginFailure method will be called. | 75 // Close the dialog. Delegate's OnLoginFailure method will be called. |
| 76 void Cancel(); | 76 void Cancel(); |
| 77 | 77 |
| 78 private: | 78 private: |
| 79 // Create the HTML Dialog content. | 79 // Create the HTML Dialog content. |
| (...skipping 27 matching lines...) Expand all Loading... |
| 107 // attached to. | 107 // attached to. |
| 108 BrowserSigninHtml* html_dialog_ui_delegate_; | 108 BrowserSigninHtml* html_dialog_ui_delegate_; |
| 109 | 109 |
| 110 NotificationRegistrar registrar_; | 110 NotificationRegistrar registrar_; |
| 111 | 111 |
| 112 DISALLOW_COPY_AND_ASSIGN(BrowserSignin); | 112 DISALLOW_COPY_AND_ASSIGN(BrowserSignin); |
| 113 }; | 113 }; |
| 114 | 114 |
| 115 | 115 |
| 116 #endif // CHROME_BROWSER_BROWSER_SIGNIN_H_ | 116 #endif // CHROME_BROWSER_BROWSER_SIGNIN_H_ |
| OLD | NEW |