| 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 <algorithm> | 9 #include <algorithm> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 1676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1687 // The ResourceDispatcherHost may have already been shut down. | 1687 // The ResourceDispatcherHost may have already been shut down. |
| 1688 // See http://crbug.com/455098 | 1688 // See http://crbug.com/455098 |
| 1689 if (!scheduler_) | 1689 if (!scheduler_) |
| 1690 return; | 1690 return; |
| 1691 scheduler_->OnAudibilityChanged(child_id, route_id, is_playing); | 1691 scheduler_->OnAudibilityChanged(child_id, route_id, is_playing); |
| 1692 } | 1692 } |
| 1693 | 1693 |
| 1694 // This function is only used for saving feature. | 1694 // This function is only used for saving feature. |
| 1695 void ResourceDispatcherHostImpl::BeginSaveFile(const GURL& url, | 1695 void ResourceDispatcherHostImpl::BeginSaveFile(const GURL& url, |
| 1696 const Referrer& referrer, | 1696 const Referrer& referrer, |
| 1697 int save_package_id, | 1697 SavePackageId save_package_id, |
| 1698 int child_id, | 1698 int child_id, |
| 1699 int render_view_route_id, | 1699 int render_view_route_id, |
| 1700 int render_frame_route_id, | 1700 int render_frame_route_id, |
| 1701 ResourceContext* context) { | 1701 ResourceContext* context) { |
| 1702 if (is_shutdown_) | 1702 if (is_shutdown_) |
| 1703 return; | 1703 return; |
| 1704 | 1704 |
| 1705 // http://crbug.com/90971 | 1705 // http://crbug.com/90971 |
| 1706 char url_buf[128]; | 1706 char url_buf[128]; |
| 1707 base::strlcpy(url_buf, url.spec().c_str(), arraysize(url_buf)); | 1707 base::strlcpy(url_buf, url.spec().c_str(), arraysize(url_buf)); |
| (...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2440 load_flags |= net::LOAD_PREFETCH; | 2440 load_flags |= net::LOAD_PREFETCH; |
| 2441 } | 2441 } |
| 2442 | 2442 |
| 2443 if (is_sync_load) | 2443 if (is_sync_load) |
| 2444 load_flags |= net::LOAD_IGNORE_LIMITS; | 2444 load_flags |= net::LOAD_IGNORE_LIMITS; |
| 2445 | 2445 |
| 2446 return load_flags; | 2446 return load_flags; |
| 2447 } | 2447 } |
| 2448 | 2448 |
| 2449 } // namespace content | 2449 } // namespace content |
| OLD | NEW |