OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_BROWSER_PASSWORD_MANAGER_DELEGATE_IMPL_H_ | 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_DELEGATE_IMPL_H_ |
6 #define CHROME_BROWSER_PASSWORD_MANAGER_DELEGATE_IMPL_H_ | 6 #define CHROME_BROWSER_PASSWORD_MANAGER_DELEGATE_IMPL_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "chrome/browser/password_manager/password_manager_delegate.h" | 10 #include "chrome/browser/password_manager/password_manager_delegate.h" |
11 | 11 |
12 class TabContentsWrapper; | 12 class TabContentsWrapper; |
13 | 13 |
14 class PasswordManagerDelegateImpl : public PasswordManagerDelegate { | 14 class PasswordManagerDelegateImpl : public PasswordManagerDelegate { |
15 public: | 15 public: |
16 explicit PasswordManagerDelegateImpl(TabContentsWrapper* contents) | 16 explicit PasswordManagerDelegateImpl(TabContentsWrapper* contents) |
17 : tab_contents_(contents) { } | 17 : tab_contents_(contents) { } |
18 | 18 |
19 // PasswordManagerDelegate implementation. | 19 // PasswordManagerDelegate implementation. |
20 virtual void FillPasswordForm( | 20 virtual void FillPasswordForm( |
21 const webkit_glue::PasswordFormFillData& form_data) OVERRIDE; | 21 const webkit::forms::PasswordFormFillData& form_data) OVERRIDE; |
22 virtual void AddSavePasswordInfoBar( | 22 virtual void AddSavePasswordInfoBar( |
23 PasswordFormManager* form_to_save) OVERRIDE; | 23 PasswordFormManager* form_to_save) OVERRIDE; |
24 virtual Profile* GetProfileForPasswordManager() OVERRIDE; | 24 virtual Profile* GetProfileForPasswordManager() OVERRIDE; |
25 virtual bool DidLastPageLoadEncounterSSLErrors() OVERRIDE; | 25 virtual bool DidLastPageLoadEncounterSSLErrors() OVERRIDE; |
26 private: | 26 private: |
27 TabContentsWrapper* tab_contents_; | 27 TabContentsWrapper* tab_contents_; |
28 DISALLOW_COPY_AND_ASSIGN(PasswordManagerDelegateImpl); | 28 DISALLOW_COPY_AND_ASSIGN(PasswordManagerDelegateImpl); |
29 }; | 29 }; |
30 | 30 |
31 #endif // CHROME_BROWSER_PASSWORD_MANAGER_DELEGATE_IMPL_H_ | 31 #endif // CHROME_BROWSER_PASSWORD_MANAGER_DELEGATE_IMPL_H_ |
OLD | NEW |