| 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 816 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 827 for (std::vector<base::FilePath>::const_iterator file = files.begin(); | 827 for (std::vector<base::FilePath>::const_iterator file = files.begin(); |
| 828 file != files.end(); ++file) { | 828 file != files.end(); ++file) { |
| 829 ChildProcessSecurityPolicyImpl::GetInstance()->GrantReadFile( | 829 ChildProcessSecurityPolicyImpl::GetInstance()->GrantReadFile( |
| 830 GetProcess()->GetID(), *file); | 830 GetProcess()->GetID(), *file); |
| 831 } | 831 } |
| 832 Send(new ViewMsg_EnumerateDirectoryResponse(GetRoutingID(), | 832 Send(new ViewMsg_EnumerateDirectoryResponse(GetRoutingID(), |
| 833 request_id, | 833 request_id, |
| 834 files)); | 834 files)); |
| 835 } | 835 } |
| 836 | 836 |
| 837 void RenderViewHostImpl::SetIsLoading(bool is_loading) { |
| 838 if (ResourceDispatcherHostImpl::Get()) { |
| 839 BrowserThread::PostTask( |
| 840 BrowserThread::IO, |
| 841 FROM_HERE, |
| 842 base::Bind(&ResourceDispatcherHostImpl::OnRenderViewHostSetIsLoading, |
| 843 base::Unretained(ResourceDispatcherHostImpl::Get()), |
| 844 GetProcess()->GetID(), |
| 845 GetRoutingID(), |
| 846 is_loading)); |
| 847 } |
| 848 RenderWidgetHostImpl::SetIsLoading(is_loading); |
| 849 } |
| 850 |
| 837 void RenderViewHostImpl::LoadStateChanged( | 851 void RenderViewHostImpl::LoadStateChanged( |
| 838 const GURL& url, | 852 const GURL& url, |
| 839 const net::LoadStateWithParam& load_state, | 853 const net::LoadStateWithParam& load_state, |
| 840 uint64 upload_position, | 854 uint64 upload_position, |
| 841 uint64 upload_size) { | 855 uint64 upload_size) { |
| 842 delegate_->LoadStateChanged(url, load_state, upload_position, upload_size); | 856 delegate_->LoadStateChanged(url, load_state, upload_position, upload_size); |
| 843 } | 857 } |
| 844 | 858 |
| 845 bool RenderViewHostImpl::SuddenTerminationAllowed() const { | 859 bool RenderViewHostImpl::SuddenTerminationAllowed() const { |
| 846 return sudden_termination_allowed_ || | 860 return sudden_termination_allowed_ || |
| (...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1489 FrameTree* frame_tree = delegate_->GetFrameTree(); | 1503 FrameTree* frame_tree = delegate_->GetFrameTree(); |
| 1490 | 1504 |
| 1491 frame_tree->ResetForMainFrameSwap(); | 1505 frame_tree->ResetForMainFrameSwap(); |
| 1492 } | 1506 } |
| 1493 | 1507 |
| 1494 void RenderViewHostImpl::SelectWordAroundCaret() { | 1508 void RenderViewHostImpl::SelectWordAroundCaret() { |
| 1495 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); | 1509 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); |
| 1496 } | 1510 } |
| 1497 | 1511 |
| 1498 } // namespace content | 1512 } // namespace content |
| OLD | NEW |