Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Side by Side Diff: chrome/browser/ui/webui/signin/inline_login_handler_impl.h

Issue 1344443002: Implement new password separated sign in flow for chrome desktop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 public: 67 public:
68 FinishCompleteLoginParams(InlineLoginHandlerImpl* handler, 68 FinishCompleteLoginParams(InlineLoginHandlerImpl* handler,
69 content::StoragePartition* partition, 69 content::StoragePartition* partition,
70 const GURL& url, 70 const GURL& url,
71 const base::FilePath& profile_path, 71 const base::FilePath& profile_path,
72 bool confirm_untrusted_signin, 72 bool confirm_untrusted_signin,
73 const std::string& email, 73 const std::string& email,
74 const std::string& gaia_id, 74 const std::string& gaia_id,
75 const std::string& password, 75 const std::string& password,
76 const std::string& session_index, 76 const std::string& session_index,
77 const std::string& auth_code,
77 bool choose_what_to_sync); 78 bool choose_what_to_sync);
78 ~FinishCompleteLoginParams(); 79 ~FinishCompleteLoginParams();
79 80
80 // Pointer to WebUI handler. May be nullptr. 81 // Pointer to WebUI handler. May be nullptr.
81 InlineLoginHandlerImpl* handler; 82 InlineLoginHandlerImpl* handler;
82 // The isolate storage partition containing sign in cookies. 83 // The isolate storage partition containing sign in cookies.
83 content::StoragePartition* partition; 84 content::StoragePartition* partition;
84 // URL of sign in containing parameters such as email, source, etc. 85 // URL of sign in containing parameters such as email, source, etc.
85 GURL url; 86 GURL url;
86 // Path to profile being signed in. Non empty only when signing 87 // Path to profile being signed in. Non empty only when signing
87 // in to the profile from the user manager. 88 // in to the profile from the user manager.
88 base::FilePath profile_path; 89 base::FilePath profile_path;
89 // When true, an extra prompt will be shown to the user before sign in 90 // When true, an extra prompt will be shown to the user before sign in
90 // completes. 91 // completes.
91 bool confirm_untrusted_signin; 92 bool confirm_untrusted_signin;
92 // Email address of the account used to sign in. 93 // Email address of the account used to sign in.
93 std::string email; 94 std::string email;
94 // Obfustcated gaia id of the account used to sign in. 95 // Obfustcated gaia id of the account used to sign in.
95 std::string gaia_id; 96 std::string gaia_id;
96 // Password of the account used to sign in. 97 // Password of the account used to sign in.
97 std::string password; 98 std::string password;
98 // Index within gaia cookie of the account used to sign in. 99 // Index within gaia cookie of the account used to sign in. Used only
100 // with old gaia flow.
99 std::string session_index; 101 std::string session_index;
102 // Authentication code used to exchange for a login scoped refresh token
103 // for the account used to sign in. Used only with new gaia flow.
104 std::string auth_code;
100 // True if the user wants to configure sync before signing in. 105 // True if the user wants to configure sync before signing in.
101 bool choose_what_to_sync; 106 bool choose_what_to_sync;
102 }; 107 };
103 108
104 static void FinishCompleteLogin(const FinishCompleteLoginParams& params, 109 static void FinishCompleteLogin(const FinishCompleteLoginParams& params,
105 Profile* profile, 110 Profile* profile,
106 Profile::CreateStatus status); 111 Profile::CreateStatus status);
107 112
108 // Overridden from content::WebContentsObserver overrides. 113 // Overridden from content::WebContentsObserver overrides.
109 void DidCommitProvisionalLoadForFrame( 114 void DidCommitProvisionalLoadForFrame(
110 content::RenderFrameHost* render_frame_host, 115 content::RenderFrameHost* render_frame_host,
111 const GURL& url, 116 const GURL& url,
112 ui::PageTransition transition_type) override; 117 ui::PageTransition transition_type) override;
113 118
114 // True if the user has navigated to untrusted domains during the signin 119 // True if the user has navigated to untrusted domains during the signin
115 // process. 120 // process.
116 bool confirm_untrusted_signin_; 121 bool confirm_untrusted_signin_;
117 122
118 base::WeakPtrFactory<InlineLoginHandlerImpl> weak_factory_; 123 base::WeakPtrFactory<InlineLoginHandlerImpl> weak_factory_;
119 124
120 DISALLOW_COPY_AND_ASSIGN(InlineLoginHandlerImpl); 125 DISALLOW_COPY_AND_ASSIGN(InlineLoginHandlerImpl);
121 }; 126 };
122 127
123 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_HANDLER_IMPL_H_ 128 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_HANDLER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698