OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_RESPONSE_INFO_H_ | 5 #ifndef PPAPI_CPP_URL_RESPONSE_INFO_H_ |
6 #define PPAPI_CPP_URL_RESPONSE_INFO_H_ | 6 #define PPAPI_CPP_URL_RESPONSE_INFO_H_ |
7 | 7 |
8 #include "ppapi/c/ppb_url_response_info.h" | 8 #include "ppapi/c/ppb_url_response_info.h" |
9 #include "ppapi/cpp/resource.h" | 9 #include "ppapi/cpp/resource.h" |
10 #include "ppapi/cpp/var.h" | 10 #include "ppapi/cpp/var.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 /// resource. | 22 /// resource. |
23 URLResponseInfo() {} | 23 URLResponseInfo() {} |
24 | 24 |
25 /// A special structure used by the constructor that does not increment the | 25 /// A special structure used by the constructor that does not increment the |
26 /// reference count of the underlying resource. | 26 /// reference count of the underlying resource. |
27 struct PassRef {}; | 27 struct PassRef {}; |
28 | 28 |
29 /// A constructor used when you have received a <code>PP_Resource</code> as a | 29 /// A constructor used when you have received a <code>PP_Resource</code> as a |
30 /// return value that has already been reference counted. | 30 /// return value that has already been reference counted. |
31 /// | 31 /// |
32 /// @param[in] resource A <code>PP_Resource</code>. | 32 /// @param[in] resource A <code>PP_Resource</code> corresponding to a |
| 33 /// resource. |
33 URLResponseInfo(PassRef, PP_Resource resource); | 34 URLResponseInfo(PassRef, PP_Resource resource); |
34 | 35 |
35 /// The copy constructor for <code>URLResponseInfo</code>. | 36 /// The copy constructor for <code>URLResponseInfo</code>. |
36 URLResponseInfo(const URLResponseInfo& other); | 37 URLResponseInfo(const URLResponseInfo& other); |
37 | 38 |
38 /// This function gets a response property. | 39 /// This function gets a response property. |
39 /// | 40 /// |
40 /// @param[in] property A <code>PP_URLResponseProperty</code> identifying the | 41 /// @param[in] property A <code>PP_URLResponseProperty</code> identifying the |
41 /// type of property in the response. | 42 /// type of property in the response. |
42 /// | 43 /// |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 /// value if successful, <code>is_undefined Var</code> if an input parameter | 115 /// value if successful, <code>is_undefined Var</code> if an input parameter |
115 /// is invalid. | 116 /// is invalid. |
116 Var GetHeaders() const { | 117 Var GetHeaders() const { |
117 return GetProperty(PP_URLRESPONSEPROPERTY_HEADERS); | 118 return GetProperty(PP_URLRESPONSEPROPERTY_HEADERS); |
118 } | 119 } |
119 }; | 120 }; |
120 | 121 |
121 } // namespace pp | 122 } // namespace pp |
122 | 123 |
123 #endif // PPAPI_CPP_URL_RESPONSE_INFO_H_ | 124 #endif // PPAPI_CPP_URL_RESPONSE_INFO_H_ |
OLD | NEW |