multibyte_response_expected_(false) {
}
- virtual ~ResourceClientProxy() {
- }
+ ~ResourceClientProxy() override {}
void Initialize(unsigned long resource_id, const GURL& url, int notify_id) {
resource_id_ = resource_id;
}
// PluginResourceClient implementation:
- virtual void WillSendRequest(const GURL& url, int http_status_code) OVERRIDE {
+ void WillSendRequest(const GURL& url, int http_status_code) override {
DCHECK(channel_.get() != NULL);
channel_->Send(new PluginMsg_WillSendRequest(
instance_id_, resource_id_, url, http_status_code));
}
- virtual void DidReceiveResponse(const std::string& mime_type,
- const std::string& headers,
- uint32 expected_length,
- uint32 last_modified,
- bool request_is_seekable) OVERRIDE {
+ void DidReceiveResponse(const std::string& mime_type,
+ const std::string& headers,
+ uint32 expected_length,
+ uint32 last_modified,
+ bool request_is_seekable) override {
DCHECK(channel_.get() != NULL);
PluginMsg_DidReceiveResponseParams params;
params.id = resource_id_;
channel_->Send(new PluginMsg_DidReceiveResponse(instance_id_, params));
}
- virtual void DidReceiveData(const char* buffer,
- int length,
- int data_offset) OVERRIDE {
+ void DidReceiveData(const char* buffer,
+ int length,
+ int data_offset) override {
DCHECK(channel_.get() != NULL);
DCHECK_GT(length, 0);
std::vector<char> data;
data, data_offset));
}
- virtual void DidFinishLoading(unsigned long resource_id) OVERRIDE {
+ void DidFinishLoading(unsigned long resource_id) override {
DCHECK(channel_.get() != NULL);
DCHECK_EQ(resource_id, resource_id_);
channel_->Send(new PluginMsg_DidFinishLoading(instance_id_, resource_id_));
base::MessageLoop::current()->DeleteSoon(FROM_HERE, this);
}
- virtual void DidFail(unsigned long resource_id) OVERRIDE {
+ void DidFail(unsigned long resource_id) override {
DCHECK(channel_.get() != NULL);
DCHECK_EQ(resource_id, resource_id_);
channel_->Send(new PluginMsg_DidFail(instance_id_, resource_id_));
base::MessageLoop::current()->DeleteSoon(FROM_HERE, this);
}
- virtual bool IsMultiByteResponseExpected() OVERRIDE {
+ bool IsMultiByteResponseExpected() override {
return multibyte_response_expected_;
}
- virtual int ResourceId() OVERRIDE {
- return resource_id_;
- }
+ int ResourceId() override { return resource_id_; }
private:
scoped_refptr<PluginChannelHost> channel_;
render_view_->routing_id(),
static_cast<ui::TextInputType>(input_type),
ui::TEXT_INPUT_MODE_DEFAULT,
- true));
+ true, 0));
ViewHostMsg_SelectionBounds_Params bounds_params;
bounds_params.anchor_rect = bounds_params.focus_rect = caret_rect;