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

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

Issue 2656453002: Remove password manager's dependency of BrowsingDataHelper (Closed)
Patch Set: s/spec/possibly_invalid_spec/ Created 3 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/password_manager/chrome_password_manager_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_
6 #define CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ 6 #define CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 content::WebContents* contents, 107 content::WebContents* contents,
108 autofill::AutofillClient* autofill_client); 108 autofill::AutofillClient* autofill_client);
109 109
110 // Observer for PasswordGenerationPopup events. Used for testing. 110 // Observer for PasswordGenerationPopup events. Used for testing.
111 void SetTestObserver(autofill::PasswordGenerationPopupObserver* observer); 111 void SetTestObserver(autofill::PasswordGenerationPopupObserver* observer);
112 112
113 static void BindCredentialManager( 113 static void BindCredentialManager(
114 content::RenderFrameHost* render_frame_host, 114 content::RenderFrameHost* render_frame_host,
115 password_manager::mojom::CredentialManagerRequest request); 115 password_manager::mojom::CredentialManagerRequest request);
116 116
117 // A helper method to determine whether a save/update bubble can be shown
118 // on this |url|.
119 static bool CanShowBubbleOnURL(const GURL& url);
120
117 protected: 121 protected:
118 // Callable for tests. 122 // Callable for tests.
119 ChromePasswordManagerClient(content::WebContents* web_contents, 123 ChromePasswordManagerClient(content::WebContents* web_contents,
120 autofill::AutofillClient* autofill_client); 124 autofill::AutofillClient* autofill_client);
121 125
122 private: 126 private:
123 friend class content::WebContentsUserData<ChromePasswordManagerClient>; 127 friend class content::WebContentsUserData<ChromePasswordManagerClient>;
124 128
125 // content::WebContentsObserver overrides. 129 // content::WebContentsObserver overrides.
126 void DidStartNavigation( 130 void DidStartNavigation(
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 std::unique_ptr<password_manager::LogManager> log_manager_; 194 std::unique_ptr<password_manager::LogManager> log_manager_;
191 195
192 // Set during 'NotifyUserCouldBeAutoSignedIn' in order to store the 196 // Set during 'NotifyUserCouldBeAutoSignedIn' in order to store the
193 // form for potential use during 'NotifySuccessfulLoginWithExistingPassword'. 197 // form for potential use during 'NotifySuccessfulLoginWithExistingPassword'.
194 std::unique_ptr<autofill::PasswordForm> possible_auto_sign_in_; 198 std::unique_ptr<autofill::PasswordForm> possible_auto_sign_in_;
195 199
196 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient); 200 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient);
197 }; 201 };
198 202
199 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ 203 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/password_manager/chrome_password_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698