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

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

Issue 666133002: Standardize usage of virtual/override/final in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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_CONTENT_BROWSER_CONTENT_CREDENTIAL_MANAGER_D ISPATCHER_H_ 5 #ifndef COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_CREDENTIAL_MANAGER_D ISPATCHER_H_
6 #define COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_CREDENTIAL_MANAGER_D ISPATCHER_H_ 6 #define COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_CREDENTIAL_MANAGER_D ISPATCHER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "components/password_manager/core/browser/credential_manager_dispatcher .h" 9 #include "components/password_manager/core/browser/credential_manager_dispatcher .h"
10 #include "components/password_manager/core/browser/password_store_consumer.h" 10 #include "components/password_manager/core/browser/password_store_consumer.h"
(...skipping 17 matching lines...) Expand all
28 struct CredentialInfo; 28 struct CredentialInfo;
29 29
30 class ContentCredentialManagerDispatcher : public CredentialManagerDispatcher, 30 class ContentCredentialManagerDispatcher : public CredentialManagerDispatcher,
31 public content::WebContentsObserver, 31 public content::WebContentsObserver,
32 public PasswordStoreConsumer { 32 public PasswordStoreConsumer {
33 public: 33 public:
34 // |client| isn't yet used by this class, but is necessary for the next step: 34 // |client| isn't yet used by this class, but is necessary for the next step:
35 // wiring this up as a subclass of PasswordStoreConsumer. 35 // wiring this up as a subclass of PasswordStoreConsumer.
36 ContentCredentialManagerDispatcher(content::WebContents* web_contents, 36 ContentCredentialManagerDispatcher(content::WebContents* web_contents,
37 PasswordManagerClient* client); 37 PasswordManagerClient* client);
38 virtual ~ContentCredentialManagerDispatcher(); 38 ~ContentCredentialManagerDispatcher() override;
39 39
40 void OnProvisionalSaveComplete(); 40 void OnProvisionalSaveComplete();
41 41
42 // CredentialManagerDispatcher implementation. 42 // CredentialManagerDispatcher implementation.
43 virtual void OnNotifyFailedSignIn( 43 void OnNotifyFailedSignIn(int request_id,
44 int request_id, 44 const password_manager::CredentialInfo&) override;
45 const password_manager::CredentialInfo&) override; 45 void OnNotifySignedIn(int request_id,
46 virtual void OnNotifySignedIn( 46 const password_manager::CredentialInfo&) override;
47 int request_id, 47 void OnNotifySignedOut(int request_id) override;
48 const password_manager::CredentialInfo&) override; 48 void OnRequestCredential(int request_id,
49 virtual void OnNotifySignedOut(int request_id) override; 49 bool zero_click_only,
50 virtual void OnRequestCredential( 50 const std::vector<GURL>& federations) override;
51 int request_id,
52 bool zero_click_only,
53 const std::vector<GURL>& federations) override;
54 51
55 // content::WebContentsObserver implementation. 52 // content::WebContentsObserver implementation.
56 virtual bool OnMessageReceived(const IPC::Message& message) override; 53 bool OnMessageReceived(const IPC::Message& message) override;
57 54
58 // PasswordStoreConsumer implementation. 55 // PasswordStoreConsumer implementation.
59 virtual void OnGetPasswordStoreResults( 56 void OnGetPasswordStoreResults(
60 const std::vector<autofill::PasswordForm*>& results) override; 57 const std::vector<autofill::PasswordForm*>& results) override;
61 58
62 private: 59 private:
63 PasswordStore* GetPasswordStore(); 60 PasswordStore* GetPasswordStore();
64 61
65 PasswordManagerClient* client_; 62 PasswordManagerClient* client_;
66 scoped_ptr<CredentialManagerPasswordFormManager> form_manager_; 63 scoped_ptr<CredentialManagerPasswordFormManager> form_manager_;
67 64
68 // When 'OnRequestCredential' is called, it in turn calls out to the 65 // When 'OnRequestCredential' is called, it in turn calls out to the
69 // PasswordStore; we store the request ID here in order to properly respond 66 // PasswordStore; we store the request ID here in order to properly respond
70 // to the request once the PasswordStore gives us data. 67 // to the request once the PasswordStore gives us data.
71 int pending_request_id_; 68 int pending_request_id_;
72 69
73 DISALLOW_COPY_AND_ASSIGN(ContentCredentialManagerDispatcher); 70 DISALLOW_COPY_AND_ASSIGN(ContentCredentialManagerDispatcher);
74 }; 71 };
75 72
76 } // namespace password_manager 73 } // namespace password_manager
77 74
78 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_CREDENTIAL_MANAGE R_DISPATCHER_H_ 75 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_CREDENTIAL_MANAGE R_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698