OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CONTENT_CHILD_REQUEST_INFO_H_ | 5 #ifndef CONTENT_CHILD_REQUEST_INFO_H_ |
6 #define CONTENT_CHILD_REQUEST_INFO_H_ | 6 #define CONTENT_CHILD_REQUEST_INFO_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 | 51 |
52 // Optional parameter, the referrer to use for the request for the url member. | 52 // Optional parameter, the referrer to use for the request for the url member. |
53 Referrer referrer; | 53 Referrer referrer; |
54 | 54 |
55 // For HTTP(S) requests, the headers parameter can be a \r\n-delimited and | 55 // For HTTP(S) requests, the headers parameter can be a \r\n-delimited and |
56 // \r\n-terminated list of MIME headers. They should be ASCII-encoded using | 56 // \r\n-terminated list of MIME headers. They should be ASCII-encoded using |
57 // the standard MIME header encoding rules. The headers parameter can also | 57 // the standard MIME header encoding rules. The headers parameter can also |
58 // be null if no extra request headers need to be set. | 58 // be null if no extra request headers need to be set. |
59 std::string headers; | 59 std::string headers; |
60 | 60 |
| 61 // The User-Agent string specified by the renderer to send in case |headers| |
| 62 // results to get no entry named "User-Agent". |
| 63 std::string default_user_agent; |
| 64 |
61 // Composed of the values defined in url_request_load_flags.h. | 65 // Composed of the values defined in url_request_load_flags.h. |
62 int load_flags; | 66 int load_flags; |
63 | 67 |
64 // Process id of the process making the request. | 68 // Process id of the process making the request. |
65 int requestor_pid; | 69 int requestor_pid; |
66 | 70 |
67 // Indicates if the current request is the main frame load, a sub-frame | 71 // Indicates if the current request is the main frame load, a sub-frame |
68 // load, or a sub objects load. | 72 // load, or a sub objects load. |
69 ResourceType request_type; | 73 ResourceType request_type; |
70 RequestContextType fetch_request_context_type; | 74 RequestContextType fetch_request_context_type; |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 // decide. | 137 // decide. |
134 LoFiState lofi_state; | 138 LoFiState lofi_state; |
135 | 139 |
136 private: | 140 private: |
137 DISALLOW_COPY_AND_ASSIGN(RequestInfo); | 141 DISALLOW_COPY_AND_ASSIGN(RequestInfo); |
138 }; | 142 }; |
139 | 143 |
140 } // namespace content | 144 } // namespace content |
141 | 145 |
142 #endif // CONTENT_CHILD_REQUEST_INFO_H_ | 146 #endif // CONTENT_CHILD_REQUEST_INFO_H_ |
OLD | NEW |