OLD | NEW |
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_REQUEST_INFO_H__ | 5 #ifndef NET_HTTP_HTTP_REQUEST_INFO_H__ |
6 #define NET_HTTP_HTTP_REQUEST_INFO_H__ | 6 #define NET_HTTP_HTTP_REQUEST_INFO_H__ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 // Any extra request headers (including User-Agent). | 40 // Any extra request headers (including User-Agent). |
41 HttpRequestHeaders extra_headers; | 41 HttpRequestHeaders extra_headers; |
42 | 42 |
43 // Any upload data. | 43 // Any upload data. |
44 UploadDataStream* upload_data_stream; | 44 UploadDataStream* upload_data_stream; |
45 | 45 |
46 // Any load flags (see load_flags.h). | 46 // Any load flags (see load_flags.h). |
47 int load_flags; | 47 int load_flags; |
48 | 48 |
49 // The priority level for this request. | 49 // The priority level for this request. |
| 50 // TODO(akalin): Remove this from this struct, since |priority| can |
| 51 // change during the lifetime of a request. |
50 RequestPriority priority; | 52 RequestPriority priority; |
51 | 53 |
52 // The motivation behind this request. | 54 // The motivation behind this request. |
53 RequestMotivation motivation; | 55 RequestMotivation motivation; |
54 | 56 |
55 // An optional globally unique identifier for this request for use by the | 57 // An optional globally unique identifier for this request for use by the |
56 // consumer. 0 is invalid. | 58 // consumer. 0 is invalid. |
57 uint64 request_id; | 59 uint64 request_id; |
58 }; | 60 }; |
59 | 61 |
60 } // namespace net | 62 } // namespace net |
61 | 63 |
62 #endif // NET_HTTP_HTTP_REQUEST_INFO_H__ | 64 #endif // NET_HTTP_HTTP_REQUEST_INFO_H__ |
OLD | NEW |