| 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 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc
e-loading | 5 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc
e-loading |
| 6 | 6 |
| 7 #include "content/browser/loader/resource_dispatcher_host_impl.h" | 7 #include "content/browser/loader/resource_dispatcher_host_impl.h" |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 << iter->path().value(); | 181 << iter->path().value(); |
| 182 return false; | 182 return false; |
| 183 } | 183 } |
| 184 } | 184 } |
| 185 } | 185 } |
| 186 | 186 |
| 187 return true; | 187 return true; |
| 188 } | 188 } |
| 189 | 189 |
| 190 void RemoveDownloadFileFromChildSecurityPolicy(int child_id, | 190 void RemoveDownloadFileFromChildSecurityPolicy(int child_id, |
| 191 const FilePath& path) { | 191 const base::FilePath& path) { |
| 192 ChildProcessSecurityPolicyImpl::GetInstance()->RevokeAllPermissionsForFile( | 192 ChildProcessSecurityPolicyImpl::GetInstance()->RevokeAllPermissionsForFile( |
| 193 child_id, path); | 193 child_id, path); |
| 194 } | 194 } |
| 195 | 195 |
| 196 #if defined(OS_WIN) | 196 #if defined(OS_WIN) |
| 197 #pragma warning(disable: 4748) | 197 #pragma warning(disable: 4748) |
| 198 #pragma optimize("", off) | 198 #pragma optimize("", off) |
| 199 #endif | 199 #endif |
| 200 | 200 |
| 201 #if defined(OS_WIN) | 201 #if defined(OS_WIN) |
| (...skipping 1499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1701 | 1701 |
| 1702 return i->second.get(); | 1702 return i->second.get(); |
| 1703 } | 1703 } |
| 1704 | 1704 |
| 1705 ResourceLoader* ResourceDispatcherHostImpl::GetLoader(int child_id, | 1705 ResourceLoader* ResourceDispatcherHostImpl::GetLoader(int child_id, |
| 1706 int request_id) const { | 1706 int request_id) const { |
| 1707 return GetLoader(GlobalRequestID(child_id, request_id)); | 1707 return GetLoader(GlobalRequestID(child_id, request_id)); |
| 1708 } | 1708 } |
| 1709 | 1709 |
| 1710 } // namespace content | 1710 } // namespace content |
| OLD | NEW |