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

Unified Diff: ppapi/proxy/ppb_url_response_info_proxy.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/proxy/ppb_url_response_info_proxy.h ('k') | ppapi/tests/test_c_includes.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/ppb_url_response_info_proxy.cc
===================================================================
--- ppapi/proxy/ppb_url_response_info_proxy.cc (revision 65624)
+++ ppapi/proxy/ppb_url_response_info_proxy.cc (working copy)
@@ -4,7 +4,7 @@
#include "ppapi/proxy/ppb_url_response_info_proxy.h"
-#include "ppapi/c/dev/ppb_url_response_info_dev.h"
+#include "ppapi/c/ppb_url_response_info.h"
#include "ppapi/proxy/plugin_dispatcher.h"
#include "ppapi/proxy/plugin_resource.h"
#include "ppapi/proxy/ppapi_messages.h"
@@ -32,7 +32,7 @@
return BoolToPPBool(!!object);
}
-PP_Var GetProperty(PP_Resource response, PP_URLResponseProperty_Dev property) {
+PP_Var GetProperty(PP_Resource response, PP_URLResponseProperty property) {
Dispatcher* dispatcher = PluginDispatcher::Get();
ReceiveSerializedVarReturnValue result;
dispatcher->Send(new PpapiHostMsg_PPBURLResponseInfo_GetProperty(
@@ -40,11 +40,11 @@
return result.Return(dispatcher);
}
-PP_Resource GetBody(PP_Resource response) {
+PP_Resource GetBodyAsFileRef(PP_Resource response) {
PP_Resource result = 0;
/*
Dispatcher* dispatcher = PluginDispatcher::Get();
- dispatcher->Send(new PpapiHostMsg_PPBURLResponseInfo_GetBody(
+ dispatcher->Send(new PpapiHostMsg_PPBURLResponseInfo_GetBodyAsFileRef(
INTERFACE_ID_PPB_URL_RESPONSE_INFO, response, &result));
// TODO(brettw) when we have FileRef proxied, make an object from that
// ref so we can track it properly and then uncomment this.
@@ -52,10 +52,10 @@
return result;
}
-const PPB_URLResponseInfo_Dev ppb_urlresponseinfo = {
+const PPB_URLResponseInfo ppb_urlresponseinfo = {
&IsURLResponseInfo,
&GetProperty,
- &GetBody
+ &GetBodyAsFileRef
};
} // namespace
@@ -89,8 +89,8 @@
IPC_BEGIN_MESSAGE_MAP(PPB_URLResponseInfo_Proxy, msg)
IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBURLResponseInfo_GetProperty,
OnMsgGetProperty)
- IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBURLResponseInfo_GetBody,
- OnMsgGetBody)
+ IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBURLResponseInfo_GetBodyAsFileRef,
+ OnMsgGetBodyAsFileRef)
IPC_END_MESSAGE_MAP()
// TODO(brettw): handle bad messages.
}
@@ -100,12 +100,13 @@
int32_t property,
SerializedVarReturnValue result) {
result.Return(dispatcher(), ppb_url_response_info_target()->GetProperty(
- response, static_cast<PP_URLResponseProperty_Dev>(property)));
+ response, static_cast<PP_URLResponseProperty>(property)));
}
-void PPB_URLResponseInfo_Proxy::OnMsgGetBody(PP_Resource response,
- PP_Resource* file_ref_result) {
- *file_ref_result = ppb_url_response_info_target()->GetBody(response);
+void PPB_URLResponseInfo_Proxy::OnMsgGetBodyAsFileRef(
+ PP_Resource response,
+ PP_Resource* file_ref_result) {
+ *file_ref_result = ppb_url_response_info_target()->GetBodyAsFileRef(response);
}
} // namespace proxy
« no previous file with comments | « ppapi/proxy/ppb_url_response_info_proxy.h ('k') | ppapi/tests/test_c_includes.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698