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

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

Issue 1080143003: Move DidStartLoading, DidStopLoading, DidChangeLoadProgress to RFHI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Rebase Created 5 years, 8 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/navigator_impl.h" 5 #include "content/browser/frame_host/navigator_impl.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "content/browser/frame_host/frame_tree.h" 10 #include "content/browser/frame_host/frame_tree.h"
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 99
100 NavigatorImpl::NavigatorImpl( 100 NavigatorImpl::NavigatorImpl(
101 NavigationControllerImpl* navigation_controller, 101 NavigationControllerImpl* navigation_controller,
102 NavigatorDelegate* delegate) 102 NavigatorDelegate* delegate)
103 : controller_(navigation_controller), 103 : controller_(navigation_controller),
104 delegate_(delegate) { 104 delegate_(delegate) {
105 } 105 }
106 106
107 NavigatorImpl::~NavigatorImpl() {} 107 NavigatorImpl::~NavigatorImpl() {}
108 108
109 NavigatorDelegate* NavigatorImpl::GetDelegate() {
110 return delegate_;
111 }
112
109 NavigationController* NavigatorImpl::GetController() { 113 NavigationController* NavigatorImpl::GetController() {
110 return controller_; 114 return controller_;
111 } 115 }
112 116
113 void NavigatorImpl::DidStartProvisionalLoad( 117 void NavigatorImpl::DidStartProvisionalLoad(
114 RenderFrameHostImpl* render_frame_host, 118 RenderFrameHostImpl* render_frame_host,
115 const GURL& url, 119 const GURL& url,
116 bool is_transition_navigation) { 120 bool is_transition_navigation) {
117 bool is_error_page = (url.spec() == kUnreachableWebDataURL); 121 bool is_error_page = (url.spec() == kUnreachableWebDataURL);
118 bool is_iframe_srcdoc = (url.spec() == kAboutSrcDocURL); 122 bool is_iframe_srcdoc = (url.spec() == kAboutSrcDocURL);
(...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after
883 "Navigation.TimeToCommit_ExistingRenderer_BeforeUnloadDiscounted", 887 "Navigation.TimeToCommit_ExistingRenderer_BeforeUnloadDiscounted",
884 time_to_commit); 888 time_to_commit);
885 UMA_HISTOGRAM_TIMES( 889 UMA_HISTOGRAM_TIMES(
886 "Navigation.TimeToURLJobStart_ExistingRenderer_BeforeUnloadDiscounted", 890 "Navigation.TimeToURLJobStart_ExistingRenderer_BeforeUnloadDiscounted",
887 time_to_network); 891 time_to_network);
888 } 892 }
889 navigation_data_.reset(); 893 navigation_data_.reset();
890 } 894 }
891 895
892 } // namespace content 896 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/frame_host/navigator_impl.h ('k') | content/browser/frame_host/render_frame_host_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698