summaryrefslogtreecommitdiffstats
path: root/ppapi
diff options
context:
space:
mode:
authorviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-13 02:43:33 +0000
committerviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-13 02:43:33 +0000
commit03f54587d056d2c0812358fb9897b3c665ce12e0 (patch)
tree863553808fcc6e0a21ee8a744b0d4de66994d807 /ppapi
parent01fe08ad788807e609ef24c0e230f3cb0dff6409 (diff)
downloadchromium_src-03f54587d056d2c0812358fb9897b3c665ce12e0.zip
chromium_src-03f54587d056d2c0812358fb9897b3c665ce12e0.tar.gz
chromium_src-03f54587d056d2c0812358fb9897b3c665ce12e0.tar.bz2
Add values to all (non-dev, non-private) Pepper .idl enumerations.
This reduces the warnings when running the generator and makes the definitions more robust (or at least makes it more obvious when someone changes things). TBR=dmichael@chromium.org Review URL: http://codereview.chromium.org/8538038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109817 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi')
-rw-r--r--ppapi/api/pp_file_info.idl12
-rw-r--r--ppapi/api/pp_var.idl18
-rw-r--r--ppapi/api/ppb_url_request_info.idl26
-rw-r--r--ppapi/api/ppb_url_response_info.idl12
-rw-r--r--ppapi/c/pp_file_info.h14
-rw-r--r--ppapi/c/pp_var.h20
-rw-r--r--ppapi/c/ppb_url_request_info.h28
-rw-r--r--ppapi/c/ppb_url_response_info.h14
8 files changed, 72 insertions, 72 deletions
diff --git a/ppapi/api/pp_file_info.idl b/ppapi/api/pp_file_info.idl
index d974044..dab34abc 100644
--- a/ppapi/api/pp_file_info.idl
+++ b/ppapi/api/pp_file_info.idl
@@ -13,11 +13,11 @@
[assert_size(4)]
enum PP_FileType {
/** A regular file type */
- PP_FILETYPE_REGULAR,
+ PP_FILETYPE_REGULAR = 0,
/** A directory */
- PP_FILETYPE_DIRECTORY,
+ PP_FILETYPE_DIRECTORY = 1,
/** A catch-all for unidentified types */
- PP_FILETYPE_OTHER
+ PP_FILETYPE_OTHER = 2
};
/**
@@ -28,11 +28,11 @@ enum PP_FileSystemType {
/** For identified invalid return values */
PP_FILESYSTEMTYPE_INVALID = 0,
/** For external file system types */
- PP_FILESYSTEMTYPE_EXTERNAL,
+ PP_FILESYSTEMTYPE_EXTERNAL = 1,
/** For local persistant file system types */
- PP_FILESYSTEMTYPE_LOCALPERSISTENT,
+ PP_FILESYSTEMTYPE_LOCALPERSISTENT = 2,
/** For local temporary file system types */
- PP_FILESYSTEMTYPE_LOCALTEMPORARY
+ PP_FILESYSTEMTYPE_LOCALTEMPORARY = 3
};
/**
diff --git a/ppapi/api/pp_var.idl b/ppapi/api/pp_var.idl
index 5927cbc..1a6ad7e 100644
--- a/ppapi/api/pp_var.idl
+++ b/ppapi/api/pp_var.idl
@@ -17,42 +17,42 @@ enum PP_VarType {
/**
* An undefined value.
*/
- PP_VARTYPE_UNDEFINED,
+ PP_VARTYPE_UNDEFINED = 0,
/**
* A NULL value. This is similar to undefined, but JavaScript differentiates
* the two so it is exposed here as well.
*/
- PP_VARTYPE_NULL,
+ PP_VARTYPE_NULL = 1,
/**
* A boolean value, use the <code>as_bool</code> member of the var.
*/
- PP_VARTYPE_BOOL,
+ PP_VARTYPE_BOOL = 2,
/**
* A 32-bit integer value. Use the <code>as_int</code> member of the var.
*/
- PP_VARTYPE_INT32,
+ PP_VARTYPE_INT32 = 3,
/**
* A double-precision floating point value. Use the <code>as_double</code>
* member of the var.
*/
- PP_VARTYPE_DOUBLE,
+ PP_VARTYPE_DOUBLE = 4,
/**
* The Var represents a string. The <code>as_id</code> field is used to
* identify the string, which may be created and retrieved from the
* <code>PPB_Var</code> interface.
*/
- PP_VARTYPE_STRING,
+ PP_VARTYPE_STRING = 5,
/**
* Represents a JavaScript object. This vartype is not currently usable
* from modules, although it is used internally for some tasks.
*/
- PP_VARTYPE_OBJECT,
+ PP_VARTYPE_OBJECT = 6,
/**
* Arrays and dictionaries are not currently supported but will be added
@@ -60,8 +60,8 @@ enum PP_VarType {
* to properly AddRef/Release them as you would with strings to ensure your
* module will continue to work with future versions of the API.
*/
- PP_VARTYPE_ARRAY,
- PP_VARTYPE_DICTIONARY
+ PP_VARTYPE_ARRAY = 7,
+ PP_VARTYPE_DICTIONARY = 8
};
diff --git a/ppapi/api/ppb_url_request_info.idl b/ppapi/api/ppb_url_request_info.idl
index 793101f..99e6cce 100644
--- a/ppapi/api/ppb_url_request_info.idl
+++ b/ppapi/api/ppb_url_request_info.idl
@@ -18,7 +18,7 @@ label Chrome {
[assert_size(4)]
enum PP_URLRequestProperty {
/** This corresponds to a string (<code>PP_VARTYPE_STRING</code>). */
- PP_URLREQUESTPROPERTY_URL,
+ PP_URLREQUESTPROPERTY_URL = 0,
/**
* This corresponds to a string (<code>PP_VARTYPE_STRING</code>); either
@@ -27,7 +27,7 @@ enum PP_URLRequestProperty {
* Methods</a> documentation for further information.
*
*/
- PP_URLREQUESTPROPERTY_METHOD,
+ PP_URLREQUESTPROPERTY_METHOD = 1,
/**
* This corresponds to a string (<code>PP_VARTYPE_STRING</code>); \n
@@ -35,7 +35,7 @@ enum PP_URLRequestProperty {
* <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html"Header
* Field Definitions</a> documentaiton for further information.
*/
- PP_URLREQUESTPROPERTY_HEADERS,
+ PP_URLREQUESTPROPERTY_HEADERS = 2,
/**
* This corresponds to a <code>PP_Bool</code> (<code>PP_VARTYPE_BOOL</code>;
@@ -44,7 +44,7 @@ enum PP_URLRequestProperty {
* to a file. Use PPB_URLLoader.FinishStreamingToFile() to complete the
* download.
*/
- PP_URLREQUESTPROPERTY_STREAMTOFILE,
+ PP_URLREQUESTPROPERTY_STREAMTOFILE = 3,
/**
* This corresponds to a <code>PP_Bool</code> (<code>PP_VARTYPE_BOOL</code>;
@@ -53,7 +53,7 @@ enum PP_URLRequestProperty {
* PPB_URLLoader.FollowRedirects() to follow the redirects only after
* examining redirect headers.
*/
- PP_URLREQUESTPROPERTY_FOLLOWREDIRECTS,
+ PP_URLREQUESTPROPERTY_FOLLOWREDIRECTS = 4,
/**
* This corresponds to a <code>PP_Bool</code> (<code>PP_VARTYPE_BOOL</code>;
@@ -61,7 +61,7 @@ enum PP_URLRequestProperty {
* Set this value to <code>PP_TRUE</code> if you want to be able to poll the
* download progress using PPB_URLLoader.GetDownloadProgress().
*/
- PP_URLREQUESTPROPERTY_RECORDDOWNLOADPROGRESS,
+ PP_URLREQUESTPROPERTY_RECORDDOWNLOADPROGRESS = 5,
/**
* This corresponds to a <code>PP_Bool</code>
@@ -69,7 +69,7 @@ enum PP_URLRequestProperty {
* you want to be able to poll the upload progress using
* PPB_URLLoader.GetUplaodProgress().
*/
- PP_URLREQUESTPROPERTY_RECORDUPLOADPROGRESS,
+ PP_URLREQUESTPROPERTY_RECORDUPLOADPROGRESS = 6,
/**
* This corresponds to a string (<code>PP_VARTYPE_STRING)</code> or may be
@@ -81,7 +81,7 @@ enum PP_URLRequestProperty {
* referrer; if given to a loader without universal access,
* <code>PP_ERROR_NOACCESS</code> will result.
*/
- PP_URLREQUESTPROPERTY_CUSTOMREFERRERURL,
+ PP_URLREQUESTPROPERTY_CUSTOMREFERRERURL = 7,
/**
* This corresponds to a <code>PP_Bool</code> (<code>PP_VARTYPE_BOOL</code>;
@@ -92,7 +92,7 @@ enum PP_URLRequestProperty {
* the <a href="http://www.w3.org/TR/access-control">Cross-Origin Resource
* Sharing</a> documentation.
*/
- PP_URLREQUESTPROPERTY_ALLOWCROSSORIGINREQUESTS,
+ PP_URLREQUESTPROPERTY_ALLOWCROSSORIGINREQUESTS = 8,
/**
* This corresponds to a <code>PP_Bool</code> (<code>PP_VARTYPE_BOOL</code>;
@@ -101,7 +101,7 @@ enum PP_URLRequestProperty {
* no credentials are sent with the request and cookies are ignored in the
* response. If the request is not cross-origin, this property is ignored.
*/
- PP_URLREQUESTPROPERTY_ALLOWCREDENTIALS,
+ PP_URLREQUESTPROPERTY_ALLOWCREDENTIALS = 9,
/**
* This corresponds to a string (<code>PP_VARTYPE_STRING</code>) or may be
@@ -113,7 +113,7 @@ enum PP_URLRequestProperty {
* to set a custom content transfer encoding; if given to a loader without
* universal access, <code>PP_ERROR_NOACCESS</code> will result.
*/
- PP_URLREQUESTPROPERTY_CUSTOMCONTENTTRANSFERENCODING,
+ PP_URLREQUESTPROPERTY_CUSTOMCONTENTTRANSFERENCODING = 10,
/**
* This corresponds to an integer (<code>PP_VARTYPE_INT32</code>); default
@@ -126,7 +126,7 @@ enum PP_URLRequestProperty {
* <code>PP_URLREQUESTPROPERTY_PREFETCHBUFFERLOWERERTHRESHOLD</code> must also
* be set. Behavior is undefined if the former is <= the latter.
*/
- PP_URLREQUESTPROPERTY_PREFETCHBUFFERUPPERTHRESHOLD,
+ PP_URLREQUESTPROPERTY_PREFETCHBUFFERUPPERTHRESHOLD = 11,
/**
* This corresponds to an integer (<code>PP_VARTYPE_INT32</code>); default is
@@ -140,7 +140,7 @@ enum PP_URLRequestProperty {
* <code>PP_URLREQUESTPROPERTY_PREFETCHBUFFERUPPERTHRESHOLD</code> must also
* be set. Behavior is undefined if the former is >= the latter.
*/
- PP_URLREQUESTPROPERTY_PREFETCHBUFFERLOWERTHRESHOLD
+ PP_URLREQUESTPROPERTY_PREFETCHBUFFERLOWERTHRESHOLD = 12
};
/**
diff --git a/ppapi/api/ppb_url_response_info.idl b/ppapi/api/ppb_url_response_info.idl
index 53b00a2..a896720 100644
--- a/ppapi/api/ppb_url_response_info.idl
+++ b/ppapi/api/ppb_url_response_info.idl
@@ -26,7 +26,7 @@ enum PP_URLResponseProperty {
* <a href="http://www.w3.org/TR/html4/struct/links.html#h-12.4.1">
* HTML Resolving Relative URIs</a> documentation for further information.
*/
- PP_URLRESPONSEPROPERTY_URL,
+ PP_URLRESPONSEPROPERTY_URL = 0,
/**
* This corresponds to a string (PP_VARTYPE_STRING); the absolute URL returned
@@ -35,7 +35,7 @@ enum PP_URLResponseProperty {
* <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3">
* HTTP Status Codes - Redirection</a> documentation for further information.
*/
- PP_URLRESPONSEPROPERTY_REDIRECTURL,
+ PP_URLRESPONSEPROPERTY_REDIRECTURL = 1,
/**
* This corresponds to a string (PP_VARTYPE_STRING); the HTTP method to be
@@ -44,7 +44,7 @@ enum PP_URLResponseProperty {
* <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3">
* HTTP Status Codes - Redirection</a> documentation for further information.
*/
- PP_URLRESPONSEPROPERTY_REDIRECTMETHOD,
+ PP_URLRESPONSEPROPERTY_REDIRECTMETHOD = 2,
/**
* This corresponds to an int32 (PP_VARETYPE_INT32); the status code from the
@@ -53,7 +53,7 @@ enum PP_URLResponseProperty {
* HTTP Status Code and Reason Phrase</a> documentation for further
* information.
*/
- PP_URLRESPONSEPROPERTY_STATUSCODE,
+ PP_URLRESPONSEPROPERTY_STATUSCODE = 3,
/**
* This corresponds to a string (PP_VARTYPE_STRING); the status line
@@ -61,7 +61,7 @@ enum PP_URLResponseProperty {
* <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec6.html#sec6.1">
* HTTP Response Status Line</a> documentation for further information.
*/
- PP_URLRESPONSEPROPERTY_STATUSLINE,
+ PP_URLRESPONSEPROPERTY_STATUSLINE = 4,
/**
* This corresponds to a string(PP_VARTYPE_STRING), a \n-delimited list of
@@ -70,7 +70,7 @@ enum PP_URLResponseProperty {
* <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14">
* HTTP Header Field Definitions</a> documentation for further information.
*/
- PP_URLRESPONSEPROPERTY_HEADERS
+ PP_URLRESPONSEPROPERTY_HEADERS = 5
};
diff --git a/ppapi/c/pp_file_info.h b/ppapi/c/pp_file_info.h
index 8df6076..0b8353d 100644
--- a/ppapi/c/pp_file_info.h
+++ b/ppapi/c/pp_file_info.h
@@ -3,7 +3,7 @@
* found in the LICENSE file.
*/
-/* From pp_file_info.idl modified Sat Jul 16 16:50:26 2011. */
+/* From pp_file_info.idl modified Fri Nov 11 19:56:09 2011. */
#ifndef PPAPI_C_PP_FILE_INFO_H_
#define PPAPI_C_PP_FILE_INFO_H_
@@ -27,11 +27,11 @@
*/
typedef enum {
/** A regular file type */
- PP_FILETYPE_REGULAR,
+ PP_FILETYPE_REGULAR = 0,
/** A directory */
- PP_FILETYPE_DIRECTORY,
+ PP_FILETYPE_DIRECTORY = 1,
/** A catch-all for unidentified types */
- PP_FILETYPE_OTHER
+ PP_FILETYPE_OTHER = 2
} PP_FileType;
PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_FileType, 4);
@@ -42,11 +42,11 @@ typedef enum {
/** For identified invalid return values */
PP_FILESYSTEMTYPE_INVALID = 0,
/** For external file system types */
- PP_FILESYSTEMTYPE_EXTERNAL,
+ PP_FILESYSTEMTYPE_EXTERNAL = 1,
/** For local persistant file system types */
- PP_FILESYSTEMTYPE_LOCALPERSISTENT,
+ PP_FILESYSTEMTYPE_LOCALPERSISTENT = 2,
/** For local temporary file system types */
- PP_FILESYSTEMTYPE_LOCALTEMPORARY
+ PP_FILESYSTEMTYPE_LOCALTEMPORARY = 3
} PP_FileSystemType;
PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_FileSystemType, 4);
/**
diff --git a/ppapi/c/pp_var.h b/ppapi/c/pp_var.h
index b496739..fb174a8 100644
--- a/ppapi/c/pp_var.h
+++ b/ppapi/c/pp_var.h
@@ -3,7 +3,7 @@
* found in the LICENSE file.
*/
-/* From pp_var.idl modified Tue Jul 12 15:26:30 2011. */
+/* From pp_var.idl modified Fri Nov 11 19:57:17 2011. */
#ifndef PPAPI_C_PP_VAR_H_
#define PPAPI_C_PP_VAR_H_
@@ -31,44 +31,44 @@ typedef enum {
/**
* An undefined value.
*/
- PP_VARTYPE_UNDEFINED,
+ PP_VARTYPE_UNDEFINED = 0,
/**
* A NULL value. This is similar to undefined, but JavaScript differentiates
* the two so it is exposed here as well.
*/
- PP_VARTYPE_NULL,
+ PP_VARTYPE_NULL = 1,
/**
* A boolean value, use the <code>as_bool</code> member of the var.
*/
- PP_VARTYPE_BOOL,
+ PP_VARTYPE_BOOL = 2,
/**
* A 32-bit integer value. Use the <code>as_int</code> member of the var.
*/
- PP_VARTYPE_INT32,
+ PP_VARTYPE_INT32 = 3,
/**
* A double-precision floating point value. Use the <code>as_double</code>
* member of the var.
*/
- PP_VARTYPE_DOUBLE,
+ PP_VARTYPE_DOUBLE = 4,
/**
* The Var represents a string. The <code>as_id</code> field is used to
* identify the string, which may be created and retrieved from the
* <code>PPB_Var</code> interface.
*/
- PP_VARTYPE_STRING,
+ PP_VARTYPE_STRING = 5,
/**
* Represents a JavaScript object. This vartype is not currently usable
* from modules, although it is used internally for some tasks.
*/
- PP_VARTYPE_OBJECT,
+ PP_VARTYPE_OBJECT = 6,
/**
* Arrays and dictionaries are not currently supported but will be added
* in future revisions. These objects are reference counted so be sure
* to properly AddRef/Release them as you would with strings to ensure your
* module will continue to work with future versions of the API.
*/
- PP_VARTYPE_ARRAY,
- PP_VARTYPE_DICTIONARY
+ PP_VARTYPE_ARRAY = 7,
+ PP_VARTYPE_DICTIONARY = 8
} PP_VarType;
PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_VarType, 4);
/**
diff --git a/ppapi/c/ppb_url_request_info.h b/ppapi/c/ppb_url_request_info.h
index 0e854e0..d1e9519 100644
--- a/ppapi/c/ppb_url_request_info.h
+++ b/ppapi/c/ppb_url_request_info.h
@@ -3,7 +3,7 @@
* found in the LICENSE file.
*/
-/* From ppb_url_request_info.idl modified Mon Aug 29 10:11:34 2011. */
+/* From ppb_url_request_info.idl modified Fri Nov 11 19:53:07 2011. */
#ifndef PPAPI_C_PPB_URL_REQUEST_INFO_H_
#define PPAPI_C_PPB_URL_REQUEST_INFO_H_
@@ -35,7 +35,7 @@
*/
typedef enum {
/** This corresponds to a string (<code>PP_VARTYPE_STRING</code>). */
- PP_URLREQUESTPROPERTY_URL,
+ PP_URLREQUESTPROPERTY_URL = 0,
/**
* This corresponds to a string (<code>PP_VARTYPE_STRING</code>); either
* POST or GET. Refer to the
@@ -43,14 +43,14 @@ typedef enum {
* Methods</a> documentation for further information.
*
*/
- PP_URLREQUESTPROPERTY_METHOD,
+ PP_URLREQUESTPROPERTY_METHOD = 1,
/**
* This corresponds to a string (<code>PP_VARTYPE_STRING</code>); \n
* delimited. Refer to the
* <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html"Header
* Field Definitions</a> documentaiton for further information.
*/
- PP_URLREQUESTPROPERTY_HEADERS,
+ PP_URLREQUESTPROPERTY_HEADERS = 2,
/**
* This corresponds to a <code>PP_Bool</code> (<code>PP_VARTYPE_BOOL</code>;
* default=<code>PP_FALSE</code>).
@@ -58,7 +58,7 @@ typedef enum {
* to a file. Use PPB_URLLoader.FinishStreamingToFile() to complete the
* download.
*/
- PP_URLREQUESTPROPERTY_STREAMTOFILE,
+ PP_URLREQUESTPROPERTY_STREAMTOFILE = 3,
/**
* This corresponds to a <code>PP_Bool</code> (<code>PP_VARTYPE_BOOL</code>;
* default=<code>PP_TRUE</code>).
@@ -66,21 +66,21 @@ typedef enum {
* PPB_URLLoader.FollowRedirects() to follow the redirects only after
* examining redirect headers.
*/
- PP_URLREQUESTPROPERTY_FOLLOWREDIRECTS,
+ PP_URLREQUESTPROPERTY_FOLLOWREDIRECTS = 4,
/**
* This corresponds to a <code>PP_Bool</code> (<code>PP_VARTYPE_BOOL</code>;
* default=<code>PP_FALSE</code>).
* Set this value to <code>PP_TRUE</code> if you want to be able to poll the
* download progress using PPB_URLLoader.GetDownloadProgress().
*/
- PP_URLREQUESTPROPERTY_RECORDDOWNLOADPROGRESS,
+ PP_URLREQUESTPROPERTY_RECORDDOWNLOADPROGRESS = 5,
/**
* This corresponds to a <code>PP_Bool</code>
* (default=<code>PP_FALSE</code>). Set this value to <code>PP_TRUE</code> if
* you want to be able to poll the upload progress using
* PPB_URLLoader.GetUplaodProgress().
*/
- PP_URLREQUESTPROPERTY_RECORDUPLOADPROGRESS,
+ PP_URLREQUESTPROPERTY_RECORDUPLOADPROGRESS = 6,
/**
* This corresponds to a string (<code>PP_VARTYPE_STRING)</code> or may be
* undefined (<code>PP_VARTYPE_UNDEFINED</code>; default).
@@ -91,7 +91,7 @@ typedef enum {
* referrer; if given to a loader without universal access,
* <code>PP_ERROR_NOACCESS</code> will result.
*/
- PP_URLREQUESTPROPERTY_CUSTOMREFERRERURL,
+ PP_URLREQUESTPROPERTY_CUSTOMREFERRERURL = 7,
/**
* This corresponds to a <code>PP_Bool</code> (<code>PP_VARTYPE_BOOL</code>;
* default=<code>PP_FALSE</code>). Whether cross-origin requests are allowed.
@@ -101,7 +101,7 @@ typedef enum {
* the <a href="http://www.w3.org/TR/access-control">Cross-Origin Resource
* Sharing</a> documentation.
*/
- PP_URLREQUESTPROPERTY_ALLOWCROSSORIGINREQUESTS,
+ PP_URLREQUESTPROPERTY_ALLOWCROSSORIGINREQUESTS = 8,
/**
* This corresponds to a <code>PP_Bool</code> (<code>PP_VARTYPE_BOOL</code>;
* default=<code>PP_FALSE</code>).
@@ -109,7 +109,7 @@ typedef enum {
* no credentials are sent with the request and cookies are ignored in the
* response. If the request is not cross-origin, this property is ignored.
*/
- PP_URLREQUESTPROPERTY_ALLOWCREDENTIALS,
+ PP_URLREQUESTPROPERTY_ALLOWCREDENTIALS = 9,
/**
* This corresponds to a string (<code>PP_VARTYPE_STRING</code>) or may be
* undefined (<code>PP_VARTYPE_UNDEFINED</code>; default).
@@ -120,7 +120,7 @@ typedef enum {
* to set a custom content transfer encoding; if given to a loader without
* universal access, <code>PP_ERROR_NOACCESS</code> will result.
*/
- PP_URLREQUESTPROPERTY_CUSTOMCONTENTTRANSFERENCODING,
+ PP_URLREQUESTPROPERTY_CUSTOMCONTENTTRANSFERENCODING = 10,
/**
* This corresponds to an integer (<code>PP_VARTYPE_INT32</code>); default
* is not defined and is set by the browser, possibly depending on system
@@ -132,7 +132,7 @@ typedef enum {
* <code>PP_URLREQUESTPROPERTY_PREFETCHBUFFERLOWERERTHRESHOLD</code> must also
* be set. Behavior is undefined if the former is <= the latter.
*/
- PP_URLREQUESTPROPERTY_PREFETCHBUFFERUPPERTHRESHOLD,
+ PP_URLREQUESTPROPERTY_PREFETCHBUFFERUPPERTHRESHOLD = 11,
/**
* This corresponds to an integer (<code>PP_VARTYPE_INT32</code>); default is
* not defined and is set by the browser to a value appropriate for the
@@ -145,7 +145,7 @@ typedef enum {
* <code>PP_URLREQUESTPROPERTY_PREFETCHBUFFERUPPERTHRESHOLD</code> must also
* be set. Behavior is undefined if the former is >= the latter.
*/
- PP_URLREQUESTPROPERTY_PREFETCHBUFFERLOWERTHRESHOLD
+ PP_URLREQUESTPROPERTY_PREFETCHBUFFERLOWERTHRESHOLD = 12
} PP_URLRequestProperty;
PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_URLRequestProperty, 4);
/**
diff --git a/ppapi/c/ppb_url_response_info.h b/ppapi/c/ppb_url_response_info.h
index 0e4d82e..399a13c6 100644
--- a/ppapi/c/ppb_url_response_info.h
+++ b/ppapi/c/ppb_url_response_info.h
@@ -3,7 +3,7 @@
* found in the LICENSE file.
*/
-/* From ppb_url_response_info.idl modified Wed Aug 24 20:53:17 2011. */
+/* From ppb_url_response_info.idl modified Fri Nov 11 19:54:33 2011. */
#ifndef PPAPI_C_PPB_URL_RESPONSE_INFO_H_
#define PPAPI_C_PPB_URL_RESPONSE_INFO_H_
@@ -41,7 +41,7 @@ typedef enum {
* <a href="http://www.w3.org/TR/html4/struct/links.html#h-12.4.1">
* HTML Resolving Relative URIs</a> documentation for further information.
*/
- PP_URLRESPONSEPROPERTY_URL,
+ PP_URLRESPONSEPROPERTY_URL = 0,
/**
* This corresponds to a string (PP_VARTYPE_STRING); the absolute URL returned
* in the response header's 'Location' field if this is a redirect response,
@@ -49,7 +49,7 @@ typedef enum {
* <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3">
* HTTP Status Codes - Redirection</a> documentation for further information.
*/
- PP_URLRESPONSEPROPERTY_REDIRECTURL,
+ PP_URLRESPONSEPROPERTY_REDIRECTURL = 1,
/**
* This corresponds to a string (PP_VARTYPE_STRING); the HTTP method to be
* used in a new request if this is a redirect response, an empty string
@@ -57,7 +57,7 @@ typedef enum {
* <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3">
* HTTP Status Codes - Redirection</a> documentation for further information.
*/
- PP_URLRESPONSEPROPERTY_REDIRECTMETHOD,
+ PP_URLRESPONSEPROPERTY_REDIRECTMETHOD = 2,
/**
* This corresponds to an int32 (PP_VARETYPE_INT32); the status code from the
* response, e.g., 200 if the request was successful. Refer to the
@@ -65,14 +65,14 @@ typedef enum {
* HTTP Status Code and Reason Phrase</a> documentation for further
* information.
*/
- PP_URLRESPONSEPROPERTY_STATUSCODE,
+ PP_URLRESPONSEPROPERTY_STATUSCODE = 3,
/**
* This corresponds to a string (PP_VARTYPE_STRING); the status line
* from the response. Refer to the
* <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec6.html#sec6.1">
* HTTP Response Status Line</a> documentation for further information.
*/
- PP_URLRESPONSEPROPERTY_STATUSLINE,
+ PP_URLRESPONSEPROPERTY_STATUSLINE = 4,
/**
* This corresponds to a string(PP_VARTYPE_STRING), a \n-delimited list of
* header field/value pairs of the form "field: value", returned by the
@@ -80,7 +80,7 @@ typedef enum {
* <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14">
* HTTP Header Field Definitions</a> documentation for further information.
*/
- PP_URLRESPONSEPROPERTY_HEADERS
+ PP_URLRESPONSEPROPERTY_HEADERS = 5
} PP_URLResponseProperty;
PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_URLResponseProperty, 4);
/**