| 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 771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 782 Send(new ViewMsg_SetInitialFocus(GetRoutingID(), reverse)); | 782 Send(new ViewMsg_SetInitialFocus(GetRoutingID(), reverse)); |
| 783 } | 783 } |
| 784 | 784 |
| 785 void RenderViewHostImpl::FilesSelectedInChooser( | 785 void RenderViewHostImpl::FilesSelectedInChooser( |
| 786 const std::vector<ui::SelectedFileInfo>& files, | 786 const std::vector<ui::SelectedFileInfo>& files, |
| 787 int permissions) { | 787 int permissions) { |
| 788 // Grant the security access requested to the given files. | 788 // Grant the security access requested to the given files. |
| 789 for (size_t i = 0; i < files.size(); ++i) { | 789 for (size_t i = 0; i < files.size(); ++i) { |
| 790 const ui::SelectedFileInfo& file = files[i]; | 790 const ui::SelectedFileInfo& file = files[i]; |
| 791 ChildProcessSecurityPolicyImpl::GetInstance()->GrantPermissionsForFile( | 791 ChildProcessSecurityPolicyImpl::GetInstance()->GrantPermissionsForFile( |
| 792 GetProcess()->GetID(), file.path, permissions); | 792 GetProcess()->GetID(), file.real_path, permissions); |
| 793 } | 793 } |
| 794 Send(new ViewMsg_RunFileChooserResponse(GetRoutingID(), files)); | 794 Send(new ViewMsg_RunFileChooserResponse(GetRoutingID(), files)); |
| 795 } | 795 } |
| 796 | 796 |
| 797 void RenderViewHostImpl::DirectoryEnumerationFinished( | 797 void RenderViewHostImpl::DirectoryEnumerationFinished( |
| 798 int request_id, | 798 int request_id, |
| 799 const std::vector<FilePath>& files) { | 799 const std::vector<FilePath>& files) { |
| 800 // Grant the security access requested to the given files. | 800 // Grant the security access requested to the given files. |
| 801 for (std::vector<FilePath>::const_iterator file = files.begin(); | 801 for (std::vector<FilePath>::const_iterator file = files.begin(); |
| 802 file != files.end(); ++file) { | 802 file != files.end(); ++file) { |
| (...skipping 1071 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1874 // can cause navigations to be ignored in OnMsgNavigate. | 1874 // can cause navigations to be ignored in OnMsgNavigate. |
| 1875 is_waiting_for_beforeunload_ack_ = false; | 1875 is_waiting_for_beforeunload_ack_ = false; |
| 1876 is_waiting_for_unload_ack_ = false; | 1876 is_waiting_for_unload_ack_ = false; |
| 1877 } | 1877 } |
| 1878 | 1878 |
| 1879 void RenderViewHostImpl::ClearPowerSaveBlockers() { | 1879 void RenderViewHostImpl::ClearPowerSaveBlockers() { |
| 1880 STLDeleteValues(&power_save_blockers_); | 1880 STLDeleteValues(&power_save_blockers_); |
| 1881 } | 1881 } |
| 1882 | 1882 |
| 1883 } // namespace content | 1883 } // namespace content |
| OLD | NEW |