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

Side by Side Diff: components/autofill/core/common/password_form.h

Issue 2865233003: Use an MutationObserver to check when a password form disappears after XHR (Closed)
Patch Set: updates Created 3 years, 7 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 COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_H__ 5 #ifndef COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_H__
6 #define COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_H__ 6 #define COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_H__
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 // potentially being submitted, or that a form has already been successfully 88 // potentially being submitted, or that a form has already been successfully
89 // submitted. Recorded into a UMA histogram, so order of enumerators should 89 // submitted. Recorded into a UMA histogram, so order of enumerators should
90 // not be changed. 90 // not be changed.
91 enum class SubmissionIndicatorEvent { 91 enum class SubmissionIndicatorEvent {
92 NONE, 92 NONE,
93 HTML_FORM_SUBMISSION, 93 HTML_FORM_SUBMISSION,
94 SAME_DOCUMENT_NAVIGATION, 94 SAME_DOCUMENT_NAVIGATION,
95 XHR_SUCCEEDED, 95 XHR_SUCCEEDED,
96 FRAME_DETACHED, 96 FRAME_DETACHED,
97 MANUAL_SAVE, 97 MANUAL_SAVE,
98 DOM_MUTATION_AFTER_XHR,
98 SUBMISSION_INDICATOR_EVENT_COUNT 99 SUBMISSION_INDICATOR_EVENT_COUNT
99 }; 100 };
100 101
101 // The "Realm" for the sign-on. This is scheme, host, port for SCHEME_HTML. 102 // The "Realm" for the sign-on. This is scheme, host, port for SCHEME_HTML.
102 // Dialog based forms also contain the HTTP realm. Android based forms will 103 // Dialog based forms also contain the HTTP realm. Android based forms will
103 // contain a string of the form "android://<hash of cert>@<package name>" 104 // contain a string of the form "android://<hash of cert>@<package name>"
104 // 105 //
105 // The signon_realm is effectively the primary key used for retrieving 106 // The signon_realm is effectively the primary key used for retrieving
106 // data from the database, so it must not be empty. 107 // data from the database, so it must not be empty.
107 std::string signon_realm; 108 std::string signon_realm;
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 std::ostream& operator<<(std::ostream& os, PasswordForm::Layout layout); 335 std::ostream& operator<<(std::ostream& os, PasswordForm::Layout layout);
335 std::ostream& operator<<(std::ostream& os, const PasswordForm& form); 336 std::ostream& operator<<(std::ostream& os, const PasswordForm& form);
336 std::ostream& operator<<(std::ostream& os, PasswordForm* form); 337 std::ostream& operator<<(std::ostream& os, PasswordForm* form);
337 std::ostream& operator<<( 338 std::ostream& operator<<(
338 std::ostream& os, 339 std::ostream& os,
339 PasswordForm::SubmissionIndicatorEvent submission_event); 340 PasswordForm::SubmissionIndicatorEvent submission_event);
340 341
341 } // namespace autofill 342 } // namespace autofill
342 343
343 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_H__ 344 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698