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

Side by Side Diff: chrome/browser/password_manager/chrome_password_manager_client.h

Issue 2777283004: Do not build Password Reuse on Android and iOS (Closed)
Patch Set: Introduced gn var Created 3 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/password_manager/chrome_password_manager_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_
6 #define CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ 6 #define CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 // Callable for tests. 123 // Callable for tests.
124 ChromePasswordManagerClient(content::WebContents* web_contents, 124 ChromePasswordManagerClient(content::WebContents* web_contents,
125 autofill::AutofillClient* autofill_client); 125 autofill::AutofillClient* autofill_client);
126 126
127 private: 127 private:
128 friend class content::WebContentsUserData<ChromePasswordManagerClient>; 128 friend class content::WebContentsUserData<ChromePasswordManagerClient>;
129 129
130 // content::WebContentsObserver overrides. 130 // content::WebContentsObserver overrides.
131 void DidStartNavigation( 131 void DidStartNavigation(
132 content::NavigationHandle* navigation_handle) override; 132 content::NavigationHandle* navigation_handle) override;
133 #if !defined(OS_ANDROID) && !defined(OS_IOS)
vabr (Chromium) 2017/03/29 13:14:19 No need for !defined(OS_IOS) in //chrome. Unlike i
dvadym 2017/03/29 13:46:36 thanks, removed IOS.
133 void DidFinishNavigation( 134 void DidFinishNavigation(
134 content::NavigationHandle* navigation_handle) override; 135 content::NavigationHandle* navigation_handle) override;
135 136
136 // content::RenderWidgetHost::InputEventObserver overrides. 137 // content::RenderWidgetHost::InputEventObserver overrides.
137 void OnInputEvent(const blink::WebInputEvent&) override; 138 void OnInputEvent(const blink::WebInputEvent&) override;
139 #endif
138 140
139 // Given |bounds| in the renderers coordinate system, return the same bounds 141 // Given |bounds| in the renderers coordinate system, return the same bounds
140 // in the screens coordinate system. 142 // in the screens coordinate system.
141 gfx::RectF GetBoundsInScreenSpace(const gfx::RectF& bounds); 143 gfx::RectF GetBoundsInScreenSpace(const gfx::RectF& bounds);
142 144
143 // Checks if the current page fulfils the conditions for the password manager 145 // Checks if the current page fulfils the conditions for the password manager
144 // to be active on it, for example Sync credentials are not saved or auto 146 // to be active on it, for example Sync credentials are not saved or auto
145 // filled. 147 // filled.
146 bool IsPasswordManagementEnabledForCurrentPage() const; 148 bool IsPasswordManagementEnabledForCurrentPage() const;
147 149
(...skipping 16 matching lines...) Expand all
164 #if defined(SAFE_BROWSING_DB_LOCAL) || defined(SAFE_BROWSING_DB_REMOTE) 166 #if defined(SAFE_BROWSING_DB_LOCAL) || defined(SAFE_BROWSING_DB_REMOTE)
165 // Return true if we can set PasswordProtectionService in 167 // Return true if we can set PasswordProtectionService in
166 // |password_reuse_detection_manager_|. 168 // |password_reuse_detection_manager_|.
167 static bool CanSetPasswordProtectionService(); 169 static bool CanSetPasswordProtectionService();
168 #endif 170 #endif
169 171
170 Profile* const profile_; 172 Profile* const profile_;
171 173
172 password_manager::PasswordManager password_manager_; 174 password_manager::PasswordManager password_manager_;
173 175
176 #if !defined(OS_ANDROID) && !defined(OS_IOS)
174 password_manager::PasswordReuseDetectionManager 177 password_manager::PasswordReuseDetectionManager
175 password_reuse_detection_manager_; 178 password_reuse_detection_manager_;
179 #endif
176 180
177 password_manager::ContentPasswordManagerDriverFactory* driver_factory_; 181 password_manager::ContentPasswordManagerDriverFactory* driver_factory_;
178 182
179 // As a mojo service, will be registered into service registry 183 // As a mojo service, will be registered into service registry
180 // of the main frame host by ChromeContentBrowserClient 184 // of the main frame host by ChromeContentBrowserClient
181 // once main frame host was created. 185 // once main frame host was created.
182 password_manager::CredentialManagerImpl credential_manager_impl_; 186 password_manager::CredentialManagerImpl credential_manager_impl_;
183 187
184 content::WebContentsFrameBindingSet<autofill::mojom::PasswordManagerClient> 188 content::WebContentsFrameBindingSet<autofill::mojom::PasswordManagerClient>
185 password_manager_client_bindings_; 189 password_manager_client_bindings_;
(...skipping 14 matching lines...) Expand all
200 std::unique_ptr<password_manager::LogManager> log_manager_; 204 std::unique_ptr<password_manager::LogManager> log_manager_;
201 205
202 // Set during 'NotifyUserCouldBeAutoSignedIn' in order to store the 206 // Set during 'NotifyUserCouldBeAutoSignedIn' in order to store the
203 // form for potential use during 'NotifySuccessfulLoginWithExistingPassword'. 207 // form for potential use during 'NotifySuccessfulLoginWithExistingPassword'.
204 std::unique_ptr<autofill::PasswordForm> possible_auto_sign_in_; 208 std::unique_ptr<autofill::PasswordForm> possible_auto_sign_in_;
205 209
206 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient); 210 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient);
207 }; 211 };
208 212
209 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ 213 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/password_manager/chrome_password_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698