OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_COMMON_RESOURCE_REQUEST_H_ | 5 #ifndef CONTENT_COMMON_RESOURCE_REQUEST_H_ |
6 #define CONTENT_COMMON_RESOURCE_REQUEST_H_ | 6 #define CONTENT_COMMON_RESOURCE_REQUEST_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 // The referrer policy to use. | 54 // The referrer policy to use. |
55 blink::WebReferrerPolicy referrer_policy = blink::WebReferrerPolicyAlways; | 55 blink::WebReferrerPolicy referrer_policy = blink::WebReferrerPolicyAlways; |
56 | 56 |
57 // The frame's visiblity state. | 57 // The frame's visiblity state. |
58 blink::WebPageVisibilityState visiblity_state = | 58 blink::WebPageVisibilityState visiblity_state = |
59 blink::WebPageVisibilityStateVisible; | 59 blink::WebPageVisibilityStateVisible; |
60 | 60 |
61 // Additional HTTP request headers. | 61 // Additional HTTP request headers. |
62 std::string headers; | 62 std::string headers; |
63 | 63 |
| 64 // The User-Agent string specified by the renderer to send in case |headers| |
| 65 // results to get no entry named "User-Agent". |
| 66 std::string default_user_agent; |
| 67 |
64 // net::URLRequest load flags (0 by default). | 68 // net::URLRequest load flags (0 by default). |
65 int load_flags = 0; | 69 int load_flags = 0; |
66 | 70 |
67 // Process ID from which this request originated, or zero if it originated | 71 // Process ID from which this request originated, or zero if it originated |
68 // in the renderer itself. | 72 // in the renderer itself. |
69 int origin_pid = 0; | 73 int origin_pid = 0; |
70 | 74 |
71 // What this resource load is for (main frame, sub-frame, sub-resource, | 75 // What this resource load is for (main frame, sub-frame, sub-resource, |
72 // object). | 76 // object). |
73 ResourceType resource_type = RESOURCE_TYPE_MAIN_FRAME; | 77 ResourceType resource_type = RESOURCE_TYPE_MAIN_FRAME; |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 // browser. | 175 // browser. |
172 GURL resource_body_stream_url; | 176 GURL resource_body_stream_url; |
173 | 177 |
174 // Wether or not the initiator of this request is a secure context. | 178 // Wether or not the initiator of this request is a secure context. |
175 bool initiated_in_secure_context = false; | 179 bool initiated_in_secure_context = false; |
176 }; | 180 }; |
177 | 181 |
178 } // namespace content | 182 } // namespace content |
179 | 183 |
180 #endif // CONTENT_COMMON_RESOURCE_REQUEST_H_ | 184 #endif // CONTENT_COMMON_RESOURCE_REQUEST_H_ |
OLD | NEW |