summaryrefslogtreecommitdiffstats
path: root/ppapi/thunk/resource_creation_api.h
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-16 20:11:06 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-16 20:11:06 +0000
commit844fecb93b985d0d975e4fd1c3ce5b7ad223047b (patch)
treee585258bbc43ce28efb53fd809ddf624cfb9fe24 /ppapi/thunk/resource_creation_api.h
parent5909c79978cd7f940ed04ccbfe68c004636ceea5 (diff)
downloadchromium_src-844fecb93b985d0d975e4fd1c3ce5b7ad223047b.zip
chromium_src-844fecb93b985d0d975e4fd1c3ce5b7ad223047b.tar.gz
chromium_src-844fecb93b985d0d975e4fd1c3ce5b7ad223047b.tar.bz2
Refactor the URLResponseInfo to use new design
This puts all of the URLResponseInfo attributes in a struct so it can be sent over IPC in one message rather than requiring one sync IPC per attribute access. This includes a new example of streaming to a file that I used to do some manual tests of this change. I added and improved some documentation that I noticed when trying to write the example. Review URL: https://codereview.chromium.org/10993031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168273 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/thunk/resource_creation_api.h')
-rw-r--r--ppapi/thunk/resource_creation_api.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/ppapi/thunk/resource_creation_api.h b/ppapi/thunk/resource_creation_api.h
index 4c20559..cd0505c 100644
--- a/ppapi/thunk/resource_creation_api.h
+++ b/ppapi/thunk/resource_creation_api.h
@@ -29,6 +29,7 @@ struct PP_Size;
namespace ppapi {
struct URLRequestInfoData;
+struct URLResponseInfoData;
namespace thunk {
@@ -83,6 +84,15 @@ class ResourceCreationAPI {
virtual PP_Resource CreateURLRequestInfo(
PP_Instance instance,
const URLRequestInfoData& data) = 0;
+
+ // Passes a reference to the file_ref_resource, which is a process-local
+ // resource corresponding to the body_as_file_ref host resource in |data|,
+ // if there is one.
+ virtual PP_Resource CreateURLResponseInfo(
+ PP_Instance instance,
+ const URLResponseInfoData& data,
+ PP_Resource file_ref_resource) = 0;
+
virtual PP_Resource CreateWheelInputEvent(
PP_Instance instance,
PP_TimeTicks time_stamp,