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