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

Side by Side Diff: components/password_manager/core/common/credential_manager_types.h

Issue 1832933002: Update the |skip_zero_click| flag of a credential when selected in the account chooser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments Created 4 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
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_CORE_COMMON_CREDENTIAL_MANAGER_TYPES_H_ 5 #ifndef COMPONENTS_PASSWORD_MANAGER_CORE_COMMON_CREDENTIAL_MANAGER_TYPES_H_
6 #define COMPONENTS_PASSWORD_MANAGER_CORE_COMMON_CREDENTIAL_MANAGER_TYPES_H_ 6 #define COMPONENTS_PASSWORD_MANAGER_CORE_COMMON_CREDENTIAL_MANAGER_TYPES_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 13 matching lines...) Expand all
24 // something reasonably sane. 24 // something reasonably sane.
25 const size_t kMaxFederations = 50u; 25 const size_t kMaxFederations = 50u;
26 26
27 enum class CredentialType { 27 enum class CredentialType {
28 CREDENTIAL_TYPE_EMPTY = 0, 28 CREDENTIAL_TYPE_EMPTY = 0,
29 CREDENTIAL_TYPE_PASSWORD, 29 CREDENTIAL_TYPE_PASSWORD,
30 CREDENTIAL_TYPE_FEDERATED, 30 CREDENTIAL_TYPE_FEDERATED,
31 CREDENTIAL_TYPE_LAST = CREDENTIAL_TYPE_FEDERATED 31 CREDENTIAL_TYPE_LAST = CREDENTIAL_TYPE_FEDERATED
32 }; 32 };
33 33
34 std::ostream& operator<<(std::ostream& out, CredentialType type);
35
34 struct CredentialInfo { 36 struct CredentialInfo {
35 CredentialInfo(); 37 CredentialInfo();
36 CredentialInfo(const autofill::PasswordForm& form, CredentialType form_type); 38 CredentialInfo(const autofill::PasswordForm& form, CredentialType form_type);
37 CredentialInfo(const CredentialInfo& other); 39 CredentialInfo(const CredentialInfo& other);
38 ~CredentialInfo(); 40 ~CredentialInfo();
39 41
40 bool operator==(const CredentialInfo& rhs) const; 42 bool operator==(const CredentialInfo& rhs) const;
41 43
42 CredentialType type; 44 CredentialType type;
43 45
(...skipping 18 matching lines...) Expand all
62 64
63 // Create a new autofill::PasswordForm object based on |info|, valid in the 65 // Create a new autofill::PasswordForm object based on |info|, valid in the
64 // context of |origin|. Returns an empty scoped_ptr for CREDENTIAL_TYPE_EMPTY. 66 // context of |origin|. Returns an empty scoped_ptr for CREDENTIAL_TYPE_EMPTY.
65 scoped_ptr<autofill::PasswordForm> CreatePasswordFormFromCredentialInfo( 67 scoped_ptr<autofill::PasswordForm> CreatePasswordFormFromCredentialInfo(
66 const CredentialInfo& info, 68 const CredentialInfo& info,
67 const GURL& origin); 69 const GURL& origin);
68 70
69 } // namespace password_manager 71 } // namespace password_manager
70 72
71 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_COMMON_CREDENTIAL_MANAGER_TYPES_H_ 73 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_COMMON_CREDENTIAL_MANAGER_TYPES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698