Chromium Code Reviews| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | |
|
Roger Tawa OOO till Jul 10th
2012/06/15 17:56:00
there is no need for this include in this header.
Mathieu
2012/06/21 13:13:00
Done.
| |
| 10 | |
| 9 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 10 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 11 #include "chrome/browser/password_manager/password_manager_delegate.h" | 13 #include "chrome/browser/password_manager/password_manager_delegate.h" |
| 12 | 14 |
| 13 class TabContents; | 15 class TabContents; |
| 14 | 16 |
| 15 class PasswordManagerDelegateImpl : public PasswordManagerDelegate { | 17 class PasswordManagerDelegateImpl : public PasswordManagerDelegate { |
| 16 public: | 18 public: |
| 17 explicit PasswordManagerDelegateImpl(TabContents* contents) | 19 explicit PasswordManagerDelegateImpl(TabContents* contents) |
| 18 : tab_contents_(contents) {} | 20 : tab_contents_(contents) {} |
| 19 | 21 |
| 20 // PasswordManagerDelegate implementation. | 22 // PasswordManagerDelegate implementation. |
| 21 virtual void FillPasswordForm( | 23 virtual void FillPasswordForm( |
| 22 const webkit::forms::PasswordFormFillData& form_data) OVERRIDE; | 24 const webkit::forms::PasswordFormFillData& form_data) OVERRIDE; |
| 23 virtual void AddSavePasswordInfoBarIfPermitted( | 25 virtual void AddSavePasswordInfoBarIfPermitted( |
| 24 PasswordFormManager* form_to_save) OVERRIDE; | 26 PasswordFormManager* form_to_save) OVERRIDE; |
| 25 virtual Profile* GetProfile() OVERRIDE; | 27 virtual Profile* GetProfile() OVERRIDE; |
| 26 virtual bool DidLastPageLoadEncounterSSLErrors() OVERRIDE; | 28 virtual bool DidLastPageLoadEncounterSSLErrors() OVERRIDE; |
| 27 | 29 |
| 28 private: | 30 private: |
| 29 TabContents* tab_contents_; | 31 TabContents* tab_contents_; |
| 30 | 32 |
| 31 DISALLOW_COPY_AND_ASSIGN(PasswordManagerDelegateImpl); | 33 DISALLOW_COPY_AND_ASSIGN(PasswordManagerDelegateImpl); |
| 32 }; | 34 }; |
| 33 | 35 |
| 34 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_DELEGATE_IMPL_H_ | 36 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_DELEGATE_IMPL_H_ |
| OLD | NEW |