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

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

Issue 1159143002: Add a basic functionality to the force-saving menu item. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added stub methods. 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/autofill/core/common/password_form_field_prediction_map.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 void AutofillDataReceived( 54 void AutofillDataReceived(
55 const std::map<autofill::FormData, 55 const std::map<autofill::FormData,
56 autofill::PasswordFormFieldPredictionMap>& predictions) 56 autofill::PasswordFormFieldPredictionMap>& predictions)
57 override; 57 override;
58 void GeneratedPasswordAccepted(const base::string16& password) override; 58 void GeneratedPasswordAccepted(const base::string16& password) override;
59 void FillSuggestion(const base::string16& username, 59 void FillSuggestion(const base::string16& username,
60 const base::string16& password) override; 60 const base::string16& password) override;
61 void PreviewSuggestion(const base::string16& username, 61 void PreviewSuggestion(const base::string16& username,
62 const base::string16& password) override; 62 const base::string16& password) override;
63 void ClearPreviewedForm() override; 63 void ClearPreviewedForm() override;
64 void ForceSavePassword() override;
64 65
65 PasswordGenerationManager* GetPasswordGenerationManager() override; 66 PasswordGenerationManager* GetPasswordGenerationManager() override;
66 PasswordManager* GetPasswordManager() override; 67 PasswordManager* GetPasswordManager() override;
67 PasswordAutofillManager* GetPasswordAutofillManager() override; 68 PasswordAutofillManager* GetPasswordAutofillManager() override;
68 69
69 bool HandleMessage(const IPC::Message& message); 70 bool HandleMessage(const IPC::Message& message);
70 void DidNavigateFrame(const content::LoadCommittedDetails& details, 71 void DidNavigateFrame(const content::LoadCommittedDetails& details,
71 const content::FrameNavigateParams& params); 72 const content::FrameNavigateParams& params);
72 73
73 // Pass-throughs to PasswordManager. 74 // Pass-throughs to PasswordManager.
74 void OnPasswordFormsParsed(const std::vector<autofill::PasswordForm>& forms); 75 void OnPasswordFormsParsed(const std::vector<autofill::PasswordForm>& forms);
75 void OnPasswordFormsRendered( 76 void OnPasswordFormsRendered(
76 const std::vector<autofill::PasswordForm>& visible_forms, 77 const std::vector<autofill::PasswordForm>& visible_forms,
77 bool did_stop_loading); 78 bool did_stop_loading);
78 void OnPasswordFormSubmitted(const autofill::PasswordForm& password_form); 79 void OnPasswordFormSubmitted(const autofill::PasswordForm& password_form);
79 void OnInPageNavigation(const autofill::PasswordForm& password_form); 80 void OnInPageNavigation(const autofill::PasswordForm& password_form);
80 void OnPasswordNoLongerGenerated(const autofill::PasswordForm& password_form); 81 void OnPasswordNoLongerGenerated(const autofill::PasswordForm& password_form);
82 void OnFocusedPasswordFormFound(const autofill::PasswordForm& password_form);
81 83
82 private: 84 private:
83 content::RenderFrameHost* render_frame_host_; 85 content::RenderFrameHost* render_frame_host_;
84 PasswordManagerClient* client_; 86 PasswordManagerClient* client_;
85 PasswordGenerationManager password_generation_manager_; 87 PasswordGenerationManager password_generation_manager_;
86 PasswordAutofillManager password_autofill_manager_; 88 PasswordAutofillManager password_autofill_manager_;
87 89
88 // Every instance of PasswordFormFillData created by |*this| and sent to 90 // Every instance of PasswordFormFillData created by |*this| and sent to
89 // PasswordAutofillManager and PasswordAutofillAgent is given an ID, so that 91 // PasswordAutofillManager and PasswordAutofillAgent is given an ID, so that
90 // the latter two classes can reference to the same instance without sending 92 // the latter two classes can reference to the same instance without sending
91 // it to each other over IPC. The counter below is used to generate new IDs. 93 // it to each other over IPC. The counter below is used to generate new IDs.
92 int next_free_key_; 94 int next_free_key_;
93 95
94 DISALLOW_COPY_AND_ASSIGN(ContentPasswordManagerDriver); 96 DISALLOW_COPY_AND_ASSIGN(ContentPasswordManagerDriver);
95 }; 97 };
96 98
97 } // namespace password_manager 99 } // namespace password_manager
98 100
99 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_PASSWORD_MANAGER_ DRIVER_H_ 101 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_PASSWORD_MANAGER_ DRIVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698