OLD | NEW |
---|---|
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 PPAPI_SHARED_IMPL_PPB_URL_REQUEST_INFO_SHARED_H_ | 5 #ifndef PPAPI_SHARED_IMPL_PPB_URL_REQUEST_INFO_SHARED_H_ |
6 #define PPAPI_SHARED_IMPL_PPB_URL_REQUEST_INFO_SHARED_H_ | 6 #define PPAPI_SHARED_IMPL_PPB_URL_REQUEST_INFO_SHARED_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
66 // set (or has been set to an Undefined Var) and the default referrer should | 66 // set (or has been set to an Undefined Var) and the default referrer should |
67 // be used. (Setting the custom referrer to an empty string indicates that no | 67 // be used. (Setting the custom referrer to an empty string indicates that no |
68 // referrer header should be generated.) | 68 // referrer header should be generated.) |
69 bool has_custom_referrer_url; | 69 bool has_custom_referrer_url; |
70 std::string custom_referrer_url; | 70 std::string custom_referrer_url; |
71 | 71 |
72 bool allow_cross_origin_requests; | 72 bool allow_cross_origin_requests; |
73 bool allow_credentials; | 73 bool allow_credentials; |
74 | 74 |
75 // Similar to the custom referrer (above), but for custom content transfer | 75 // Similar to the custom referrer (above), but for custom content transfer |
76 // encoding. | 76 // encoding and custom user agent, respectively. |
77 bool has_custom_content_transfer_encoding; | 77 bool has_custom_content_transfer_encoding; |
78 std::string custom_content_transfer_encoding; | 78 std::string custom_content_transfer_encoding; |
79 bool has_custom_user_agent; | |
brettw
2012/07/10 04:54:45
Are we ever going to allow an empty user agent? Ca
viettrungluu
2012/07/10 13:30:52
Presumably an empty user agent would mean "no user
| |
80 std::string custom_user_agent; | |
79 | 81 |
80 int32_t prefetch_buffer_upper_threshold; | 82 int32_t prefetch_buffer_upper_threshold; |
81 int32_t prefetch_buffer_lower_threshold; | 83 int32_t prefetch_buffer_lower_threshold; |
82 | 84 |
83 std::vector<BodyItem> body; | 85 std::vector<BodyItem> body; |
84 | 86 |
85 // If you add more stuff here, be sure to modify the serialization rules in | 87 // If you add more stuff here, be sure to modify the serialization rules in |
86 // ppapi_messages.h | 88 // ppapi_messages.h |
87 }; | 89 }; |
88 | 90 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
125 | 127 |
126 private: | 128 private: |
127 PPB_URLRequestInfo_Data data_; | 129 PPB_URLRequestInfo_Data data_; |
128 | 130 |
129 DISALLOW_IMPLICIT_CONSTRUCTORS(PPB_URLRequestInfo_Shared); | 131 DISALLOW_IMPLICIT_CONSTRUCTORS(PPB_URLRequestInfo_Shared); |
130 }; | 132 }; |
131 | 133 |
132 } // namespace ppapi | 134 } // namespace ppapi |
133 | 135 |
134 #endif // PPAPI_SHARED_IMPL_PPB_URL_REQUEST_INFO_SHARED_H_ | 136 #endif // PPAPI_SHARED_IMPL_PPB_URL_REQUEST_INFO_SHARED_H_ |
OLD | NEW |