OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |