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

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: Fix unittests Created 4 years, 7 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 834 matching lines...) Expand 10 before | Expand all | Expand 10 after
845 BrowserThread::IO, 845 BrowserThread::IO,
846 FROM_HERE, 846 FROM_HERE,
847 base::Bind(&ResourceDispatcherHostImpl::OnRenderViewHostSetIsLoading, 847 base::Bind(&ResourceDispatcherHostImpl::OnRenderViewHostSetIsLoading,
848 base::Unretained(ResourceDispatcherHostImpl::Get()), 848 base::Unretained(ResourceDispatcherHostImpl::Get()),
849 GetProcess()->GetID(), 849 GetProcess()->GetID(),
850 GetRoutingID(), 850 GetRoutingID(),
851 is_loading)); 851 is_loading));
852 } 852 }
853 } 853 }
854 854
855 void RenderViewHostImpl::LoadStateChanged(
856 const GURL& url,
857 const net::LoadStateWithParam& load_state,
858 uint64_t upload_position,
859 uint64_t upload_size) {
860 delegate_->LoadStateChanged(url, load_state, upload_position, upload_size);
861 }
862
863 bool RenderViewHostImpl::SuddenTerminationAllowed() const { 855 bool RenderViewHostImpl::SuddenTerminationAllowed() const {
864 return sudden_termination_allowed_ || 856 return sudden_termination_allowed_ ||
865 GetProcess()->SuddenTerminationAllowed(); 857 GetProcess()->SuddenTerminationAllowed();
866 } 858 }
867 859
868 /////////////////////////////////////////////////////////////////////////////// 860 ///////////////////////////////////////////////////////////////////////////////
869 // RenderViewHostImpl, IPC message handlers: 861 // RenderViewHostImpl, IPC message handlers:
870 862
871 bool RenderViewHostImpl::OnMessageReceived(const IPC::Message& msg) { 863 bool RenderViewHostImpl::OnMessageReceived(const IPC::Message& msg) {
872 // Filter out most IPC messages if this renderer is swapped out. 864 // Filter out most IPC messages if this renderer is swapped out.
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
1349 } else { 1341 } else {
1350 render_view_ready_on_process_launch_ = true; 1342 render_view_ready_on_process_launch_ = true;
1351 } 1343 }
1352 } 1344 }
1353 1345
1354 void RenderViewHostImpl::RenderViewReady() { 1346 void RenderViewHostImpl::RenderViewReady() {
1355 delegate_->RenderViewReady(this); 1347 delegate_->RenderViewReady(this);
1356 } 1348 }
1357 1349
1358 } // namespace content 1350 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698