OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PASSWORD_MANAGER_DELEGATE_IMPL_H_ | 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_DELEGATE_IMPL_H_ |
6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_DELEGATE_IMPL_H_ | 6 #define CHROME_BROWSER_PASSWORD_MANAGER_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 TabContents; | 12 class TabContents; |
13 | 13 |
14 class PasswordManagerDelegateImpl : public PasswordManagerDelegate { | 14 class PasswordManagerDelegateImpl : public PasswordManagerDelegate { |
15 public: | 15 public: |
16 explicit PasswordManagerDelegateImpl(TabContents* contents) | 16 explicit PasswordManagerDelegateImpl(TabContents* 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::forms::PasswordFormFillData& form_data) OVERRIDE; | 21 const PasswordFormFillData& form_data) OVERRIDE; |
22 virtual void AddSavePasswordInfoBarIfPermitted( | 22 virtual void AddSavePasswordInfoBarIfPermitted( |
23 PasswordFormManager* form_to_save) OVERRIDE; | 23 PasswordFormManager* form_to_save) OVERRIDE; |
24 virtual Profile* GetProfile() OVERRIDE; | 24 virtual Profile* GetProfile() OVERRIDE; |
25 virtual bool DidLastPageLoadEncounterSSLErrors() OVERRIDE; | 25 virtual bool DidLastPageLoadEncounterSSLErrors() OVERRIDE; |
26 | 26 |
27 private: | 27 private: |
28 TabContents* tab_contents_; | 28 TabContents* tab_contents_; |
29 | 29 |
30 DISALLOW_COPY_AND_ASSIGN(PasswordManagerDelegateImpl); | 30 DISALLOW_COPY_AND_ASSIGN(PasswordManagerDelegateImpl); |
31 }; | 31 }; |
32 | 32 |
33 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_DELEGATE_IMPL_H_ | 33 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_DELEGATE_IMPL_H_ |
OLD | NEW |