diff options
author | piman@google.com <piman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-31 21:46:45 +0000 |
---|---|---|
committer | piman@google.com <piman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-31 21:46:45 +0000 |
commit | 087ce7477bfbc656e7ce8931d6036b7b179f85b8 (patch) | |
tree | f3a8d4f9eb41bb7ca9f7fc373d9df9603a1fc5d6 /ppapi/c | |
parent | 4a4546fb749ca2e205b318bb68bcdf3baeb2213e (diff) | |
download | chromium_src-087ce7477bfbc656e7ce8931d6036b7b179f85b8.zip chromium_src-087ce7477bfbc656e7ce8931d6036b7b179f85b8.tar.gz chromium_src-087ce7477bfbc656e7ce8931d6036b7b179f85b8.tar.bz2 |
Add GetPluginURL to PPB_URLUtil_Dev
BUG=chromium-os:13693
TEST=http://www.ford.com/cars/taurus/ with pepper flash
Review URL: http://codereview.chromium.org/6740013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80085 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/c')
-rw-r--r-- | ppapi/c/dev/ppb_url_util_dev.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/ppapi/c/dev/ppb_url_util_dev.h b/ppapi/c/dev/ppb_url_util_dev.h index 2cdad5f..8a79bb1 100644 --- a/ppapi/c/dev/ppb_url_util_dev.h +++ b/ppapi/c/dev/ppb_url_util_dev.h @@ -11,7 +11,7 @@ #include "ppapi/c/pp_stdint.h" #include "ppapi/c/pp_var.h" -#define PPB_URLUTIL_DEV_INTERFACE "PPB_URLUtil(Dev);0.5" +#define PPB_URLUTIL_DEV_INTERFACE "PPB_URLUtil(Dev);0.6" // A component specifies the range of the part of the URL. The begin specifies // the index into the string of the first character of that component. The len @@ -117,6 +117,17 @@ struct PPB_URLUtil_Dev { // to specify that no component information is necessary. struct PP_Var (*GetDocumentURL)(PP_Instance instance, struct PP_URLComponents_Dev* components); + + // Returns the Source URL for the plugin. This returns the URL that would be + // streamed to the plugin if it were a NPAPI plugin. This is usually the src + // attribute on the <embed> element, but the rules are obscure and different + // based on whether the plugin is loaded from an <embed> element or an + // <object> element. + // The components pointer, if non-NULL and the canonicalized URL is valid, + // will identify the components of the resulting URL. Components may be NULL + // to specify that no component information is necessary. + struct PP_Var (*GetPluginInstanceURL)( + PP_Instance instance, struct PP_URLComponents_Dev* components); }; #endif /* PPAPI_C_DEV_PPB_URL_UTIL_DEV_H_ */ |