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

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

Issue 12701011: [Net] Propagate priority changes from URLRequest to HttpTransaction (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix leaks 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
« no previous file with comments | « net/http/http_stream_factory_impl_job.cc ('k') | net/http/http_transaction_unittest.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_TRANSACTION_H_ 5 #ifndef NET_HTTP_HTTP_TRANSACTION_H_
6 #define NET_HTTP_HTTP_TRANSACTION_H_ 6 #define NET_HTTP_HTTP_TRANSACTION_H_
7 7
8 #include "net/base/completion_callback.h" 8 #include "net/base/completion_callback.h"
9 #include "net/base/load_states.h" 9 #include "net/base/load_states.h"
10 #include "net/base/net_export.h" 10 #include "net/base/net_export.h"
11 #include "net/base/request_priority.h"
11 #include "net/base/upload_progress.h" 12 #include "net/base/upload_progress.h"
12 13
13 namespace net { 14 namespace net {
14 15
15 class AuthCredentials; 16 class AuthCredentials;
16 class BoundNetLog; 17 class BoundNetLog;
17 struct HttpRequestInfo; 18 struct HttpRequestInfo;
18 class HttpResponseInfo; 19 class HttpResponseInfo;
19 class IOBuffer; 20 class IOBuffer;
20 struct LoadTimingInfo; 21 struct LoadTimingInfo;
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 virtual LoadState GetLoadState() const = 0; 110 virtual LoadState GetLoadState() const = 0;
110 111
111 // Returns the upload progress in bytes. If there is no upload data, 112 // Returns the upload progress in bytes. If there is no upload data,
112 // zero will be returned. This does not include the request headers. 113 // zero will be returned. This does not include the request headers.
113 virtual UploadProgress GetUploadProgress() const = 0; 114 virtual UploadProgress GetUploadProgress() const = 0;
114 115
115 // Populates all of load timing, except for request start times. 116 // Populates all of load timing, except for request start times.
116 // |load_timing_info| must have all null times when called. Returns false and 117 // |load_timing_info| must have all null times when called. Returns false and
117 // does not modify |load_timing_info| if not currently connected. 118 // does not modify |load_timing_info| if not currently connected.
118 virtual bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const = 0; 119 virtual bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const = 0;
120
121 // Called when the priority of the parent job changes.
122 virtual void SetPriority(RequestPriority priority) = 0;
119 }; 123 };
120 124
121 } // namespace net 125 } // namespace net
122 126
123 #endif // NET_HTTP_HTTP_TRANSACTION_H_ 127 #endif // NET_HTTP_HTTP_TRANSACTION_H_
OLDNEW
« no previous file with comments | « net/http/http_stream_factory_impl_job.cc ('k') | net/http/http_transaction_unittest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698