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

Side by Side Diff: content/browser/renderer_host/render_view_host_impl.cc

Issue 1564963002: [on hold] Remove dependency on RenderViewHost from LoadState notifications Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: make LoadInfo CONTENT_EXPORT for tests Created 4 years, 6 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/renderer_host/render_view_host_impl.h" 5 #include "content/browser/renderer_host/render_view_host_impl.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 811 matching lines...) Expand 10 before | Expand all | Expand 10 after
822 BrowserThread::IO, 822 BrowserThread::IO,
823 FROM_HERE, 823 FROM_HERE,
824 base::Bind(&ResourceDispatcherHostImpl::OnRenderViewHostSetIsLoading, 824 base::Bind(&ResourceDispatcherHostImpl::OnRenderViewHostSetIsLoading,
825 base::Unretained(ResourceDispatcherHostImpl::Get()), 825 base::Unretained(ResourceDispatcherHostImpl::Get()),
826 GetProcess()->GetID(), 826 GetProcess()->GetID(),
827 GetRoutingID(), 827 GetRoutingID(),
828 is_loading)); 828 is_loading));
829 } 829 }
830 } 830 }
831 831
832 void RenderViewHostImpl::LoadStateChanged(
833 const GURL& url,
834 const net::LoadStateWithParam& load_state,
835 uint64_t upload_position,
836 uint64_t upload_size) {
837 delegate_->LoadStateChanged(url, load_state, upload_position, upload_size);
838 }
839
840 bool RenderViewHostImpl::SuddenTerminationAllowed() const { 832 bool RenderViewHostImpl::SuddenTerminationAllowed() const {
841 return sudden_termination_allowed_ || 833 return sudden_termination_allowed_ ||
842 GetProcess()->SuddenTerminationAllowed(); 834 GetProcess()->SuddenTerminationAllowed();
843 } 835 }
844 836
845 /////////////////////////////////////////////////////////////////////////////// 837 ///////////////////////////////////////////////////////////////////////////////
846 // RenderViewHostImpl, IPC message handlers: 838 // RenderViewHostImpl, IPC message handlers:
847 839
848 bool RenderViewHostImpl::OnMessageReceived(const IPC::Message& msg) { 840 bool RenderViewHostImpl::OnMessageReceived(const IPC::Message& msg) {
849 // Filter out most IPC messages if this renderer is swapped out. 841 // Filter out most IPC messages if this renderer is swapped out.
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
1321 } else { 1313 } else {
1322 render_view_ready_on_process_launch_ = true; 1314 render_view_ready_on_process_launch_ = true;
1323 } 1315 }
1324 } 1316 }
1325 1317
1326 void RenderViewHostImpl::RenderViewReady() { 1318 void RenderViewHostImpl::RenderViewReady() {
1327 delegate_->RenderViewReady(this); 1319 delegate_->RenderViewReady(this);
1328 } 1320 }
1329 1321
1330 } // namespace content 1322 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698