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 <stddef.h> | 9 #include <stddef.h> |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 1761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1772 // The ResourceDispatcherHost may have already been shut down. | 1772 // The ResourceDispatcherHost may have already been shut down. |
1773 // See http://crbug.com/455098 | 1773 // See http://crbug.com/455098 |
1774 if (!scheduler_) | 1774 if (!scheduler_) |
1775 return; | 1775 return; |
1776 scheduler_->OnAudibilityChanged(child_id, route_id, is_playing); | 1776 scheduler_->OnAudibilityChanged(child_id, route_id, is_playing); |
1777 } | 1777 } |
1778 | 1778 |
1779 // This function is only used for saving feature. | 1779 // This function is only used for saving feature. |
1780 void ResourceDispatcherHostImpl::BeginSaveFile(const GURL& url, | 1780 void ResourceDispatcherHostImpl::BeginSaveFile(const GURL& url, |
1781 const Referrer& referrer, | 1781 const Referrer& referrer, |
1782 int save_item_id, | 1782 SaveItemId save_item_id, |
1783 int save_package_id, | 1783 SavePackageId save_package_id, |
1784 int child_id, | 1784 int child_id, |
1785 int render_view_route_id, | 1785 int render_view_route_id, |
1786 int render_frame_route_id, | 1786 int render_frame_route_id, |
1787 ResourceContext* context) { | 1787 ResourceContext* context) { |
1788 if (is_shutdown_) | 1788 if (is_shutdown_) |
1789 return; | 1789 return; |
1790 | 1790 |
1791 // http://crbug.com/90971 | 1791 // http://crbug.com/90971 |
1792 char url_buf[128]; | 1792 char url_buf[128]; |
1793 base::strlcpy(url_buf, url.spec().c_str(), arraysize(url_buf)); | 1793 base::strlcpy(url_buf, url.spec().c_str(), arraysize(url_buf)); |
(...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2536 load_flags |= net::LOAD_PREFETCH; | 2536 load_flags |= net::LOAD_PREFETCH; |
2537 } | 2537 } |
2538 | 2538 |
2539 if (is_sync_load) | 2539 if (is_sync_load) |
2540 load_flags |= net::LOAD_IGNORE_LIMITS; | 2540 load_flags |= net::LOAD_IGNORE_LIMITS; |
2541 | 2541 |
2542 return load_flags; | 2542 return load_flags; |
2543 } | 2543 } |
2544 | 2544 |
2545 } // namespace content | 2545 } // namespace content |
OLD | NEW |