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

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

Issue 2867743002: Use OnceCallback on Mojo interfaces in //components/password_manager (Closed)
Patch Set: . 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"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 public CredentialManagerPendingRequestTaskDelegate, 43 public CredentialManagerPendingRequestTaskDelegate,
44 public CredentialManagerPendingRequireUserMediationTaskDelegate { 44 public CredentialManagerPendingRequireUserMediationTaskDelegate {
45 public: 45 public:
46 CredentialManagerImpl(content::WebContents* web_contents, 46 CredentialManagerImpl(content::WebContents* web_contents,
47 PasswordManagerClient* client); 47 PasswordManagerClient* client);
48 ~CredentialManagerImpl() override; 48 ~CredentialManagerImpl() override;
49 49
50 void BindRequest(mojom::CredentialManagerRequest request); 50 void BindRequest(mojom::CredentialManagerRequest request);
51 51
52 // mojom::CredentialManager methods: 52 // mojom::CredentialManager methods:
53 void Store(const CredentialInfo& credential, 53 void Store(const CredentialInfo& credential, StoreCallback callback) override;
54 const StoreCallback& callback) override; 54 void RequireUserMediation(RequireUserMediationCallback callback) override;
55 void RequireUserMediation(
56 const RequireUserMediationCallback& callback) override;
57 void Get(bool zero_click_only, 55 void Get(bool zero_click_only,
58 bool include_passwords, 56 bool include_passwords,
59 const std::vector<GURL>& federations, 57 const std::vector<GURL>& federations,
60 const GetCallback& callback) override; 58 GetCallback callback) override;
61 59
62 // CredentialManagerPendingRequestTaskDelegate: 60 // CredentialManagerPendingRequestTaskDelegate:
63 bool IsZeroClickAllowed() const override; 61 bool IsZeroClickAllowed() const override;
64 GURL GetOrigin() const override; 62 GURL GetOrigin() const override;
65 void SendCredential(const SendCredentialCallback& send_callback, 63 void SendCredential(const SendCredentialCallback& send_callback,
66 const CredentialInfo& info) override; 64 const CredentialInfo& info) override;
67 void SendPasswordForm(const SendCredentialCallback& send_callback, 65 void SendPasswordForm(const SendCredentialCallback& send_callback,
68 const autofill::PasswordForm* form) override; 66 const autofill::PasswordForm* form) override;
69 PasswordManagerClient* client() const override; 67 PasswordManagerClient* client() const override;
70 68
(...skipping 29 matching lines...) Expand all
100 mojo::BindingSet<mojom::CredentialManager> bindings_; 98 mojo::BindingSet<mojom::CredentialManager> bindings_;
101 99
102 base::WeakPtrFactory<CredentialManagerImpl> weak_factory_; 100 base::WeakPtrFactory<CredentialManagerImpl> weak_factory_;
103 101
104 DISALLOW_COPY_AND_ASSIGN(CredentialManagerImpl); 102 DISALLOW_COPY_AND_ASSIGN(CredentialManagerImpl);
105 }; 103 };
106 104
107 } // namespace password_manager 105 } // namespace password_manager
108 106
109 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_CREDENTIAL_MANAGE R_IMPL_H_ 107 #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