diff options
author | teravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-01 23:28:58 +0000 |
---|---|---|
committer | teravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-01 23:28:58 +0000 |
commit | 0dbc1ce28363b16a379c1059c5493008bc7cebce (patch) | |
tree | f505f75b84fb23713033753866f4c9c7b6794f9f /ppapi/api/private/ppb_nacl_private.idl | |
parent | 787cfd8b016e3c87c1a1b1603336fc0d9c5b9f37 (diff) | |
download | chromium_src-0dbc1ce28363b16a379c1059c5493008bc7cebce.zip chromium_src-0dbc1ce28363b16a379c1059c5493008bc7cebce.tar.gz chromium_src-0dbc1ce28363b16a379c1059c5493008bc7cebce.tar.bz2 |
Pepper: Move nmf downloading out of trusted plugin.
This change moves NMF downloading for non-data URLs outside the trusted plugin
(data URLs were moved in a previous change). This is another step to removing
all dependencies on FileDownloader in the trusted plugin.
It's difficult to reuse the URLLoaderHost code from components/nacl (since
URLLoaderHost is not in content/public), so this change uses WebURLLoader
directly.
TBR=dglazkov
BUG=239656
Review URL: https://codereview.chromium.org/251383005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267660 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/api/private/ppb_nacl_private.idl')
-rw-r--r-- | ppapi/api/private/ppb_nacl_private.idl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ppapi/api/private/ppb_nacl_private.idl b/ppapi/api/private/ppb_nacl_private.idl index d38f5c5..ac93742 100644 --- a/ppapi/api/private/ppb_nacl_private.idl +++ b/ppapi/api/private/ppb_nacl_private.idl @@ -376,6 +376,7 @@ interface PPB_NaCl_Private { PP_Bool ResolvesRelativeToPluginBaseUrl([in] PP_Instance instance, [in] str_t url); + /* Returns the parsed contents of a data URL. */ PP_Var ParseDataURL([in] str_t data_url); /* Processes the NaCl manifest once it's been retrieved. @@ -391,4 +392,11 @@ interface PPB_NaCl_Private { PP_Bool IsPNaCl([in] PP_Instance instance); PP_Bool DevInterfacesEnabled([in] PP_Instance instance); + + /* Downloads the manifest into the buffer |data|, invoking + * |callback| when finished. + * TODO(teravest): Merge data URL parsing into this. */ + void DownloadManifestToBuffer([in] PP_Instance instance, + [out] PP_Var data, + [in] PP_CompletionCallback callback); }; |