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

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

Issue 151413008: Move ownership of Password(Generation)Manager to ContentPasswordDriver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Handle WebContents having no PasswordManagerDelegateImpl attached 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_CONTENT_PASSWORD_MANAGER_DRIVER_H_ 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_CONTENT_PASSWORD_MANAGER_DRIVER_H_
6 #define CHROME_BROWSER_PASSWORD_MANAGER_CONTENT_PASSWORD_MANAGER_DRIVER_H_ 6 #define CHROME_BROWSER_PASSWORD_MANAGER_CONTENT_PASSWORD_MANAGER_DRIVER_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_generation_manager.h"
11 #include "chrome/browser/password_manager/password_manager.h"
10 #include "chrome/browser/password_manager/password_manager_driver.h" 12 #include "chrome/browser/password_manager/password_manager_driver.h"
11 13
12 namespace content { 14 namespace content {
13 class WebContents; 15 class WebContents;
14 } 16 }
15 17
16 class ContentPasswordManagerDriver : public PasswordManagerDriver { 18 class ContentPasswordManagerDriver : public PasswordManagerDriver {
17 public: 19 public:
18 explicit ContentPasswordManagerDriver(content::WebContents* web_contents); 20 explicit ContentPasswordManagerDriver(content::WebContents* web_contents,
21 PasswordManagerDelegate* delegate);
19 virtual ~ContentPasswordManagerDriver(); 22 virtual ~ContentPasswordManagerDriver();
20 23
21 // PasswordManagerDriver implementation. 24 // PasswordManagerDriver implementation.
22 virtual void FillPasswordForm( 25 virtual void FillPasswordForm(const autofill::PasswordFormFillData& form_data)
23 const autofill::PasswordFormFillData& form_data) OVERRIDE; 26 OVERRIDE;
24 virtual bool DidLastPageLoadEncounterSSLErrors() OVERRIDE; 27 virtual bool DidLastPageLoadEncounterSSLErrors() OVERRIDE;
28 virtual PasswordGenerationManager* GetPasswordGenerationManager() OVERRIDE;
29 virtual PasswordManager* GetPasswordManager() OVERRIDE;
25 30
26 private: 31 private:
27 content::WebContents* web_contents_; 32 content::WebContents* web_contents_;
28 33
34 // Must outlive this instance.
35 PasswordManagerDelegate* delegate_;
36
37 PasswordManager password_manager_;
38 PasswordGenerationManager password_generation_manager_;
39
29 DISALLOW_COPY_AND_ASSIGN(ContentPasswordManagerDriver); 40 DISALLOW_COPY_AND_ASSIGN(ContentPasswordManagerDriver);
30 }; 41 };
31 42
32 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CONTENT_PASSWORD_MANAGER_DRIVER_H_ 43 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CONTENT_PASSWORD_MANAGER_DRIVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/webui_login_view.cc ('k') | chrome/browser/password_manager/content_password_manager_driver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698