OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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_UI_WEBUI_SIGNIN_INLINE_LOGIN_HANDLER_IMPL_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_HANDLER_IMPL_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_HANDLER_IMPL_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_HANDLER_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 FRIEND_TEST_ALL_PREFIXES(InlineLoginUIBrowserTest, CanOfferNoSigninCookies); | 47 FRIEND_TEST_ALL_PREFIXES(InlineLoginUIBrowserTest, CanOfferNoSigninCookies); |
48 | 48 |
49 // Argument to CanOffer(). | 49 // Argument to CanOffer(). |
50 enum CanOfferFor { | 50 enum CanOfferFor { |
51 CAN_OFFER_FOR_ALL, | 51 CAN_OFFER_FOR_ALL, |
52 CAN_OFFER_FOR_SECONDARY_ACCOUNT | 52 CAN_OFFER_FOR_SECONDARY_ACCOUNT |
53 }; | 53 }; |
54 | 54 |
55 static bool CanOffer(Profile* profile, | 55 static bool CanOffer(Profile* profile, |
56 CanOfferFor can_offer_for, | 56 CanOfferFor can_offer_for, |
| 57 const std::string& gaia_id, |
57 const std::string& email, | 58 const std::string& email, |
58 std::string* error_message); | 59 std::string* error_message); |
59 | 60 |
60 // InlineLoginHandler overrides: | 61 // InlineLoginHandler overrides: |
61 void SetExtraInitParams(base::DictionaryValue& params) override; | 62 void SetExtraInitParams(base::DictionaryValue& params) override; |
62 void CompleteLogin(const base::ListValue* args) override; | 63 void CompleteLogin(const base::ListValue* args) override; |
63 | 64 |
64 // Overridden from content::WebContentsObserver overrides. | 65 // Overridden from content::WebContentsObserver overrides. |
65 void DidCommitProvisionalLoadForFrame( | 66 void DidCommitProvisionalLoadForFrame( |
66 content::RenderFrameHost* render_frame_host, | 67 content::RenderFrameHost* render_frame_host, |
67 const GURL& url, | 68 const GURL& url, |
68 ui::PageTransition transition_type) override; | 69 ui::PageTransition transition_type) override; |
69 | 70 |
70 // True if the user has navigated to untrusted domains during the signin | 71 // True if the user has navigated to untrusted domains during the signin |
71 // process. | 72 // process. |
72 bool confirm_untrusted_signin_; | 73 bool confirm_untrusted_signin_; |
73 | 74 |
74 base::WeakPtrFactory<InlineLoginHandlerImpl> weak_factory_; | 75 base::WeakPtrFactory<InlineLoginHandlerImpl> weak_factory_; |
75 | 76 |
76 DISALLOW_COPY_AND_ASSIGN(InlineLoginHandlerImpl); | 77 DISALLOW_COPY_AND_ASSIGN(InlineLoginHandlerImpl); |
77 }; | 78 }; |
78 | 79 |
79 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_HANDLER_IMPL_H_ | 80 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_HANDLER_IMPL_H_ |
OLD | NEW |