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

Side by Side Diff: components/password_manager/content/browser/content_password_manager_driver.h

Issue 1153023004: Prepare the infrastructure for password overrides. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed the test. Created 5 years, 6 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
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 COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_PASSWORD_MANAGER_DRI VER_H_ 5 #ifndef COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_PASSWORD_MANAGER_DRI VER_H_
6 #define COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_PASSWORD_MANAGER_DRI VER_H_ 6 #define COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_PASSWORD_MANAGER_DRI VER_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 "components/autofill/core/common/password_form_field_prediction_map.h"
10 #include "components/password_manager/core/browser/password_autofill_manager.h" 11 #include "components/password_manager/core/browser/password_autofill_manager.h"
11 #include "components/password_manager/core/browser/password_generation_manager.h " 12 #include "components/password_manager/core/browser/password_generation_manager.h "
12 #include "components/password_manager/core/browser/password_manager.h" 13 #include "components/password_manager/core/browser/password_manager.h"
13 #include "components/password_manager/core/browser/password_manager_driver.h" 14 #include "components/password_manager/core/browser/password_manager_driver.h"
14 15
15 namespace autofill { 16 namespace autofill {
16 class AutofillManager; 17 class AutofillManager;
17 struct PasswordForm; 18 struct PasswordForm;
18 } 19 }
19 20
(...skipping 24 matching lines...) Expand all
44 content::RenderFrameHost* render_frame_host); 45 content::RenderFrameHost* render_frame_host);
45 46
46 // PasswordManagerDriver implementation. 47 // PasswordManagerDriver implementation.
47 void FillPasswordForm( 48 void FillPasswordForm(
48 const autofill::PasswordFormFillData& form_data) override; 49 const autofill::PasswordFormFillData& form_data) override;
49 void AllowPasswordGenerationForForm( 50 void AllowPasswordGenerationForForm(
50 const autofill::PasswordForm& form) override; 51 const autofill::PasswordForm& form) override;
51 void AccountCreationFormsFound( 52 void AccountCreationFormsFound(
52 const std::vector<autofill::FormData>& forms) override; 53 const std::vector<autofill::FormData>& forms) override;
53 void AutofillDataReceived( 54 void AutofillDataReceived(
54 const std::map<autofill::FormData, autofill::FormFieldData>& predictions) 55 const std::map<autofill::FormData,
56 autofill::PasswordFormFieldPredictionMap>& predictions)
55 override; 57 override;
56 void GeneratedPasswordAccepted(const base::string16& password) override; 58 void GeneratedPasswordAccepted(const base::string16& password) override;
57 void FillSuggestion(const base::string16& username, 59 void FillSuggestion(const base::string16& username,
58 const base::string16& password) override; 60 const base::string16& password) override;
59 void PreviewSuggestion(const base::string16& username, 61 void PreviewSuggestion(const base::string16& username,
60 const base::string16& password) override; 62 const base::string16& password) override;
61 void ClearPreviewedForm() override; 63 void ClearPreviewedForm() override;
62 64
63 PasswordGenerationManager* GetPasswordGenerationManager() override; 65 PasswordGenerationManager* GetPasswordGenerationManager() override;
64 PasswordManager* GetPasswordManager() override; 66 PasswordManager* GetPasswordManager() override;
(...skipping 23 matching lines...) Expand all
88 // the latter two classes can reference to the same instance without sending 90 // the latter two classes can reference to the same instance without sending
89 // it to each other over IPC. The counter below is used to generate new IDs. 91 // it to each other over IPC. The counter below is used to generate new IDs.
90 int next_free_key_; 92 int next_free_key_;
91 93
92 DISALLOW_COPY_AND_ASSIGN(ContentPasswordManagerDriver); 94 DISALLOW_COPY_AND_ASSIGN(ContentPasswordManagerDriver);
93 }; 95 };
94 96
95 } // namespace password_manager 97 } // namespace password_manager
96 98
97 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_PASSWORD_MANAGER_ DRIVER_H_ 99 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_PASSWORD_MANAGER_ DRIVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698