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

Side by Side Diff: content/browser/frame_host/navigation_handle_impl.cc

Issue 2741313002: Renamed WasWithinSamePage to WasWithinSameDocument. (Closed)
Patch Set: Even moar fixes 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "content/browser/frame_host/navigation_handle_impl.h" 5 #include "content/browser/frame_host/navigation_handle_impl.h"
6 6
7 #include <iterator> 7 #include <iterator>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "content/browser/appcache/appcache_navigation_handle.h" 10 #include "content/browser/appcache/appcache_navigation_handle.h"
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 params.nav_entry_id = 1; 422 params.nav_entry_id = 1;
423 params.url = url; 423 params.url = url;
424 params.referrer = content::Referrer(); 424 params.referrer = content::Referrer();
425 params.transition = ui::PAGE_TRANSITION_TYPED; 425 params.transition = ui::PAGE_TRANSITION_TYPED;
426 params.redirects = std::vector<GURL>(); 426 params.redirects = std::vector<GURL>();
427 params.should_update_history = false; 427 params.should_update_history = false;
428 params.searchable_form_url = GURL(); 428 params.searchable_form_url = GURL();
429 params.searchable_form_encoding = std::string(); 429 params.searchable_form_encoding = std::string();
430 params.did_create_new_entry = false; 430 params.did_create_new_entry = false;
431 params.gesture = NavigationGestureUser; 431 params.gesture = NavigationGestureUser;
432 params.was_within_same_page = false; 432 params.was_within_same_document = false;
433 params.method = "GET"; 433 params.method = "GET";
434 params.page_state = PageState::CreateFromURL(url); 434 params.page_state = PageState::CreateFromURL(url);
435 params.contents_mime_type = std::string("text/html"); 435 params.contents_mime_type = std::string("text/html");
436 436
437 DidCommitNavigation(params, false, GURL(), NAVIGATION_TYPE_NEW_PAGE, 437 DidCommitNavigation(params, false, GURL(), NAVIGATION_TYPE_NEW_PAGE,
438 render_frame_host_); 438 render_frame_host_);
439 } 439 }
440 440
441 bool NavigationHandleImpl::WasStartedFromContextMenu() const { 441 bool NavigationHandleImpl::WasStartedFromContextMenu() const {
442 return started_from_context_menu_; 442 return started_from_context_menu_;
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
947 if (node->current_url().EqualsIgnoringRef(url_)) { 947 if (node->current_url().EqualsIgnoringRef(url_)) {
948 if (found_self_reference) 948 if (found_self_reference)
949 return true; 949 return true;
950 found_self_reference = true; 950 found_self_reference = true;
951 } 951 }
952 } 952 }
953 return false; 953 return false;
954 } 954 }
955 955
956 } // namespace content 956 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698