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

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

Issue 2864493003: Deprecate CredentialRequestOptions.unmediated in favor mediation enum (Closed)
Patch Set: Rebase 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
« no previous file with comments | « no previous file | components/password_manager/content/browser/credential_manager_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_CREDENTIAL_MANAGER_I MPL_H_ 5 #ifndef COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_CREDENTIAL_MANAGER_I MPL_H_
6 #define COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_CREDENTIAL_MANAGER_I MPL_H_ 6 #define COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_CREDENTIAL_MANAGER_I MPL_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "components/password_manager/content/common/credential_manager.mojom.h" 13 #include "components/password_manager/content/common/credential_manager.mojom.h"
14 #include "components/password_manager/core/browser/credential_manager_password_f orm_manager.h" 14 #include "components/password_manager/core/browser/credential_manager_password_f orm_manager.h"
15 #include "components/password_manager/core/browser/credential_manager_pending_re quest_task.h" 15 #include "components/password_manager/core/browser/credential_manager_pending_re quest_task.h"
16 #include "components/password_manager/core/browser/credential_manager_pending_re quire_user_mediation_task.h" 16 #include "components/password_manager/core/browser/credential_manager_pending_re quire_user_mediation_task.h"
17 #include "components/password_manager/core/browser/password_store_consumer.h" 17 #include "components/password_manager/core/browser/password_store_consumer.h"
18 #include "components/password_manager/core/common/credential_manager_types.h"
18 #include "components/prefs/pref_member.h" 19 #include "components/prefs/pref_member.h"
19 #include "content/public/browser/web_contents_observer.h" 20 #include "content/public/browser/web_contents_observer.h"
20 #include "mojo/public/cpp/bindings/binding_set.h" 21 #include "mojo/public/cpp/bindings/binding_set.h"
21 22
22 class GURL; 23 class GURL;
23 24
24 namespace autofill { 25 namespace autofill {
25 struct PasswordForm; 26 struct PasswordForm;
26 } 27 }
27 28
(...skipping 17 matching lines...) Expand all
45 public: 46 public:
46 CredentialManagerImpl(content::WebContents* web_contents, 47 CredentialManagerImpl(content::WebContents* web_contents,
47 PasswordManagerClient* client); 48 PasswordManagerClient* client);
48 ~CredentialManagerImpl() override; 49 ~CredentialManagerImpl() override;
49 50
50 void BindRequest(mojom::CredentialManagerRequest request); 51 void BindRequest(mojom::CredentialManagerRequest request);
51 52
52 // mojom::CredentialManager methods: 53 // mojom::CredentialManager methods:
53 void Store(const CredentialInfo& credential, StoreCallback callback) override; 54 void Store(const CredentialInfo& credential, StoreCallback callback) override;
54 void RequireUserMediation(RequireUserMediationCallback callback) override; 55 void RequireUserMediation(RequireUserMediationCallback callback) override;
55 void Get(bool zero_click_only, 56 void Get(CredentialMediationRequirement mediation,
56 bool include_passwords, 57 bool include_passwords,
57 const std::vector<GURL>& federations, 58 const std::vector<GURL>& federations,
58 GetCallback callback) override; 59 GetCallback callback) override;
59 60
60 // CredentialManagerPendingRequestTaskDelegate: 61 // CredentialManagerPendingRequestTaskDelegate:
61 bool IsZeroClickAllowed() const override; 62 bool IsZeroClickAllowed() const override;
62 GURL GetOrigin() const override; 63 GURL GetOrigin() const override;
63 void SendCredential(const SendCredentialCallback& send_callback, 64 void SendCredential(const SendCredentialCallback& send_callback,
64 const CredentialInfo& info) override; 65 const CredentialInfo& info) override;
65 void SendPasswordForm(const SendCredentialCallback& send_callback, 66 void SendPasswordForm(const SendCredentialCallback& send_callback,
67 CredentialMediationRequirement mediation,
66 const autofill::PasswordForm* form) override; 68 const autofill::PasswordForm* form) override;
67 PasswordManagerClient* client() const override; 69 PasswordManagerClient* client() const override;
68 70
69 // CredentialManagerPendingSignedOutTaskDelegate: 71 // CredentialManagerPendingSignedOutTaskDelegate:
70 PasswordStore* GetPasswordStore() override; 72 PasswordStore* GetPasswordStore() override;
71 void DoneRequiringUserMediation() override; 73 void DoneRequiringUserMediation() override;
72 74
73 // CredentialManagerPasswordFormManagerDelegate: 75 // CredentialManagerPasswordFormManagerDelegate:
74 void OnProvisionalSaveComplete() override; 76 void OnProvisionalSaveComplete() override;
75 77
(...skipping 22 matching lines...) Expand all
98 mojo::BindingSet<mojom::CredentialManager> bindings_; 100 mojo::BindingSet<mojom::CredentialManager> bindings_;
99 101
100 base::WeakPtrFactory<CredentialManagerImpl> weak_factory_; 102 base::WeakPtrFactory<CredentialManagerImpl> weak_factory_;
101 103
102 DISALLOW_COPY_AND_ASSIGN(CredentialManagerImpl); 104 DISALLOW_COPY_AND_ASSIGN(CredentialManagerImpl);
103 }; 105 };
104 106
105 } // namespace password_manager 107 } // namespace password_manager
106 108
107 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_CREDENTIAL_MANAGE R_IMPL_H_ 109 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_CREDENTIAL_MANAGE R_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | components/password_manager/content/browser/credential_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698