| 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 int main_frame_routing_id, | 162 int main_frame_routing_id, |
| 163 bool swapped_out, | 163 bool swapped_out, |
| 164 SessionStorageNamespace* session_storage) | 164 SessionStorageNamespace* session_storage) |
| 165 : RenderWidgetHostImpl(widget_delegate, instance->GetProcess(), routing_id), | 165 : RenderWidgetHostImpl(widget_delegate, instance->GetProcess(), routing_id), |
| 166 delegate_(delegate), | 166 delegate_(delegate), |
| 167 instance_(static_cast<SiteInstanceImpl*>(instance)), | 167 instance_(static_cast<SiteInstanceImpl*>(instance)), |
| 168 waiting_for_drag_context_response_(false), | 168 waiting_for_drag_context_response_(false), |
| 169 enabled_bindings_(0), | 169 enabled_bindings_(0), |
| 170 pending_request_id_(-1), | 170 pending_request_id_(-1), |
| 171 navigations_suspended_(false), | 171 navigations_suspended_(false), |
| 172 suspended_nav_params_(NULL), | |
| 173 has_accessed_initial_document_(false), | 172 has_accessed_initial_document_(false), |
| 174 is_swapped_out_(swapped_out), | 173 is_swapped_out_(swapped_out), |
| 175 is_subframe_(false), | 174 is_subframe_(false), |
| 176 main_frame_id_(-1), | 175 main_frame_id_(-1), |
| 177 run_modal_reply_msg_(NULL), | 176 run_modal_reply_msg_(NULL), |
| 178 run_modal_opener_id_(MSG_ROUTING_NONE), | 177 run_modal_opener_id_(MSG_ROUTING_NONE), |
| 179 is_waiting_for_beforeunload_ack_(false), | 178 is_waiting_for_beforeunload_ack_(false), |
| 180 is_waiting_for_unload_ack_(false), | 179 is_waiting_for_unload_ack_(false), |
| 181 has_timed_out_on_unload_(false), | 180 has_timed_out_on_unload_(false), |
| 182 unload_ack_is_for_cross_site_transition_(false), | 181 unload_ack_is_for_cross_site_transition_(false), |
| (...skipping 1918 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2101 const std::vector<base::FilePath>& file_paths = state.GetReferencedFiles(); | 2100 const std::vector<base::FilePath>& file_paths = state.GetReferencedFiles(); |
| 2102 for (std::vector<base::FilePath>::const_iterator file = file_paths.begin(); | 2101 for (std::vector<base::FilePath>::const_iterator file = file_paths.begin(); |
| 2103 file != file_paths.end(); ++file) { | 2102 file != file_paths.end(); ++file) { |
| 2104 if (!policy->CanReadFile(GetProcess()->GetID(), *file)) | 2103 if (!policy->CanReadFile(GetProcess()->GetID(), *file)) |
| 2105 return false; | 2104 return false; |
| 2106 } | 2105 } |
| 2107 return true; | 2106 return true; |
| 2108 } | 2107 } |
| 2109 | 2108 |
| 2110 } // namespace content | 2109 } // namespace content |
| OLD | NEW |