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 780 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
791 Send(new ViewMsg_SetInitialFocus(GetRoutingID(), reverse)); | 791 Send(new ViewMsg_SetInitialFocus(GetRoutingID(), reverse)); |
792 } | 792 } |
793 | 793 |
794 void RenderViewHostImpl::FilesSelectedInChooser( | 794 void RenderViewHostImpl::FilesSelectedInChooser( |
795 const std::vector<ui::SelectedFileInfo>& files, | 795 const std::vector<ui::SelectedFileInfo>& files, |
796 int permissions) { | 796 int permissions) { |
797 // Grant the security access requested to the given files. | 797 // Grant the security access requested to the given files. |
798 for (size_t i = 0; i < files.size(); ++i) { | 798 for (size_t i = 0; i < files.size(); ++i) { |
799 const ui::SelectedFileInfo& file = files[i]; | 799 const ui::SelectedFileInfo& file = files[i]; |
800 ChildProcessSecurityPolicyImpl::GetInstance()->GrantPermissionsForFile( | 800 ChildProcessSecurityPolicyImpl::GetInstance()->GrantPermissionsForFile( |
801 GetProcess()->GetID(), file.path, permissions); | 801 GetProcess()->GetID(), file.local_path, permissions); |
802 } | 802 } |
803 Send(new ViewMsg_RunFileChooserResponse(GetRoutingID(), files)); | 803 Send(new ViewMsg_RunFileChooserResponse(GetRoutingID(), files)); |
804 } | 804 } |
805 | 805 |
806 void RenderViewHostImpl::DirectoryEnumerationFinished( | 806 void RenderViewHostImpl::DirectoryEnumerationFinished( |
807 int request_id, | 807 int request_id, |
808 const std::vector<FilePath>& files) { | 808 const std::vector<FilePath>& files) { |
809 // Grant the security access requested to the given files. | 809 // Grant the security access requested to the given files. |
810 for (std::vector<FilePath>::const_iterator file = files.begin(); | 810 for (std::vector<FilePath>::const_iterator file = files.begin(); |
811 file != files.end(); ++file) { | 811 file != files.end(); ++file) { |
(...skipping 1071 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1883 // can cause navigations to be ignored in OnMsgNavigate. | 1883 // can cause navigations to be ignored in OnMsgNavigate. |
1884 is_waiting_for_beforeunload_ack_ = false; | 1884 is_waiting_for_beforeunload_ack_ = false; |
1885 is_waiting_for_unload_ack_ = false; | 1885 is_waiting_for_unload_ack_ = false; |
1886 } | 1886 } |
1887 | 1887 |
1888 void RenderViewHostImpl::ClearPowerSaveBlockers() { | 1888 void RenderViewHostImpl::ClearPowerSaveBlockers() { |
1889 STLDeleteValues(&power_save_blockers_); | 1889 STLDeleteValues(&power_save_blockers_); |
1890 } | 1890 } |
1891 | 1891 |
1892 } // namespace content | 1892 } // namespace content |
OLD | NEW |