| 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" |
| 11 | 11 |
| 12 /// @file | 12 /// @file |
| 13 /// This file defines the API for examining URL responses. | 13 /// This file defines the API for examining URL responses. |
| 14 namespace pp { | 14 namespace pp { |
| 15 | 15 |
| 16 class FileRef; | 16 class FileRef; |
| 17 | 17 |
| 18 /// URLResponseInfo provides an API for examaning URL responses. | 18 /// URLResponseInfo provides an API for examining URL responses. |
| 19 class URLResponseInfo : public Resource { | 19 class URLResponseInfo : public Resource { |
| 20 public: | 20 public: |
| 21 /// Default constructor. This constructor creates an <code>is_null</code> | 21 /// Default constructor. This constructor creates an <code>is_null</code> |
| 22 /// resource. | 22 /// resource. |
| 23 URLResponseInfo() {} | 23 URLResponseInfo() {} |
| 24 | 24 |
| 25 /// A constructor used when you have received a <code>PP_Resource</code> as a | 25 /// A constructor used when you have received a <code>PP_Resource</code> as a |
| 26 /// return value that has already been reference counted. | 26 /// return value that has already been reference counted. |
| 27 /// | 27 /// |
| 28 /// @param[in] resource A <code>PP_Resource</code> corresponding to a | 28 /// @param[in] resource A <code>PP_Resource</code> corresponding to a |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 /// value if successful, <code>is_undefined Var</code> if an input parameter | 111 /// value if successful, <code>is_undefined Var</code> if an input parameter |
| 112 /// is invalid. | 112 /// is invalid. |
| 113 Var GetHeaders() const { | 113 Var GetHeaders() const { |
| 114 return GetProperty(PP_URLRESPONSEPROPERTY_HEADERS); | 114 return GetProperty(PP_URLRESPONSEPROPERTY_HEADERS); |
| 115 } | 115 } |
| 116 }; | 116 }; |
| 117 | 117 |
| 118 } // namespace pp | 118 } // namespace pp |
| 119 | 119 |
| 120 #endif // PPAPI_CPP_URL_RESPONSE_INFO_H_ | 120 #endif // PPAPI_CPP_URL_RESPONSE_INFO_H_ |
| OLD | NEW |