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

Side by Side Diff: ppapi/c/dev/ppb_url_response_info_dev.h

Issue 4747001: Move URLLoader, URLRequestInfo, and URLResponseInfo out of the dev directory... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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/dev/ppb_url_request_info_dev.h ('k') | ppapi/c/ppb_url_loader.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef PPAPI_C_DEV_PPB_URL_RESPONSE_INFO_DEV_H_
6 #define PPAPI_C_DEV_PPB_URL_RESPONSE_INFO_DEV_H_
7
8 #include "ppapi/c/pp_bool.h"
9 #include "ppapi/c/pp_resource.h"
10 #include "ppapi/c/pp_var.h"
11
12 typedef enum {
13 PP_URLRESPONSEPROPERTY_URL, // string
14 PP_URLRESPONSEPROPERTY_REDIRECTURL, // string
15 PP_URLRESPONSEPROPERTY_REDIRECTMETHOD, // string
16 PP_URLRESPONSEPROPERTY_STATUSCODE, // int32
17 PP_URLRESPONSEPROPERTY_STATUSLINE, // string
18 PP_URLRESPONSEPROPERTY_HEADERS // string, \n-delim
19 } PP_URLResponseProperty_Dev;
20
21 #define PPB_URLRESPONSEINFO_DEV_INTERFACE "PPB_URLResponseInfo(Dev);0.2"
22
23 struct PPB_URLResponseInfo_Dev {
24 // Returns PP_TRUE if the given resource is an URLResponseInfo. Returns
25 // PP_FALSE if the resource is invalid or some type other than an
26 // URLResponseInfo.
27 PP_Bool (*IsURLResponseInfo)(PP_Resource resource);
28
29 // Gets a response property. Return PP_VarType_Void if an input parameter is
30 // invalid.
31 struct PP_Var (*GetProperty)(PP_Resource response,
32 PP_URLResponseProperty_Dev property);
33
34 // Returns a FileRef pointing to the file containing the response body. This
35 // is only valid if PP_URLREQUESTPROPERTY_STREAMTOFILE was set on the
36 // URLRequestInfo used to produce this response. This file remains valid
37 // until the URLLoader associated with this URLResponseInfo is closed or
38 // destroyed. Returns 0 if PP_URLREQUESTPROPERTY_STREAMTOFILE was not
39 // requested or if the URLLoader has not been opened yet.
40 PP_Resource (*GetBody)(PP_Resource response);
41 };
42
43 #endif // PPAPI_C_DEV_PPB_URL_RESPONSE_INFO_DEV_H_
OLDNEW
« no previous file with comments | « ppapi/c/dev/ppb_url_request_info_dev.h ('k') | ppapi/c/ppb_url_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698