#ifndef CONTENT_CHILD_NPAPI_WEBPLUGIN_RESOURCE_CLIENT_H_
#define CONTENT_CHILD_NPAPI_WEBPLUGIN_RESOURCE_CLIENT_H_
#include <string>
#include "base/basictypes.h"
class GURL;
namespace content {
class WebPluginResourceClient {
public:
virtual ~WebPluginResourceClient() {}
virtual void WillSendRequest(const GURL& url, int http_status_code) = 0;
virtual void DidReceiveResponse(const std::string& mime_type,
const std::string& headers,
uint32 expected_length,
uint32 last_modified,
bool request_is_seekable) = 0;
virtual void DidReceiveData(const char* buffer, int length,
int data_offset) = 0;
virtual void DidFinishLoading(unsigned long resource_id) = 0;
virtual void DidFail(unsigned long resource_id) = 0;
virtual bool IsMultiByteResponseExpected() = 0;
virtual int ResourceId() = 0;
virtual void AddRangeRequestResourceId(unsigned long resource_id) { }
};
}
#endif