#ifndef CONTENT_BROWSER_LOADER_RESOURCE_MESSAGE_DELEGATE_
#define CONTENT_BROWSER_LOADER_RESOURCE_MESSAGE_DELEGATE_
#include "base/basictypes.h"
#include "content/common/content_export.h"
#include "content/public/browser/global_request_id.h"
namespace IPC {
class Message;
}
namespace net {
class URLRequest;
}
namespace content {
class CONTENT_EXPORT ResourceMessageDelegate {
public:
ResourceMessageDelegate(const net::URLRequest* request);
virtual ~ResourceMessageDelegate();
virtual bool OnMessageReceived(const IPC::Message& message,
bool* message_was_ok) = 0;
void set_request_id(const GlobalRequestID& new_request_id) {
id_ = new_request_id;
}
private:
GlobalRequestID id_;
DISALLOW_IMPLICIT_CONSTRUCTORS(ResourceMessageDelegate);
};
}
#endif