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

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

Issue 2716493004: Renamed NavigationHandle::IsSamePage to NavigationHandle::IsSameDocument (Closed)
Patch Set: Rebased Created 3 years, 9 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 #include "components/password_manager/content/browser/content_password_manager_d river.h" 5 #include "components/password_manager/content/browser/content_password_manager_d river.h"
6 6
7 #include "components/autofill/content/browser/content_autofill_driver.h" 7 #include "components/autofill/content/browser/content_autofill_driver.h"
8 #include "components/autofill/core/common/form_data.h" 8 #include "components/autofill/core/common/form_data.h"
9 #include "components/autofill/core/common/password_form.h" 9 #include "components/autofill/core/common/password_form.h"
10 #include "components/password_manager/content/browser/bad_message.h" 10 #include "components/password_manager/content/browser/bad_message.h"
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 void ContentPasswordManagerDriver:: 222 void ContentPasswordManagerDriver::
223 AllPasswordFieldsInInsecureContextInvisible() { 223 AllPasswordFieldsInInsecureContextInvisible() {
224 VisiblePasswordObserver* observer = VisiblePasswordObserver::FromWebContents( 224 VisiblePasswordObserver* observer = VisiblePasswordObserver::FromWebContents(
225 content::WebContents::FromRenderFrameHost(render_frame_host_)); 225 content::WebContents::FromRenderFrameHost(render_frame_host_));
226 observer->RenderFrameHasNoVisiblePasswordFields(render_frame_host_); 226 observer->RenderFrameHasNoVisiblePasswordFields(render_frame_host_);
227 } 227 }
228 228
229 void ContentPasswordManagerDriver::DidNavigateFrame( 229 void ContentPasswordManagerDriver::DidNavigateFrame(
230 content::NavigationHandle* navigation_handle) { 230 content::NavigationHandle* navigation_handle) {
231 // Clear page specific data after main frame navigation. 231 // Clear page specific data after main frame navigation.
232 if (navigation_handle->IsInMainFrame() && !navigation_handle->IsSamePage()) { 232 if (navigation_handle->IsInMainFrame() &&
233 !navigation_handle->IsSameDocument()) {
233 GetPasswordManager()->DidNavigateMainFrame(); 234 GetPasswordManager()->DidNavigateMainFrame();
234 GetPasswordAutofillManager()->DidNavigateMainFrame(); 235 GetPasswordAutofillManager()->DidNavigateMainFrame();
235 } 236 }
236 } 237 }
237 238
238 void ContentPasswordManagerDriver::InPageNavigation( 239 void ContentPasswordManagerDriver::InPageNavigation(
239 const autofill::PasswordForm& password_form) { 240 const autofill::PasswordForm& password_form) {
240 if (!CheckChildProcessSecurityPolicy( 241 if (!CheckChildProcessSecurityPolicy(
241 password_form.origin, 242 password_form.origin,
242 BadMessageReason::CPMD_BAD_ORIGIN_IN_PAGE_NAVIGATION)) 243 BadMessageReason::CPMD_BAD_ORIGIN_IN_PAGE_NAVIGATION))
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 ContentPasswordManagerDriver::GetPasswordGenerationAgent() { 339 ContentPasswordManagerDriver::GetPasswordGenerationAgent() {
339 if (!password_gen_agent_) { 340 if (!password_gen_agent_) {
340 render_frame_host_->GetRemoteInterfaces()->GetInterface( 341 render_frame_host_->GetRemoteInterfaces()->GetInterface(
341 mojo::MakeRequest(&password_gen_agent_)); 342 mojo::MakeRequest(&password_gen_agent_));
342 } 343 }
343 344
344 return password_gen_agent_; 345 return password_gen_agent_;
345 } 346 }
346 347
347 } // namespace password_manager 348 } // namespace password_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698