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

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

Issue 2745033002: Fix LoadDataWithBaseUrlTest#testloadDataWithBaseUrlCallsOnPageStarted with PlzNavigate. (Closed)
Patch Set: fix unittest 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 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 } 451 }
452 452
453 ReloadType NavigationHandleImpl::GetReloadType() { 453 ReloadType NavigationHandleImpl::GetReloadType() {
454 return reload_type_; 454 return reload_type_;
455 } 455 }
456 456
457 RestoreType NavigationHandleImpl::GetRestoreType() { 457 RestoreType NavigationHandleImpl::GetRestoreType() {
458 return restore_type_; 458 return restore_type_;
459 } 459 }
460 460
461 const GURL& NavigationHandleImpl::GetBaseURLForDataURL() {
462 return base_url_for_data_url_;
463 }
464
461 NavigationData* NavigationHandleImpl::GetNavigationData() { 465 NavigationData* NavigationHandleImpl::GetNavigationData() {
462 return navigation_data_.get(); 466 return navigation_data_.get();
463 } 467 }
464 468
465 const GlobalRequestID& NavigationHandleImpl::GetGlobalRequestID() { 469 const GlobalRequestID& NavigationHandleImpl::GetGlobalRequestID() {
466 DCHECK(state_ == WILL_PROCESS_RESPONSE || state_ == DEFERRING_RESPONSE || 470 DCHECK(state_ == WILL_PROCESS_RESPONSE || state_ == DEFERRING_RESPONSE ||
467 state_ == READY_TO_COMMIT); 471 state_ == READY_TO_COMMIT);
468 return request_id_; 472 return request_id_;
469 } 473 }
470 474
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
947 if (node->current_url().EqualsIgnoringRef(url_)) { 951 if (node->current_url().EqualsIgnoringRef(url_)) {
948 if (found_self_reference) 952 if (found_self_reference)
949 return true; 953 return true;
950 found_self_reference = true; 954 found_self_reference = true;
951 } 955 }
952 } 956 }
953 return false; 957 return false;
954 } 958 }
955 959
956 } // namespace content 960 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/frame_host/navigation_handle_impl.h ('k') | content/browser/frame_host/navigator_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698