Index: ppapi/thunk/ppb_url_loader_api.h |
diff --git a/ppapi/thunk/ppb_url_loader_api.h b/ppapi/thunk/ppb_url_loader_api.h |
index ddcd20e88debf9295d32f5a683303ecb818599c5..0fe8e04e814513323c4f46d7e300f4ecc0594ce9 100644 |
--- a/ppapi/thunk/ppb_url_loader_api.h |
+++ b/ppapi/thunk/ppb_url_loader_api.h |
@@ -13,6 +13,7 @@ namespace ppapi { |
class TrackedCallback; |
struct URLRequestInfoData; |
+struct URLResponseInfoData; |
namespace thunk { |
@@ -47,6 +48,14 @@ class PPB_URLLoader_API { |
// Trusted API. |
virtual void GrantUniversalAccess() = 0; |
virtual void SetStatusCallback(PP_URLLoaderTrusted_StatusCallback cb) = 0; |
+ |
+ // Internal function. This will fill in the given response info data and |
+ // return true on sucesss. If the dowbload was to a file, there will be one |
+ // plugin reference transferred to the caller. On failure, returns false. |
+ // |
+ // If body_as_file_ref is non-zero, this will transfer one plugin reference |
+ // to that object to the caller. |
+ virtual bool GetResponseInfoData(URLResponseInfoData* data) = 0; |
}; |
} // namespace thunk |