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

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: rebased Created 5 years, 2 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 public: 68 public:
69 FinishCompleteLoginParams(InlineLoginHandlerImpl* handler, 69 FinishCompleteLoginParams(InlineLoginHandlerImpl* handler,
70 content::StoragePartition* partition, 70 content::StoragePartition* partition,
71 const GURL& url, 71 const GURL& url,
72 const base::FilePath& profile_path, 72 const base::FilePath& profile_path,
73 bool confirm_untrusted_signin, 73 bool confirm_untrusted_signin,
74 const std::string& email, 74 const std::string& email,
75 const std::string& gaia_id, 75 const std::string& gaia_id,
76 const std::string& password, 76 const std::string& password,
77 const std::string& session_index, 77 const std::string& session_index,
78 const std::string& auth_code,
78 bool choose_what_to_sync); 79 bool choose_what_to_sync);
79 ~FinishCompleteLoginParams(); 80 ~FinishCompleteLoginParams();
80 81
81 // Pointer to WebUI handler. May be nullptr. 82 // Pointer to WebUI handler. May be nullptr.
82 InlineLoginHandlerImpl* handler; 83 InlineLoginHandlerImpl* handler;
83 // The isolate storage partition containing sign in cookies. 84 // The isolate storage partition containing sign in cookies.
84 content::StoragePartition* partition; 85 content::StoragePartition* partition;
85 // URL of sign in containing parameters such as email, source, etc. 86 // URL of sign in containing parameters such as email, source, etc.
86 GURL url; 87 GURL url;
87 // Path to profile being signed in. Non empty only when signing 88 // Path to profile being signed in. Non empty only when signing
88 // in to the profile from the user manager. 89 // in to the profile from the user manager.
89 base::FilePath profile_path; 90 base::FilePath profile_path;
90 // When true, an extra prompt will be shown to the user before sign in 91 // When true, an extra prompt will be shown to the user before sign in
91 // completes. 92 // completes.
92 bool confirm_untrusted_signin; 93 bool confirm_untrusted_signin;
93 // Email address of the account used to sign in. 94 // Email address of the account used to sign in.
94 std::string email; 95 std::string email;
95 // Obfustcated gaia id of the account used to sign in. 96 // Obfustcated gaia id of the account used to sign in.
96 std::string gaia_id; 97 std::string gaia_id;
97 // Password of the account used to sign in. 98 // Password of the account used to sign in.
98 std::string password; 99 std::string password;
99 // Index within gaia cookie of the account used to sign in. 100 // Index within gaia cookie of the account used to sign in. Used only
101 // with password combined signin flow.
100 std::string session_index; 102 std::string session_index;
103 // Authentication code used to exchange for a login scoped refresh token
104 // for the account used to sign in. Used only with password separated
105 // signin flow.
106 std::string auth_code;
101 // True if the user wants to configure sync before signing in. 107 // True if the user wants to configure sync before signing in.
102 bool choose_what_to_sync; 108 bool choose_what_to_sync;
103 }; 109 };
104 110
105 static void FinishCompleteLogin(const FinishCompleteLoginParams& params, 111 static void FinishCompleteLogin(const FinishCompleteLoginParams& params,
106 Profile* profile, 112 Profile* profile,
107 Profile::CreateStatus status); 113 Profile::CreateStatus status);
108 114
109 // Overridden from content::WebContentsObserver overrides. 115 // Overridden from content::WebContentsObserver overrides.
110 void DidCommitProvisionalLoadForFrame( 116 void DidCommitProvisionalLoadForFrame(
111 content::RenderFrameHost* render_frame_host, 117 content::RenderFrameHost* render_frame_host,
112 const GURL& url, 118 const GURL& url,
113 ui::PageTransition transition_type) override; 119 ui::PageTransition transition_type) override;
114 120
115 // True if the user has navigated to untrusted domains during the signin 121 // True if the user has navigated to untrusted domains during the signin
116 // process. 122 // process.
117 bool confirm_untrusted_signin_; 123 bool confirm_untrusted_signin_;
118 124
119 base::WeakPtrFactory<InlineLoginHandlerImpl> weak_factory_; 125 base::WeakPtrFactory<InlineLoginHandlerImpl> weak_factory_;
120 126
121 DISALLOW_COPY_AND_ASSIGN(InlineLoginHandlerImpl); 127 DISALLOW_COPY_AND_ASSIGN(InlineLoginHandlerImpl);
122 }; 128 };
123 129
124 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_HANDLER_IMPL_H_ 130 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_HANDLER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698