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 818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
829 for (std::vector<base::FilePath>::const_iterator file = files.begin(); | 829 for (std::vector<base::FilePath>::const_iterator file = files.begin(); |
830 file != files.end(); ++file) { | 830 file != files.end(); ++file) { |
831 ChildProcessSecurityPolicyImpl::GetInstance()->GrantReadFile( | 831 ChildProcessSecurityPolicyImpl::GetInstance()->GrantReadFile( |
832 GetProcess()->GetID(), *file); | 832 GetProcess()->GetID(), *file); |
833 } | 833 } |
834 Send(new ViewMsg_EnumerateDirectoryResponse(GetRoutingID(), | 834 Send(new ViewMsg_EnumerateDirectoryResponse(GetRoutingID(), |
835 request_id, | 835 request_id, |
836 files)); | 836 files)); |
837 } | 837 } |
838 | 838 |
| 839 void RenderViewHostImpl::SetIsLoading(bool is_loading) { |
| 840 if (ResourceDispatcherHostImpl::Get()) { |
| 841 BrowserThread::PostTask( |
| 842 BrowserThread::IO, |
| 843 FROM_HERE, |
| 844 base::Bind(&ResourceDispatcherHostImpl::OnRenderViewHostSetIsLoading, |
| 845 base::Unretained(ResourceDispatcherHostImpl::Get()), |
| 846 GetProcess()->GetID(), |
| 847 GetRoutingID(), |
| 848 is_loading)); |
| 849 } |
| 850 RenderWidgetHostImpl::SetIsLoading(is_loading); |
| 851 } |
| 852 |
839 void RenderViewHostImpl::LoadStateChanged( | 853 void RenderViewHostImpl::LoadStateChanged( |
840 const GURL& url, | 854 const GURL& url, |
841 const net::LoadStateWithParam& load_state, | 855 const net::LoadStateWithParam& load_state, |
842 uint64 upload_position, | 856 uint64 upload_position, |
843 uint64 upload_size) { | 857 uint64 upload_size) { |
844 delegate_->LoadStateChanged(url, load_state, upload_position, upload_size); | 858 delegate_->LoadStateChanged(url, load_state, upload_position, upload_size); |
845 } | 859 } |
846 | 860 |
847 bool RenderViewHostImpl::SuddenTerminationAllowed() const { | 861 bool RenderViewHostImpl::SuddenTerminationAllowed() const { |
848 return sudden_termination_allowed_ || | 862 return sudden_termination_allowed_ || |
(...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1544 FrameTree* frame_tree = delegate_->GetFrameTree(); | 1558 FrameTree* frame_tree = delegate_->GetFrameTree(); |
1545 | 1559 |
1546 frame_tree->ResetForMainFrameSwap(); | 1560 frame_tree->ResetForMainFrameSwap(); |
1547 } | 1561 } |
1548 | 1562 |
1549 void RenderViewHostImpl::SelectWordAroundCaret() { | 1563 void RenderViewHostImpl::SelectWordAroundCaret() { |
1550 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); | 1564 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); |
1551 } | 1565 } |
1552 | 1566 |
1553 } // namespace content | 1567 } // namespace content |
OLD | NEW |