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

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

Issue 2664573002: Convert ChromePasswordManagerClient to use the new navigation callbacks. (Closed)
Patch Set: Created 3 years, 10 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 // Callable for tests. 122 // Callable for tests.
123 ChromePasswordManagerClient(content::WebContents* web_contents, 123 ChromePasswordManagerClient(content::WebContents* web_contents,
124 autofill::AutofillClient* autofill_client); 124 autofill::AutofillClient* autofill_client);
125 125
126 private: 126 private:
127 friend class content::WebContentsUserData<ChromePasswordManagerClient>; 127 friend class content::WebContentsUserData<ChromePasswordManagerClient>;
128 128
129 // content::WebContentsObserver overrides. 129 // content::WebContentsObserver overrides.
130 void DidStartNavigation( 130 void DidStartNavigation(
131 content::NavigationHandle* navigation_handle) override; 131 content::NavigationHandle* navigation_handle) override;
132 void DidNavigateMainFrame( 132 void DidFinishNavigation(
133 const content::LoadCommittedDetails& details, 133 content::NavigationHandle* navigation_handle) override;
134 const content::FrameNavigateParams& params) override;
135 134
136 // content::RenderWidgetHost::InputEventObserver overrides. 135 // content::RenderWidgetHost::InputEventObserver overrides.
137 void OnInputEvent(const blink::WebInputEvent&) override; 136 void OnInputEvent(const blink::WebInputEvent&) override;
138 137
139 // Given |bounds| in the renderers coordinate system, return the same bounds 138 // Given |bounds| in the renderers coordinate system, return the same bounds
140 // in the screens coordinate system. 139 // in the screens coordinate system.
141 gfx::RectF GetBoundsInScreenSpace(const gfx::RectF& bounds); 140 gfx::RectF GetBoundsInScreenSpace(const gfx::RectF& bounds);
142 141
143 // Checks if the current page fulfils the conditions for the password manager 142 // Checks if the current page fulfils the conditions for the password manager
144 // to be active on it, for example Sync credentials are not saved or auto 143 // to be active on it, for example Sync credentials are not saved or auto
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 std::unique_ptr<password_manager::LogManager> log_manager_; 193 std::unique_ptr<password_manager::LogManager> log_manager_;
195 194
196 // Set during 'NotifyUserCouldBeAutoSignedIn' in order to store the 195 // Set during 'NotifyUserCouldBeAutoSignedIn' in order to store the
197 // form for potential use during 'NotifySuccessfulLoginWithExistingPassword'. 196 // form for potential use during 'NotifySuccessfulLoginWithExistingPassword'.
198 std::unique_ptr<autofill::PasswordForm> possible_auto_sign_in_; 197 std::unique_ptr<autofill::PasswordForm> possible_auto_sign_in_;
199 198
200 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient); 199 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient);
201 }; 200 };
202 201
203 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ 202 #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