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

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

Issue 2007473004: [Autofill] Migrate ContentAutofillDriver<-->AutofillAgent IPCs to mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Initialize remote_interfaces_ in Init() Created 4 years, 5 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 <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "components/autofill/content/public/interfaces/autofill_agent.mojom.h"
13 #include "components/autofill/core/common/password_form_field_prediction_map.h" 14 #include "components/autofill/core/common/password_form_field_prediction_map.h"
14 #include "components/autofill/core/common/password_form_generation_data.h" 15 #include "components/autofill/core/common/password_form_generation_data.h"
15 #include "components/password_manager/core/browser/password_autofill_manager.h" 16 #include "components/password_manager/core/browser/password_autofill_manager.h"
16 #include "components/password_manager/core/browser/password_generation_manager.h " 17 #include "components/password_manager/core/browser/password_generation_manager.h "
17 #include "components/password_manager/core/browser/password_manager.h" 18 #include "components/password_manager/core/browser/password_manager.h"
18 #include "components/password_manager/core/browser/password_manager_driver.h" 19 #include "components/password_manager/core/browser/password_manager_driver.h"
19 20
20 namespace autofill { 21 namespace autofill {
21 class AutofillManager; 22 class AutofillManager;
22 struct PasswordForm; 23 struct PasswordForm;
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 void OnPasswordNoLongerGenerated(const autofill::PasswordForm& password_form); 95 void OnPasswordNoLongerGenerated(const autofill::PasswordForm& password_form);
95 void OnFocusedPasswordFormFound(const autofill::PasswordForm& password_form); 96 void OnFocusedPasswordFormFound(const autofill::PasswordForm& password_form);
96 void OnSaveGenerationFieldDetectedByClassifier( 97 void OnSaveGenerationFieldDetectedByClassifier(
97 const autofill::PasswordForm& password_form, 98 const autofill::PasswordForm& password_form,
98 const base::string16& generation_field); 99 const base::string16& generation_field);
99 100
100 private: 101 private:
101 bool CheckChildProcessSecurityPolicy(const GURL& url, 102 bool CheckChildProcessSecurityPolicy(const GURL& url,
102 BadMessageReason reason); 103 BadMessageReason reason);
103 104
105 const autofill::mojom::AutofillAgentPtr& GetAutofillAgent();
106
104 content::RenderFrameHost* render_frame_host_; 107 content::RenderFrameHost* render_frame_host_;
105 PasswordManagerClient* client_; 108 PasswordManagerClient* client_;
106 PasswordGenerationManager password_generation_manager_; 109 PasswordGenerationManager password_generation_manager_;
107 PasswordAutofillManager password_autofill_manager_; 110 PasswordAutofillManager password_autofill_manager_;
108 111
109 // Every instance of PasswordFormFillData created by |*this| and sent to 112 // Every instance of PasswordFormFillData created by |*this| and sent to
110 // PasswordAutofillManager and PasswordAutofillAgent is given an ID, so that 113 // PasswordAutofillManager and PasswordAutofillAgent is given an ID, so that
111 // the latter two classes can reference to the same instance without sending 114 // the latter two classes can reference to the same instance without sending
112 // it to each other over IPC. The counter below is used to generate new IDs. 115 // it to each other over IPC. The counter below is used to generate new IDs.
113 int next_free_key_; 116 int next_free_key_;
114 117
115 DISALLOW_COPY_AND_ASSIGN(ContentPasswordManagerDriver); 118 DISALLOW_COPY_AND_ASSIGN(ContentPasswordManagerDriver);
116 }; 119 };
117 120
118 } // namespace password_manager 121 } // namespace password_manager
119 122
120 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_PASSWORD_MANAGER_ DRIVER_H_ 123 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_PASSWORD_MANAGER_ DRIVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698