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

Side by Side Diff: ppapi/shared_impl/ppb_url_request_info_shared.h

Issue 10762017: PPAPI: Add an API for setting a custom user agent for URL requests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: foo Created 8 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/ppapi_messages.h ('k') | ppapi/shared_impl/ppb_url_request_info_shared.cc » ('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) 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
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;
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
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_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppapi_messages.h ('k') | ppapi/shared_impl/ppb_url_request_info_shared.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698