Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 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_ | |
| 7 | |
| 8 #include "base/basictypes.h" | |
|
vabr (Chromium)
2014/09/29 11:05:27
nit: Do you really need this, or just base/macros.
| |
| 9 #include "components/password_manager/core/browser/credential_manager_dispatcher .h" | |
| 10 #include "content/public/browser/web_contents_observer.h" | |
| 11 | |
| 12 class GURL; | |
| 13 | |
| 14 namespace content { | |
| 15 class WebContents; | |
| 16 } | |
| 17 | |
| 18 namespace password_manager { | |
| 19 | |
| 20 class PasswordManagerClient; | |
| 21 struct CredentialInfo; | |
| 22 | |
| 23 class ContentCredentialManagerDispatcher : public CredentialManagerDispatcher, | |
| 24 public content::WebContentsObserver { | |
| 25 public: | |
| 26 ContentCredentialManagerDispatcher(content::WebContents* web_contents, | |
| 27 PasswordManagerClient* client); | |
| 28 virtual ~ContentCredentialManagerDispatcher(); | |
| 29 | |
| 30 // CredentialManagerDispatcher implementation. | |
| 31 virtual void OnNotifyFailedSignIn( | |
| 32 int request_id, | |
| 33 const password_manager::CredentialInfo&) OVERRIDE; | |
| 34 virtual void OnNotifySignedIn( | |
| 35 int request_id, | |
| 36 const password_manager::CredentialInfo&) OVERRIDE; | |
| 37 virtual void OnNotifySignedOut(int request_id) OVERRIDE; | |
| 38 virtual void OnRequestCredential( | |
| 39 int request_id, | |
| 40 bool zero_click_only, | |
| 41 const std::vector<GURL>& federations) OVERRIDE; | |
| 42 | |
| 43 // content::WebContentsObserver overrides. | |
| 44 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | |
| 45 | |
| 46 private: | |
| 47 PasswordManagerClient* client_; | |
|
vabr (Chromium)
2014/09/29 11:05:27
Since |client_| does not appear to be used in the
| |
| 48 | |
| 49 DISALLOW_COPY_AND_ASSIGN(ContentCredentialManagerDispatcher); | |
| 50 }; | |
| 51 | |
| 52 } // namespace password_manager | |
| 53 | |
| 54 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_CREDENTIAL_MANAGE R_DISPATCHER_H_ | |
| OLD | NEW |