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.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/common/url_constants.h" | 11 #include "content/public/common/url_constants.h" |
12 #include "content/public/renderer/render_view.h" | 12 #include "content/public/renderer/render_view.h" |
13 #include "content/renderer/fetchers/multi_resolution_image_resource_fetcher.h" | 13 #include "content/renderer/fetchers/multi_resolution_image_resource_fetcher.h" |
14 #include "net/base/data_url.h" | 14 #include "net/base/data_url.h" |
15 #include "skia/ext/image_operations.h" | 15 #include "skia/ext/image_operations.h" |
16 #include "third_party/WebKit/public/platform/WebURLRequest.h" | 16 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
17 #include "third_party/WebKit/public/platform/WebVector.h" | 17 #include "third_party/WebKit/public/platform/WebVector.h" |
18 #include "third_party/WebKit/public/web/WebFrame.h" | 18 #include "third_party/WebKit/public/web/WebFrame.h" |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 bool handled = true; | 183 bool handled = true; |
184 IPC_BEGIN_MESSAGE_MAP(ImageLoadingHelper, message) | 184 IPC_BEGIN_MESSAGE_MAP(ImageLoadingHelper, message) |
185 IPC_MESSAGE_HANDLER(ImageMsg_DownloadImage, OnDownloadImage) | 185 IPC_MESSAGE_HANDLER(ImageMsg_DownloadImage, OnDownloadImage) |
186 IPC_MESSAGE_UNHANDLED(handled = false) | 186 IPC_MESSAGE_UNHANDLED(handled = false) |
187 IPC_END_MESSAGE_MAP() | 187 IPC_END_MESSAGE_MAP() |
188 | 188 |
189 return handled; | 189 return handled; |
190 } | 190 } |
191 | 191 |
192 } // namespace content | 192 } // namespace content |
OLD | NEW |