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

Side by Side Diff: net/http/http_network_transaction.cc

Issue 19866006: [Net] Propagate priority changes from HttpNetworkTransaction to its request (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
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 #include "net/http/http_network_transaction.h" 5 #include "net/http/http_network_transaction.h"
6 6
7 #include <set> 7 #include <set>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 load_timing_info->proxy_resolve_start = 412 load_timing_info->proxy_resolve_start =
413 proxy_info_.proxy_resolve_start_time(); 413 proxy_info_.proxy_resolve_start_time();
414 load_timing_info->proxy_resolve_end = proxy_info_.proxy_resolve_end_time(); 414 load_timing_info->proxy_resolve_end = proxy_info_.proxy_resolve_end_time();
415 load_timing_info->send_start = send_start_time_; 415 load_timing_info->send_start = send_start_time_;
416 load_timing_info->send_end = send_end_time_; 416 load_timing_info->send_end = send_end_time_;
417 return true; 417 return true;
418 } 418 }
419 419
420 void HttpNetworkTransaction::SetPriority(RequestPriority priority) { 420 void HttpNetworkTransaction::SetPriority(RequestPriority priority) {
421 priority_ = priority; 421 priority_ = priority;
422 // TODO(akalin): Plumb this through to |stream_request_| and 422 if (stream_request_)
423 // |stream_|. 423 stream_request_->SetPriority(priority);
424 // TODO(akalin): Plumb this through to |stream_| also.
424 } 425 }
425 426
426 void HttpNetworkTransaction::OnStreamReady(const SSLConfig& used_ssl_config, 427 void HttpNetworkTransaction::OnStreamReady(const SSLConfig& used_ssl_config,
427 const ProxyInfo& used_proxy_info, 428 const ProxyInfo& used_proxy_info,
428 HttpStreamBase* stream) { 429 HttpStreamBase* stream) {
429 DCHECK_EQ(STATE_CREATE_STREAM_COMPLETE, next_state_); 430 DCHECK_EQ(STATE_CREATE_STREAM_COMPLETE, next_state_);
430 DCHECK(stream_request_.get()); 431 DCHECK(stream_request_.get());
431 432
432 stream_.reset(stream); 433 stream_.reset(stream);
433 server_ssl_config_ = used_ssl_config; 434 server_ssl_config_ = used_ssl_config;
(...skipping 1027 matching lines...) Expand 10 before | Expand all | Expand 10 after
1461 description = base::StringPrintf("Unknown state 0x%08X (%u)", state, 1462 description = base::StringPrintf("Unknown state 0x%08X (%u)", state,
1462 state); 1463 state);
1463 break; 1464 break;
1464 } 1465 }
1465 return description; 1466 return description;
1466 } 1467 }
1467 1468
1468 #undef STATE_CASE 1469 #undef STATE_CASE
1469 1470
1470 } // namespace net 1471 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698