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

Side by Side Diff: ppapi/c/ppb_url_response_info.h

Issue 6297018: Removed Doxygen groupings by ppb_, pp_, and ppp_. Added grouping by construct... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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/c/ppb_url_request_info.h ('k') | ppapi/c/ppb_var.h » ('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) 2010 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2010 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_C_PPB_URL_RESPONSE_INFO_H_ 5 #ifndef PPAPI_C_PPB_URL_RESPONSE_INFO_H_
6 #define PPAPI_C_PPB_URL_RESPONSE_INFO_H_ 6 #define PPAPI_C_PPB_URL_RESPONSE_INFO_H_
7 7
8 #include "ppapi/c/pp_bool.h" 8 #include "ppapi/c/pp_bool.h"
9 #include "ppapi/c/pp_macros.h" 9 #include "ppapi/c/pp_macros.h"
10 #include "ppapi/c/pp_resource.h" 10 #include "ppapi/c/pp_resource.h"
11 #include "ppapi/c/pp_var.h" 11 #include "ppapi/c/pp_var.h"
12 12
13 /**
14 *
15 * @addtogroup Enums
16 * @{
17 */
13 typedef enum { 18 typedef enum {
14 PP_URLRESPONSEPROPERTY_URL, // string 19 PP_URLRESPONSEPROPERTY_URL, // string
15 PP_URLRESPONSEPROPERTY_REDIRECTURL, // string 20 PP_URLRESPONSEPROPERTY_REDIRECTURL, // string
16 PP_URLRESPONSEPROPERTY_REDIRECTMETHOD, // string 21 PP_URLRESPONSEPROPERTY_REDIRECTMETHOD, // string
17 PP_URLRESPONSEPROPERTY_STATUSCODE, // int32 22 PP_URLRESPONSEPROPERTY_STATUSCODE, // int32
18 PP_URLRESPONSEPROPERTY_STATUSLINE, // string 23 PP_URLRESPONSEPROPERTY_STATUSLINE, // string
19 PP_URLRESPONSEPROPERTY_HEADERS // string, \n-delim 24 PP_URLRESPONSEPROPERTY_HEADERS // string, \n-delim
20 } PP_URLResponseProperty; 25 } PP_URLResponseProperty;
21 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_URLResponseProperty, 4); 26 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_URLResponseProperty, 4);
27 /**
28 * @}
29 */
22 30
23 #define PPB_URLRESPONSEINFO_INTERFACE "PPB_URLResponseInfo;0.1" 31 #define PPB_URLRESPONSEINFO_INTERFACE "PPB_URLResponseInfo;0.1"
24 32
33 /**
34 * @file
35 * Defines the API ...
36 */
37
38 /**
39 *
40 * @addtogroup Interfaces
41 * @{
42 */
25 struct PPB_URLResponseInfo { 43 struct PPB_URLResponseInfo {
26 // Returns PP_TRUE if the given resource is an URLResponseInfo. Returns 44 // Returns PP_TRUE if the given resource is an URLResponseInfo. Returns
27 // PP_FALSE if the resource is invalid or some type other than an 45 // PP_FALSE if the resource is invalid or some type other than an
28 // URLResponseInfo. 46 // URLResponseInfo.
29 PP_Bool (*IsURLResponseInfo)(PP_Resource resource); 47 PP_Bool (*IsURLResponseInfo)(PP_Resource resource);
30 48
31 // Gets a response property. Return PP_VarType_Void if an input parameter is 49 // Gets a response property. Return PP_VarType_Void if an input parameter is
32 // invalid. 50 // invalid.
33 struct PP_Var (*GetProperty)(PP_Resource response, 51 struct PP_Var (*GetProperty)(PP_Resource response,
34 PP_URLResponseProperty property); 52 PP_URLResponseProperty property);
35 53
36 // Returns a FileRef pointing to the file containing the response body. This 54 // Returns a FileRef pointing to the file containing the response body. This
37 // is only valid if PP_URLREQUESTPROPERTY_STREAMTOFILE was set on the 55 // is only valid if PP_URLREQUESTPROPERTY_STREAMTOFILE was set on the
38 // URLRequestInfo used to produce this response. This file remains valid 56 // URLRequestInfo used to produce this response. This file remains valid
39 // until the URLLoader associated with this URLResponseInfo is closed or 57 // until the URLLoader associated with this URLResponseInfo is closed or
40 // destroyed. Returns 0 if PP_URLREQUESTPROPERTY_STREAMTOFILE was not 58 // destroyed. Returns 0 if PP_URLREQUESTPROPERTY_STREAMTOFILE was not
41 // requested or if the URLLoader has not been opened yet. 59 // requested or if the URLLoader has not been opened yet.
42 PP_Resource (*GetBodyAsFileRef)(PP_Resource response); 60 PP_Resource (*GetBodyAsFileRef)(PP_Resource response);
43 }; 61 };
62 /**
63 * @}
64 */
44 65
45 #endif /* PPAPI_C_PPB_URL_RESPONSE_INFO_H_ */ 66 #endif /* PPAPI_C_PPB_URL_RESPONSE_INFO_H_ */
46 67
OLDNEW
« no previous file with comments | « ppapi/c/ppb_url_request_info.h ('k') | ppapi/c/ppb_var.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698