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_UI_AUTO_LOGIN_INFOBAR_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_AUTO_LOGIN_INFOBAR_DELEGATE_H_ |
6 #define CHROME_BROWSER_UI_AUTO_LOGIN_INFOBAR_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_AUTO_LOGIN_INFOBAR_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include "chrome/browser/infobars/confirm_infobar_delegate.h" | 9 #include "chrome/browser/infobars/confirm_infobar_delegate.h" |
10 #include "components/auto_login_parser/auto_login_parser.h" | 10 #include "components/auto_login_parser/auto_login_parser.h" |
11 #include "components/signin/core/browser/signin_manager.h" | 11 #include "components/signin/core/browser/signin_manager.h" |
12 | 12 |
13 class PrefService; | 13 class PrefService; |
14 class Profile; | 14 class Profile; |
15 | 15 |
16 namespace content { | 16 namespace content { |
17 class NavigationController; | 17 class NavigationController; |
18 class WebContents; | 18 class WebContents; |
19 } | 19 } |
20 | 20 |
21 // This is the actual infobar displayed to prompt the user to auto-login. | 21 // This is the actual infobar displayed to prompt the user to auto-login. This |
22 // class is shared by Android and iOS, but it is not used on desktop. | |
sky
2014/04/16 21:35:45
Is there a particular reason you need to say this?
| |
22 class AutoLoginInfoBarDelegate : public ConfirmInfoBarDelegate, | 23 class AutoLoginInfoBarDelegate : public ConfirmInfoBarDelegate, |
23 public SigninManagerBase::Observer { | 24 public SigninManagerBase::Observer { |
24 public: | 25 public: |
25 struct Params { | 26 struct Params { |
26 // Information from a parsed header. | 27 // Information from a parsed header. |
27 auto_login_parser::HeaderData header; | 28 auto_login_parser::HeaderData header; |
28 | 29 |
29 // Username to display in the infobar indicating user to be logged in as. | 30 // Username to display in the infobar indicating user to be logged in as. |
30 // This is initially fetched from sign-in on non-Android platforms. Note | 31 // This is initially fetched from sign-in on non-Android platforms. Note |
31 // that on Android this field is not used. | 32 // that on Android this field is not used. |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
72 | 73 |
73 Profile* profile_; | 74 Profile* profile_; |
74 | 75 |
75 // Whether any UI controls in the infobar were pressed or not. | 76 // Whether any UI controls in the infobar were pressed or not. |
76 bool button_pressed_; | 77 bool button_pressed_; |
77 | 78 |
78 DISALLOW_COPY_AND_ASSIGN(AutoLoginInfoBarDelegate); | 79 DISALLOW_COPY_AND_ASSIGN(AutoLoginInfoBarDelegate); |
79 }; | 80 }; |
80 | 81 |
81 #endif // CHROME_BROWSER_UI_AUTO_LOGIN_INFOBAR_DELEGATE_H_ | 82 #endif // CHROME_BROWSER_UI_AUTO_LOGIN_INFOBAR_DELEGATE_H_ |
OLD | NEW |