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.h" |
9 #include "content/common/image_messages.h" | 9 #include "content/common/image_messages.h" |
10 #include "content/public/common/url_constants.h" | 10 #include "content/public/common/url_constants.h" |
11 #include "content/public/renderer/render_view.h" | 11 #include "content/public/renderer/render_view.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 "third_party/WebKit/Source/Platform/chromium/public/WebURLRequest.h" | 14 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
15 #include "third_party/WebKit/Source/Platform/chromium/public/WebVector.h" | 15 #include "third_party/WebKit/public/platform/WebVector.h" |
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
18 #include "ui/gfx/favicon_size.h" | 18 #include "ui/gfx/favicon_size.h" |
19 #include "ui/gfx/size.h" | 19 #include "ui/gfx/size.h" |
20 #include "ui/gfx/skbitmap_operations.h" | 20 #include "ui/gfx/skbitmap_operations.h" |
21 #include "webkit/glue/image_decoder.h" | 21 #include "webkit/glue/image_decoder.h" |
22 #include "webkit/glue/webkit_glue.h" | 22 #include "webkit/glue/webkit_glue.h" |
23 | 23 |
24 using WebKit::WebFrame; | 24 using WebKit::WebFrame; |
25 using WebKit::WebVector; | 25 using WebKit::WebVector; |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 IPC_BEGIN_MESSAGE_MAP(ImageLoadingHelper, message) | 119 IPC_BEGIN_MESSAGE_MAP(ImageLoadingHelper, message) |
120 IPC_MESSAGE_HANDLER(ImageMsg_DownloadImage, OnDownloadImage) | 120 IPC_MESSAGE_HANDLER(ImageMsg_DownloadImage, OnDownloadImage) |
121 IPC_MESSAGE_UNHANDLED(handled = false) | 121 IPC_MESSAGE_UNHANDLED(handled = false) |
122 IPC_END_MESSAGE_MAP() | 122 IPC_END_MESSAGE_MAP() |
123 | 123 |
124 return handled; | 124 return handled; |
125 } | 125 } |
126 | 126 |
127 } // namespace content | 127 } // namespace content |
128 | 128 |
OLD | NEW |