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

Side by Side Diff: components/password_manager/core/browser/credential_manager_pending_request_task.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_BROWSER_CREDENTIAL_MANAGER_PENDING_REQU EST_TASK_H_ 5 #ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_CREDENTIAL_MANAGER_PENDING_REQU EST_TASK_H_
6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_CREDENTIAL_MANAGER_PENDING_REQU EST_TASK_H_ 6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_CREDENTIAL_MANAGER_PENDING_REQU EST_TASK_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 24 matching lines...) Expand all
35 virtual GURL GetOrigin() const = 0; 35 virtual GURL GetOrigin() const = 0;
36 36
37 // Retrieves a synthetic PasswordForm for the current page origin. 37 // Retrieves a synthetic PasswordForm for the current page origin.
38 virtual autofill::PasswordForm GetSynthesizedFormForOrigin() const = 0; 38 virtual autofill::PasswordForm GetSynthesizedFormForOrigin() const = 0;
39 39
40 // Returns the PasswordManagerClient. 40 // Returns the PasswordManagerClient.
41 virtual PasswordManagerClient* client() const = 0; 41 virtual PasswordManagerClient* client() const = 0;
42 42
43 // Sends a credential to JavaScript. 43 // Sends a credential to JavaScript.
44 virtual void SendCredential(int id, const CredentialInfo& credential) = 0; 44 virtual void SendCredential(int id, const CredentialInfo& credential) = 0;
45
46 // Updates |skip_zero_click| for |form| in the PasswordStore if required.
47 // Sends a credential to JavaScript.
48 virtual void SendPasswordForm(int id, const autofill::PasswordForm* form) = 0;
45 }; 49 };
46 50
47 // Retrieves credentials from the PasswordStore. 51 // Retrieves credentials from the PasswordStore.
48 class CredentialManagerPendingRequestTask : public PasswordStoreConsumer { 52 class CredentialManagerPendingRequestTask : public PasswordStoreConsumer {
49 public: 53 public:
50 CredentialManagerPendingRequestTask( 54 CredentialManagerPendingRequestTask(
51 CredentialManagerPendingRequestTaskDelegate* delegate, 55 CredentialManagerPendingRequestTaskDelegate* delegate,
52 int request_id, 56 int request_id,
53 bool request_zero_click_only, 57 bool request_zero_click_only,
54 const GURL& request_origin, 58 const GURL& request_origin,
(...skipping 17 matching lines...) Expand all
72 const bool include_passwords_; 76 const bool include_passwords_;
73 std::set<std::string> federations_; 77 std::set<std::string> federations_;
74 std::set<std::string> affiliated_realms_; 78 std::set<std::string> affiliated_realms_;
75 79
76 DISALLOW_COPY_AND_ASSIGN(CredentialManagerPendingRequestTask); 80 DISALLOW_COPY_AND_ASSIGN(CredentialManagerPendingRequestTask);
77 }; 81 };
78 82
79 } // namespace password_manager 83 } // namespace password_manager
80 84
81 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_CREDENTIAL_MANAGER_PENDING_R EQUEST_TASK_H_ 85 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_CREDENTIAL_MANAGER_PENDING_R EQUEST_TASK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698