summaryrefslogtreecommitdiffstats
path: root/webkit/glue/image_resource_fetcher.cc
diff options
context:
space:
mode:
authorKristian Monsen <kristianm@google.com>2011-06-28 21:49:31 +0100
committerKristian Monsen <kristianm@google.com>2011-07-08 17:55:00 +0100
commitddb351dbec246cf1fab5ec20d2d5520909041de1 (patch)
tree158e3fb57bdcac07c7f1e767fde3c70687c9fbb1 /webkit/glue/image_resource_fetcher.cc
parent6b92e04f5f151c896e3088e86f70db7081009308 (diff)
downloadexternal_chromium-ddb351dbec246cf1fab5ec20d2d5520909041de1.zip
external_chromium-ddb351dbec246cf1fab5ec20d2d5520909041de1.tar.gz
external_chromium-ddb351dbec246cf1fab5ec20d2d5520909041de1.tar.bz2
Merge Chromium at r12.0.742.93: Initial merge by git
Change-Id: Ic5ee2fec31358bbee305f7e915442377bfa6cda6
Diffstat (limited to 'webkit/glue/image_resource_fetcher.cc')
-rw-r--r--webkit/glue/image_resource_fetcher.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/webkit/glue/image_resource_fetcher.cc b/webkit/glue/image_resource_fetcher.cc
index 65d80bd..6a37a34 100644
--- a/webkit/glue/image_resource_fetcher.cc
+++ b/webkit/glue/image_resource_fetcher.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -11,6 +11,8 @@
#include "third_party/skia/include/core/SkBitmap.h"
using WebKit::WebFrame;
+using WebKit::WebURLRequest;
+using WebKit::WebURLResponse;
namespace webkit_glue {
@@ -19,13 +21,14 @@ ImageResourceFetcher::ImageResourceFetcher(
WebFrame* frame,
int id,
int image_size,
+ WebURLRequest::TargetType target_type,
Callback* callback)
: callback_(callback),
id_(id),
image_url_(image_url),
image_size_(image_size) {
fetcher_.reset(new ResourceFetcher(
- image_url, frame,
+ image_url, frame, target_type,
NewCallback(this, &ImageResourceFetcher::OnURLFetchComplete)));
}
@@ -35,7 +38,7 @@ ImageResourceFetcher::~ImageResourceFetcher() {
}
void ImageResourceFetcher::OnURLFetchComplete(
- const WebKit::WebURLResponse& response,
+ const WebURLResponse& response,
const std::string& data) {
SkBitmap bitmap;
if (!response.isNull() && response.httpStatusCode() == 200) {