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

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

Issue 733953002: Do not save passwords if the landing page has HTTP status 5xx or 4xx (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing Vaclav's review comments Created 6 years, 1 month 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 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 "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "components/password_manager/content/browser/content_credential_manager _dispatcher.h" 10 #include "components/password_manager/content/browser/content_credential_manager _dispatcher.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 PrefService* GetPrefs() override; 58 PrefService* GetPrefs() override;
59 password_manager::PasswordStore* GetPasswordStore() override; 59 password_manager::PasswordStore* GetPasswordStore() override;
60 password_manager::PasswordManagerDriver* GetDriver() override; 60 password_manager::PasswordManagerDriver* GetDriver() override;
61 base::FieldTrial::Probability GetProbabilityForExperiment( 61 base::FieldTrial::Probability GetProbabilityForExperiment(
62 const std::string& experiment_name) override; 62 const std::string& experiment_name) override;
63 bool IsPasswordSyncEnabled( 63 bool IsPasswordSyncEnabled(
64 password_manager::CustomPassphraseState state) override; 64 password_manager::CustomPassphraseState state) override;
65 void OnLogRouterAvailabilityChanged(bool router_can_be_used) override; 65 void OnLogRouterAvailabilityChanged(bool router_can_be_used) override;
66 void LogSavePasswordProgress(const std::string& text) override; 66 void LogSavePasswordProgress(const std::string& text) override;
67 bool IsLoggingActive() const override; 67 bool IsLoggingActive() const override;
68 bool WasLastNavigationHTTPError() const override;
68 69
69 // Hides any visible generation UI. 70 // Hides any visible generation UI.
70 void HidePasswordGenerationPopup(); 71 void HidePasswordGenerationPopup();
71 72
72 static void CreateForWebContentsWithAutofillClient( 73 static void CreateForWebContentsWithAutofillClient(
73 content::WebContents* contents, 74 content::WebContents* contents,
74 autofill::AutofillClient* autofill_client); 75 autofill::AutofillClient* autofill_client);
75 76
76 // Convenience method to allow //chrome code easy access to a PasswordManager 77 // Convenience method to allow //chrome code easy access to a PasswordManager
77 // from a WebContents instance. 78 // from a WebContents instance.
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 AutofillForSyncCredentialsState autofill_sync_state_; 162 AutofillForSyncCredentialsState autofill_sync_state_;
162 163
163 // If the sync credential was filtered during autofill. Used for statistics 164 // If the sync credential was filtered during autofill. Used for statistics
164 // reporting. 165 // reporting.
165 bool sync_credential_was_filtered_; 166 bool sync_credential_was_filtered_;
166 167
167 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient); 168 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient);
168 }; 169 };
169 170
170 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ 171 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698