OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/renderer/image_loading_helper.h" | 5 #include "content/renderer/image_loading_helper.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "content/child/image_decoder.h" | 9 #include "content/child/image_decoder.h" |
10 #include "content/common/image_messages.h" | 10 #include "content/common/image_messages.h" |
11 #include "content/public/renderer/render_frame.h" | 11 #include "content/public/renderer/render_frame.h" |
12 #include "content/renderer/fetchers/multi_resolution_image_resource_fetcher.h" | 12 #include "content/renderer/fetchers/multi_resolution_image_resource_fetcher.h" |
13 #include "net/base/data_url.h" | 13 #include "net/base/data_url.h" |
14 #include "skia/ext/image_operations.h" | 14 #include "skia/ext/image_operations.h" |
15 #include "third_party/WebKit/public/platform/WebURLRequest.h" | 15 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
16 #include "third_party/WebKit/public/platform/WebVector.h" | 16 #include "third_party/WebKit/public/platform/WebVector.h" |
17 #include "third_party/WebKit/public/web/WebLocalFrame.h" | 17 #include "third_party/WebKit/public/web/WebLocalFrame.h" |
18 #include "third_party/WebKit/public/web/WebView.h" | 18 #include "third_party/WebKit/public/web/WebView.h" |
19 #include "ui/gfx/favicon_size.h" | 19 #include "ui/gfx/favicon_size.h" |
20 #include "ui/gfx/size.h" | 20 #include "ui/gfx/geometry/size.h" |
21 #include "ui/gfx/skbitmap_operations.h" | 21 #include "ui/gfx/skbitmap_operations.h" |
22 #include "url/url_constants.h" | 22 #include "url/url_constants.h" |
23 | 23 |
24 using blink::WebFrame; | 24 using blink::WebFrame; |
25 using blink::WebVector; | 25 using blink::WebVector; |
26 using blink::WebURL; | 26 using blink::WebURL; |
27 using blink::WebURLRequest; | 27 using blink::WebURLRequest; |
28 | 28 |
29 namespace { | 29 namespace { |
30 | 30 |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 bool handled = true; | 194 bool handled = true; |
195 IPC_BEGIN_MESSAGE_MAP(ImageLoadingHelper, message) | 195 IPC_BEGIN_MESSAGE_MAP(ImageLoadingHelper, message) |
196 IPC_MESSAGE_HANDLER(ImageMsg_DownloadImage, OnDownloadImage) | 196 IPC_MESSAGE_HANDLER(ImageMsg_DownloadImage, OnDownloadImage) |
197 IPC_MESSAGE_UNHANDLED(handled = false) | 197 IPC_MESSAGE_UNHANDLED(handled = false) |
198 IPC_END_MESSAGE_MAP() | 198 IPC_END_MESSAGE_MAP() |
199 | 199 |
200 return handled; | 200 return handled; |
201 } | 201 } |
202 | 202 |
203 } // namespace content | 203 } // namespace content |
OLD | NEW |