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

Side by Side Diff: components/password_manager/content/browser/content_password_manager_driver.h

Issue 2378503002: Observe visibility of password inputs, for HTTP-bad phase 1 (Closed)
Patch Set: fix components_unittests build failure Created 4 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 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 COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_PASSWORD_MANAGER_DRI VER_H_ 5 #ifndef COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_PASSWORD_MANAGER_DRI VER_H_
6 #define COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_PASSWORD_MANAGER_DRI VER_H_ 6 #define COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_PASSWORD_MANAGER_DRI VER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 void ShowPasswordSuggestions(int key, 103 void ShowPasswordSuggestions(int key,
104 base::i18n::TextDirection text_direction, 104 base::i18n::TextDirection text_direction,
105 const base::string16& typed_username, 105 const base::string16& typed_username,
106 int options, 106 int options,
107 const gfx::RectF& bounds) override; 107 const gfx::RectF& bounds) override;
108 void PasswordAutofillAgentConstructed() override; 108 void PasswordAutofillAgentConstructed() override;
109 void RecordSavePasswordProgress(const std::string& log) override; 109 void RecordSavePasswordProgress(const std::string& log) override;
110 void SaveGenerationFieldDetectedByClassifier( 110 void SaveGenerationFieldDetectedByClassifier(
111 const autofill::PasswordForm& password_form, 111 const autofill::PasswordForm& password_form,
112 const base::string16& generation_field) override; 112 const base::string16& generation_field) override;
113 void PasswordFieldVisible() override;
113 114
114 void OnPasswordFormsParsedNoRenderCheck( 115 void OnPasswordFormsParsedNoRenderCheck(
115 const std::vector<autofill::PasswordForm>& forms); 116 const std::vector<autofill::PasswordForm>& forms);
116 void OnFocusedPasswordFormFound(const autofill::PasswordForm& password_form); 117 void OnFocusedPasswordFormFound(const autofill::PasswordForm& password_form);
117 118
118 private: 119 private:
119 bool CheckChildProcessSecurityPolicy(const GURL& url, 120 bool CheckChildProcessSecurityPolicy(const GURL& url,
120 BadMessageReason reason); 121 BadMessageReason reason);
121 122
122 const autofill::mojom::AutofillAgentPtr& GetAutofillAgent(); 123 const autofill::mojom::AutofillAgentPtr& GetAutofillAgent();
(...skipping 21 matching lines...) Expand all
144 mojo::Binding<autofill::mojom::PasswordManagerDriver> binding_; 145 mojo::Binding<autofill::mojom::PasswordManagerDriver> binding_;
145 146
146 base::WeakPtrFactory<ContentPasswordManagerDriver> weak_factory_; 147 base::WeakPtrFactory<ContentPasswordManagerDriver> weak_factory_;
147 148
148 DISALLOW_COPY_AND_ASSIGN(ContentPasswordManagerDriver); 149 DISALLOW_COPY_AND_ASSIGN(ContentPasswordManagerDriver);
149 }; 150 };
150 151
151 } // namespace password_manager 152 } // namespace password_manager
152 153
153 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_PASSWORD_MANAGER_ DRIVER_H_ 154 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_PASSWORD_MANAGER_ DRIVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698