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

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

Issue 192633002: Move ContentAutofillDriver to the PasswordManager component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_CONTENT_PASSWORD_MANAGER_DRIVER_H_
6 #define CHROME_BROWSER_PASSWORD_MANAGER_CONTENT_PASSWORD_MANAGER_DRIVER_H_
7
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "components/password_manager/core/browser/password_generation_manager.h "
11 #include "components/password_manager/core/browser/password_manager.h"
12 #include "components/password_manager/core/browser/password_manager_driver.h"
13 #include "content/public/browser/web_contents_observer.h"
14
15 namespace autofill {
16 class AutofillManager;
17 struct PasswordForm;
18 }
19
20 namespace content {
21 class WebContents;
22 }
23
24 class ContentPasswordManagerDriver : public PasswordManagerDriver,
25 public content::WebContentsObserver {
26 public:
27 ContentPasswordManagerDriver(content::WebContents* web_contents,
28 PasswordManagerClient* client);
29 virtual ~ContentPasswordManagerDriver();
30
31 // PasswordManagerDriver implementation.
32 virtual void FillPasswordForm(const autofill::PasswordFormFillData& form_data)
33 OVERRIDE;
34 virtual void AllowPasswordGenerationForForm(autofill::PasswordForm* form)
35 OVERRIDE;
36 virtual void AccountCreationFormsFound(
37 const std::vector<autofill::FormData>& forms) OVERRIDE;
38 virtual bool DidLastPageLoadEncounterSSLErrors() OVERRIDE;
39 virtual bool IsOffTheRecord() OVERRIDE;
40 virtual PasswordGenerationManager* GetPasswordGenerationManager() OVERRIDE;
41 virtual PasswordManager* GetPasswordManager() OVERRIDE;
42 virtual autofill::AutofillManager* GetAutofillManager() OVERRIDE;
43
44 // content::WebContentsObserver overrides.
45 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
46 virtual void DidNavigateMainFrame(
47 const content::LoadCommittedDetails& details,
48 const content::FrameNavigateParams& params) OVERRIDE;
49
50 private:
51 PasswordManager password_manager_;
52 PasswordGenerationManager password_generation_manager_;
53
54 DISALLOW_COPY_AND_ASSIGN(ContentPasswordManagerDriver);
55 };
56
57 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CONTENT_PASSWORD_MANAGER_DRIVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698