Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Side by Side Diff: chrome/browser/password_manager/password_manager_delegate_impl.h

Issue 152693003: Expose PasswordManagerDriver as a public interface to core Password code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Response to review Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/content_password_manager_driver.h" 10 #include "chrome/browser/password_manager/content_password_manager_driver.h"
11 #include "chrome/browser/password_manager/password_manager_delegate.h" 11 #include "chrome/browser/password_manager/password_manager_delegate.h"
12 #include "content/public/browser/web_contents_user_data.h" 12 #include "content/public/browser/web_contents_user_data.h"
13 13
14 namespace content { 14 namespace content {
15 class WebContents; 15 class WebContents;
16 } 16 }
17 17
18 class PasswordManagerDelegateImpl 18 class PasswordManagerDelegateImpl
19 : public PasswordManagerDelegate, 19 : public PasswordManagerDelegate,
20 public content::WebContentsUserData<PasswordManagerDelegateImpl> { 20 public content::WebContentsUserData<PasswordManagerDelegateImpl> {
21 public: 21 public:
22 virtual ~PasswordManagerDelegateImpl(); 22 virtual ~PasswordManagerDelegateImpl();
23 23
24 // PasswordManagerDelegate implementation. 24 // PasswordManagerDelegate implementation.
25 virtual void FillPasswordForm(
26 const autofill::PasswordFormFillData& form_data) OVERRIDE;
27 virtual void AddSavePasswordInfoBarIfPermitted( 25 virtual void AddSavePasswordInfoBarIfPermitted(
28 PasswordFormManager* form_to_save) OVERRIDE; 26 PasswordFormManager* form_to_save) OVERRIDE;
29 virtual Profile* GetProfile() OVERRIDE; 27 virtual Profile* GetProfile() OVERRIDE;
30 virtual bool DidLastPageLoadEncounterSSLErrors() OVERRIDE; 28 virtual PasswordManagerDriver* GetDriver() OVERRIDE;
31 29
32 private: 30 private:
33 explicit PasswordManagerDelegateImpl(content::WebContents* web_contents); 31 explicit PasswordManagerDelegateImpl(content::WebContents* web_contents);
34 friend class content::WebContentsUserData<PasswordManagerDelegateImpl>; 32 friend class content::WebContentsUserData<PasswordManagerDelegateImpl>;
35 33
36 content::WebContents* web_contents_; 34 content::WebContents* web_contents_;
37 ContentPasswordManagerDriver driver_; 35 ContentPasswordManagerDriver driver_;
38 36
39 DISALLOW_COPY_AND_ASSIGN(PasswordManagerDelegateImpl); 37 DISALLOW_COPY_AND_ASSIGN(PasswordManagerDelegateImpl);
40 }; 38 };
41 39
42 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_DELEGATE_IMPL_H_ 40 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_DELEGATE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698