Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(460)

Side by Side Diff: content/browser/loader/resource_dispatcher_host_impl.cc

Issue 1529363006: Introducing SavePackageId and SaveItemId as distinct IdType<...>-based types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed CR feedback from Daniel. Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/browser/loader/resource_dispatcher_host_impl.h ('k') | content/common/id_type.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « content/browser/loader/resource_dispatcher_host_impl.h ('k') | content/common/id_type.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698