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

Side by Side Diff: chrome/browser/password_manager/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_PASSWORD_MANAGER_DRIVER_H_ 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_DRIVER_H_
6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_DRIVER_H_ 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_DRIVER_H_
7 7
8 class PasswordGenerationManager;
9 class PasswordManager;
10
8 namespace autofill { 11 namespace autofill {
9 struct PasswordFormFillData; 12 struct PasswordFormFillData;
10 } // namespace autofill 13 } // namespace autofill
11 14
12 // Interface that allows PasswordManager core code to interact with its driver 15 // Interface that allows PasswordManager core code to interact with its driver
13 // (i.e., obtain information from it and give information to it). 16 // (i.e., obtain information from it and give information to it).
14 class PasswordManagerDriver { 17 class PasswordManagerDriver {
15 public: 18 public:
16 PasswordManagerDriver() {} 19 PasswordManagerDriver() {}
17 virtual ~PasswordManagerDriver() {} 20 virtual ~PasswordManagerDriver() {}
18 21
19 // Fills forms matching |form_data|. 22 // Fills forms matching |form_data|.
20 virtual void FillPasswordForm( 23 virtual void FillPasswordForm(
21 const autofill::PasswordFormFillData& form_data) = 0; 24 const autofill::PasswordFormFillData& form_data) = 0;
22 25
23 // Returns whether any SSL certificate errors were encountered as a result of 26 // Returns whether any SSL certificate errors were encountered as a result of
24 // the last page load. 27 // the last page load.
25 virtual bool DidLastPageLoadEncounterSSLErrors() = 0; 28 virtual bool DidLastPageLoadEncounterSSLErrors() = 0;
26 29
30 // Returns the PasswordGenerationManager associated with this instance.
31 virtual PasswordGenerationManager* GetPasswordGenerationManager() = 0;
32
33 // Returns the PasswordManager associated with this instance.
34 virtual PasswordManager* GetPasswordManager() = 0;
35
27 private: 36 private:
28 DISALLOW_COPY_AND_ASSIGN(PasswordManagerDriver); 37 DISALLOW_COPY_AND_ASSIGN(PasswordManagerDriver);
29 }; 38 };
30 39
31
32 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_DRIVER_H_ 40 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_DRIVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698