Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(286)

Unified Diff: webkit/glue/plugins/pepper_url_request_info.h

Issue 2861036: Add basic Pepper URLLoader implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/glue/plugins/pepper_url_loader.cc ('k') | webkit/glue/plugins/pepper_url_request_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/plugins/pepper_url_request_info.h
===================================================================
--- webkit/glue/plugins/pepper_url_request_info.h (revision 51226)
+++ webkit/glue/plugins/pepper_url_request_info.h (working copy)
@@ -8,10 +8,13 @@
#include <string>
#include "third_party/ppapi/c/ppb_url_request_info.h"
+#include "third_party/WebKit/WebKit/chromium/public/WebURLRequest.h"
#include "webkit/glue/plugins/pepper_resource.h"
namespace pepper {
+class FileRef;
+
class URLRequestInfo : public Resource {
public:
explicit URLRequestInfo(PluginModule* module);
@@ -29,6 +32,17 @@
bool SetStringProperty(PP_URLRequestProperty property,
const std::string& value);
bool AppendDataToBody(const std::string& data);
+ bool AppendFileToBody(FileRef* file_ref,
+ int64_t start_offset,
+ int64_t number_of_bytes,
+ PP_Time expected_last_modified_time);
+
+ const WebKit::WebURLRequest& web_request() const {
+ return web_request_;
+ }
+
+ private:
+ WebKit::WebURLRequest web_request_;
};
} // namespace pepper
« no previous file with comments | « webkit/glue/plugins/pepper_url_loader.cc ('k') | webkit/glue/plugins/pepper_url_request_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698