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

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

Issue 12701011: [Net] Propagate priority changes from URLRequest to HttpTransaction (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 9 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
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 <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
(...skipping 904 matching lines...) Expand 10 before | Expand all | Expand 10 after
915 referrer.policy); 915 referrer.policy);
916 net::HttpRequestHeaders headers; 916 net::HttpRequestHeaders headers;
917 headers.AddHeadersFromString(request_data.headers); 917 headers.AddHeadersFromString(request_data.headers);
918 request->SetExtraRequestHeaders(headers); 918 request->SetExtraRequestHeaders(headers);
919 } 919 }
920 920
921 // TODO(darin): Do we really need all of these URLRequest setters in the 921 // TODO(darin): Do we really need all of these URLRequest setters in the
922 // transferred navigation case? 922 // transferred navigation case?
923 923
924 request->set_load_flags(load_flags); 924 request->set_load_flags(load_flags);
925 request->set_priority(request_data.priority); 925 request->SetPriority(request_data.priority);
926 926
927 // Resolve elements from request_body and prepare upload data. 927 // Resolve elements from request_body and prepare upload data.
928 if (request_data.request_body) { 928 if (request_data.request_body) {
929 request->set_upload(make_scoped_ptr( 929 request->set_upload(make_scoped_ptr(
930 request_data.request_body->ResolveElementsAndCreateUploadDataStream( 930 request_data.request_body->ResolveElementsAndCreateUploadDataStream(
931 filter_->blob_storage_context()->controller(), 931 filter_->blob_storage_context()->controller(),
932 filter_->file_system_context(), 932 filter_->file_system_context(),
933 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE)))); 933 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE))));
934 } 934 }
935 935
(...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after
1697 DelegateMap::iterator it = delegate_map_.find(id); 1697 DelegateMap::iterator it = delegate_map_.find(id);
1698 DCHECK(it->second->HasObserver(delegate)); 1698 DCHECK(it->second->HasObserver(delegate));
1699 it->second->RemoveObserver(delegate); 1699 it->second->RemoveObserver(delegate);
1700 if (it->second->size() == 0) { 1700 if (it->second->size() == 0) {
1701 delete it->second; 1701 delete it->second;
1702 delegate_map_.erase(it); 1702 delegate_map_.erase(it);
1703 } 1703 }
1704 } 1704 }
1705 1705
1706 } // namespace content 1706 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698