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