summaryrefslogtreecommitdiffstats
path: root/ppapi/proxy/ppb_url_loader_proxy.h
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-17 02:10:45 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-17 02:10:45 +0000
commitbf712f8ee12c3045ed390005887acb28e2bc7d49 (patch)
tree03769bfbfd2c85160932135dc4f06f6da9e45875 /ppapi/proxy/ppb_url_loader_proxy.h
parentdce730aba66fca3b63458a483bb60eeb716f2a79 (diff)
downloadchromium_src-bf712f8ee12c3045ed390005887acb28e2bc7d49.zip
chromium_src-bf712f8ee12c3045ed390005887acb28e2bc7d49.tar.gz
chromium_src-bf712f8ee12c3045ed390005887acb28e2bc7d49.tar.bz2
Convert the URL loading objects to the API/thunk system.
TEST=PPAPI UI tests BUG=none Review URL: http://codereview.chromium.org/7192012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89439 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy/ppb_url_loader_proxy.h')
-rw-r--r--ppapi/proxy/ppb_url_loader_proxy.h28
1 files changed, 4 insertions, 24 deletions
diff --git a/ppapi/proxy/ppb_url_loader_proxy.h b/ppapi/proxy/ppb_url_loader_proxy.h
index b2a57e5..0ff7b7e 100644
--- a/ppapi/proxy/ppb_url_loader_proxy.h
+++ b/ppapi/proxy/ppb_url_loader_proxy.h
@@ -30,6 +30,9 @@ class PPB_URLLoader_Proxy : public InterfaceProxy {
virtual ~PPB_URLLoader_Proxy();
static const Info* GetInfo();
+ static const Info* GetTrustedInfo();
+
+ static PP_Resource CreateProxyResource(PP_Instance instance);
// URLLoader objects are normally allocated by the Create function, but
// they are also provided to PPP_Instance.OnMsgHandleDocumentLoad. This
@@ -70,6 +73,7 @@ class PPB_URLLoader_Proxy : public InterfaceProxy {
void OnMsgFinishStreamingToFile(const HostResource& loader,
uint32_t serialized_callback);
void OnMsgClose(const HostResource& loader);
+ void OnMsgGrantUniversalAccess(const HostResource& loader);
// Renderer->plugin message handlers.
void OnMsgUpdateProgress(
@@ -78,10 +82,6 @@ class PPB_URLLoader_Proxy : public InterfaceProxy {
int32_t result,
const std::string& data);
- // Hooks the given URLLoader resource up in the host for receiving download
- // and upload status callbacks.
- void RegisterStatusCallback(PP_Resource resource);
-
// Handles callbacks for read complete messages. Takes ownership of the info
// pointer.
void OnReadCallback(int32_t result, ReadCallbackInfo* info);
@@ -94,26 +94,6 @@ class PPB_URLLoader_Proxy : public InterfaceProxy {
const PPB_URLLoaderTrusted* host_urlloader_trusted_interface_;
};
-class PPB_URLLoaderTrusted_Proxy : public InterfaceProxy {
- public:
- PPB_URLLoaderTrusted_Proxy(Dispatcher* dispatcher,
- const void* target_interface);
- virtual ~PPB_URLLoaderTrusted_Proxy();
-
- static const Info* GetInfo();
-
- const PPB_URLLoaderTrusted* ppb_url_loader_trusted_target() const {
- return reinterpret_cast<const PPB_URLLoaderTrusted*>(target_interface());
- }
-
- // InterfaceProxy implementation.
- virtual bool OnMessageReceived(const IPC::Message& msg);
-
- private:
- // Plugin->renderer message handlers.
- void OnMsgGrantUniversalAccess(const HostResource& loader);
-};
-
} // namespace proxy
} // namespace pp