diff options
Diffstat (limited to 'webkit/plugins/ppapi/ppb_url_loader_impl.h')
-rw-r--r-- | webkit/plugins/ppapi/ppb_url_loader_impl.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/webkit/plugins/ppapi/ppb_url_loader_impl.h b/webkit/plugins/ppapi/ppb_url_loader_impl.h index c46bbb6..fae3628 100644 --- a/webkit/plugins/ppapi/ppb_url_loader_impl.h +++ b/webkit/plugins/ppapi/ppb_url_loader_impl.h @@ -88,6 +88,10 @@ class PPB_URLLoader_Impl : public Resource, public WebKit::WebURLLoaderClient { PPB_URLResponseInfo_Impl* response_info() const { return response_info_; } + // Returns the number of bytes currently available for synchronous reading + // in the loader. + int32_t buffer_size() const { return buffer_.size(); } + private: // Check that |callback| is valid (only non-blocking operation is supported) // and that no callback is already pending. Returns |PP_OK| if okay, else |