diff options
author | stuartmorgan@chromium.org <stuartmorgan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-05 17:30:36 +0000 |
---|---|---|
committer | stuartmorgan@chromium.org <stuartmorgan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-05 17:30:36 +0000 |
commit | 7e820a1295d98bbf7ab1b14e43d9805b86c15999 (patch) | |
tree | c94aac6368747d68de633229dabe29e7563ec244 /webkit/glue/plugins/plugin_host.cc | |
parent | 7e2b5a87ebcf514fe9a0a5f6460f438853ecc01e (diff) | |
download | chromium_src-7e820a1295d98bbf7ab1b14e43d9805b86c15999.zip chromium_src-7e820a1295d98bbf7ab1b14e43d9805b86c15999.tar.gz chromium_src-7e820a1295d98bbf7ab1b14e43d9805b86c15999.tar.bz2 |
Move NPAPI to C99 types
BUG=42645
TEST=None; no behavioral change.
Review URL: http://codereview.chromium.org/1910004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46463 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/plugins/plugin_host.cc')
-rw-r--r-- | webkit/glue/plugins/plugin_host.cc | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/webkit/glue/plugins/plugin_host.cc b/webkit/glue/plugins/plugin_host.cc index 3cd13bd..41d2fa2 100644 --- a/webkit/glue/plugins/plugin_host.cc +++ b/webkit/glue/plugins/plugin_host.cc @@ -278,7 +278,7 @@ bool PluginHost::SetPostData(const char* buf, extern "C" { // Allocates memory from the host's memory space. -void* NPN_MemAlloc(uint32 size) { +void* NPN_MemAlloc(uint32_t size) { scoped_refptr<NPAPI::PluginHost> host = NPAPI::PluginHost::Singleton(); if (host != NULL) { // Note: We must use the same allocator/deallocator @@ -300,7 +300,7 @@ void NPN_MemFree(void* ptr) { } // Requests that the host free a specified amount of memory. -uint32 NPN_MemFlush(uint32 size) { +uint32_t NPN_MemFlush(uint32_t size) { // This is not relevant on Windows; MAC specific return size; } @@ -392,7 +392,7 @@ NPError NPN_GetURL(NPP id, const char* url, const char* target) { static NPError PostURLNotify(NPP id, const char* url, const char* target, - uint32 len, + uint32_t len, const char* buf, NPBool file, bool notify, @@ -478,7 +478,7 @@ static NPError PostURLNotify(NPP id, NPError NPN_PostURLNotify(NPP id, const char* url, const char* target, - uint32 len, + uint32_t len, const char* buf, NPBool file, void* notify_data) { @@ -488,7 +488,7 @@ NPError NPN_PostURLNotify(NPP id, NPError NPN_PostURL(NPP id, const char* url, const char* target, - uint32 len, + uint32_t len, const char* buf, NPBool file) { // POSTs data to an URL, either from a temp file or a buffer. @@ -529,7 +529,7 @@ NPError NPN_NewStream(NPP id, return NPERR_GENERIC_ERROR; } -int32 NPN_Write(NPP id, NPStream* stream, int32 len, void* buffer) { +int32_t NPN_Write(NPP id, NPStream* stream, int32_t len, void* buffer) { // Writes data to an existing Plugin-created stream. // TODO: implement me @@ -920,7 +920,7 @@ NPError NPN_GetValueForURL(NPP id, NPNURLVariable variable, const char* url, char** value, - uint32* len) { + uint32_t* len) { if (!id) return NPERR_INVALID_PARAM; @@ -970,7 +970,7 @@ NPError NPN_SetValueForURL(NPP id, NPNURLVariable variable, const char* url, const char* value, - uint32 len) { + uint32_t len) { if (!id) return NPERR_INVALID_PARAM; @@ -1010,9 +1010,9 @@ NPError NPN_GetAuthenticationInfo(NPP id, const char* scheme, const char* realm, char** username, - uint32* ulen, + uint32_t* ulen, char** password, - uint32* plen) { + uint32_t* plen) { if (!id || !protocol || !host || !scheme || !realm || !username || !ulen || !password || !plen) return NPERR_INVALID_PARAM; @@ -1021,10 +1021,10 @@ NPError NPN_GetAuthenticationInfo(NPP id, return NPERR_GENERIC_ERROR; } -uint32 NPN_ScheduleTimer(NPP id, - uint32 interval, - NPBool repeat, - void (*func)(NPP id, uint32 timer_id)) { +uint32_t NPN_ScheduleTimer(NPP id, + uint32_t interval, + NPBool repeat, + void (*func)(NPP id, uint32_t timer_id)) { scoped_refptr<NPAPI::PluginInstance> plugin = FindInstance(id); if (!plugin) return 0; @@ -1032,7 +1032,7 @@ uint32 NPN_ScheduleTimer(NPP id, return plugin->ScheduleTimer(interval, repeat, func); } -void NPN_UnscheduleTimer(NPP id, uint32 timer_id) { +void NPN_UnscheduleTimer(NPP id, uint32_t timer_id) { scoped_refptr<NPAPI::PluginInstance> plugin = FindInstance(id); if (plugin) plugin->UnscheduleTimer(timer_id); |