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

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

Issue 707173004: Refactor Autofill for out of process iframes (OOPIF). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mem leak Created 6 years 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 (c) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_CREDENTIAL_MANAGER_PASSWORD_ FORM_MANAGER_H_ 5 #ifndef COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CREDENTIAL_MANAGER_PASSWORD_ FORM_MANAGER_H_
6 #define COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CREDENTIAL_MANAGER_PASSWORD_ FORM_MANAGER_H_ 6 #define COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CREDENTIAL_MANAGER_PASSWORD_ FORM_MANAGER_H_
7 7
8 #include "components/password_manager/core/browser/password_form_manager.h" 8 #include "components/password_manager/core/browser/password_form_manager.h"
9 9
10 namespace autofill { 10 namespace autofill {
11 struct PasswordForm; 11 struct PasswordForm;
12 } 12 }
13 13
14 namespace password_manager { 14 namespace password_manager {
15 15
16 class ContentCredentialManagerDispatcher; 16 class ContentCredentialManagerDispatcher;
17 class PasswordManagerClient; 17 class PasswordManagerClient;
18 class PasswordManagerDriver;
18 19
19 // A PasswordFormManager built to handle PassworForm objects synthesized 20 // A PasswordFormManager built to handle PassworForm objects synthesized
20 // by the Credential Manager API. 21 // by the Credential Manager API.
21 class CredentialManagerPasswordFormManager : public PasswordFormManager { 22 class CredentialManagerPasswordFormManager : public PasswordFormManager {
22 public: 23 public:
23 // Given a |client| and an |observed_form|, kick off the process of fetching 24 // Given a |client| and an |observed_form|, kick off the process of fetching
24 // matching logins from the password store; if |observed_form| doesn't map to 25 // matching logins from the password store; if |observed_form| doesn't map to
25 // a blacklisted origin, provisionally save it. Once saved, let the dispatcher 26 // a blacklisted origin, provisionally save it. Once saved, let the dispatcher
26 // know that it's safe to poke at the UI. 27 // know that it's safe to poke at the UI.
27 // 28 //
28 // This class does not take ownership of |dispatcher|. 29 // This class does not take ownership of |dispatcher|.
29 CredentialManagerPasswordFormManager( 30 CredentialManagerPasswordFormManager(
30 PasswordManagerClient* client, 31 PasswordManagerClient* client,
32 PasswordManagerDriver* driver,
31 const autofill::PasswordForm& observed_form, 33 const autofill::PasswordForm& observed_form,
32 ContentCredentialManagerDispatcher* dispatcher); 34 ContentCredentialManagerDispatcher* dispatcher);
33 ~CredentialManagerPasswordFormManager() override; 35 ~CredentialManagerPasswordFormManager() override;
34 36
35 void OnGetPasswordStoreResults( 37 void OnGetPasswordStoreResults(
36 const std::vector<autofill::PasswordForm*>& results) override; 38 const std::vector<autofill::PasswordForm*>& results) override;
37 39
38 private: 40 private:
39 ContentCredentialManagerDispatcher* dispatcher_; 41 ContentCredentialManagerDispatcher* dispatcher_;
40 42
41 DISALLOW_COPY_AND_ASSIGN(CredentialManagerPasswordFormManager); 43 DISALLOW_COPY_AND_ASSIGN(CredentialManagerPasswordFormManager);
42 }; 44 };
43 45
44 } // namespace password_manager 46 } // namespace password_manager
45 47
46 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CREDENTIAL_MANAGER_PASSWO RD_FORM_MANAGER_H_ 48 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CREDENTIAL_MANAGER_PASSWO RD_FORM_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698