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

Side by Side Diff: net/http/http_stream_factory_impl_job.h

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 #ifndef NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ 5 #ifndef NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_
6 #define NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ 6 #define NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 void WaitFor(Job* job); 67 void WaitFor(Job* job);
68 68
69 // Tells |this| that |job| has determined it still needs to continue 69 // Tells |this| that |job| has determined it still needs to continue
70 // connecting, so allow |this| to continue. If this is not called, then 70 // connecting, so allow |this| to continue. If this is not called, then
71 // |request_| is expected to cancel |this| by deleting it. 71 // |request_| is expected to cancel |this| by deleting it.
72 void Resume(Job* job); 72 void Resume(Job* job);
73 73
74 // Used to detach the Job from |request|. 74 // Used to detach the Job from |request|.
75 void Orphan(const Request* request); 75 void Orphan(const Request* request);
76 76
77 void SetPriority(RequestPriority priority);
78
79 RequestPriority priority() const { return priority_; }
77 bool was_npn_negotiated() const; 80 bool was_npn_negotiated() const;
78 NextProto protocol_negotiated() const; 81 NextProto protocol_negotiated() const;
79 bool using_spdy() const; 82 bool using_spdy() const;
80 const BoundNetLog& net_log() const { return net_log_; } 83 const BoundNetLog& net_log() const { return net_log_; }
81 84
82 const SSLConfig& server_ssl_config() const; 85 const SSLConfig& server_ssl_config() const;
83 const SSLConfig& proxy_ssl_config() const; 86 const SSLConfig& proxy_ssl_config() const;
84 const ProxyInfo& proxy_info() const; 87 const ProxyInfo& proxy_info() const;
85 88
86 // Indicates whether or not this job is performing a preconnect. 89 // Indicates whether or not this job is performing a preconnect.
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 bool existing_available_pipeline_; 325 bool existing_available_pipeline_;
323 326
324 base::WeakPtrFactory<Job> ptr_factory_; 327 base::WeakPtrFactory<Job> ptr_factory_;
325 328
326 DISALLOW_COPY_AND_ASSIGN(Job); 329 DISALLOW_COPY_AND_ASSIGN(Job);
327 }; 330 };
328 331
329 } // namespace net 332 } // namespace net
330 333
331 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ 334 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698