| 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_CPP_URL_REQUEST_INFO_H_ | 5 #ifndef PPAPI_CPP_URL_REQUEST_INFO_H_ |
| 6 #define PPAPI_CPP_URL_REQUEST_INFO_H_ | 6 #define PPAPI_CPP_URL_REQUEST_INFO_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 8 #include "ppapi/c/ppb_url_request_info.h" | 10 #include "ppapi/c/ppb_url_request_info.h" |
| 9 #include "ppapi/cpp/resource.h" | 11 #include "ppapi/cpp/resource.h" |
| 10 #include "ppapi/cpp/var.h" | 12 #include "ppapi/cpp/var.h" |
| 11 | 13 |
| 12 /// @file | 14 /// @file |
| 13 /// This file defines the API for creating and manipulating URL requests. | 15 /// This file defines the API for creating and manipulating URL requests. |
| 14 namespace pp { | 16 namespace pp { |
| 15 | 17 |
| 16 class FileRef; | 18 class FileRef; |
| 17 class InstanceHandle; | 19 class InstanceHandle; |
| (...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 /// | 327 /// |
| 326 /// @return true if successful, false if the parameter is invalid. | 328 /// @return true if successful, false if the parameter is invalid. |
| 327 bool SetCustomUserAgent(const Var& user_agent) { | 329 bool SetCustomUserAgent(const Var& user_agent) { |
| 328 return SetProperty(PP_URLREQUESTPROPERTY_CUSTOMUSERAGENT, user_agent); | 330 return SetProperty(PP_URLREQUESTPROPERTY_CUSTOMUSERAGENT, user_agent); |
| 329 } | 331 } |
| 330 }; | 332 }; |
| 331 | 333 |
| 332 } // namespace pp | 334 } // namespace pp |
| 333 | 335 |
| 334 #endif // PPAPI_CPP_URL_REQUEST_INFO_H_ | 336 #endif // PPAPI_CPP_URL_REQUEST_INFO_H_ |
| OLD | NEW |