| 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 #ifndef CONTENT_RENDERER_IMAGE_LOADING_HELPER_H_ | 5 #ifndef CONTENT_RENDERER_IMAGE_LOADING_HELPER_H_ |
| 6 #define CONTENT_RENDERER_IMAGE_LOADING_HELPER_H_ | 6 #define CONTENT_RENDERER_IMAGE_LOADING_HELPER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 // details. | 53 // details. |
| 54 void DidDownloadImage( | 54 void DidDownloadImage( |
| 55 uint32_t max_image_size, | 55 uint32_t max_image_size, |
| 56 MultiResolutionImageResourceFetcher* fetcher, | 56 MultiResolutionImageResourceFetcher* fetcher, |
| 57 const std::vector<SkBitmap>& images); | 57 const std::vector<SkBitmap>& images); |
| 58 | 58 |
| 59 // Decodes a data: URL image or returns an empty image in case of failure. | 59 // Decodes a data: URL image or returns an empty image in case of failure. |
| 60 SkBitmap ImageFromDataUrl(const GURL&) const; | 60 SkBitmap ImageFromDataUrl(const GURL&) const; |
| 61 | 61 |
| 62 // RenderFrameObserver implementation. | 62 // RenderFrameObserver implementation. |
| 63 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 63 virtual bool OnMessageReceived(const IPC::Message& message) override; |
| 64 | 64 |
| 65 typedef ScopedVector<MultiResolutionImageResourceFetcher> | 65 typedef ScopedVector<MultiResolutionImageResourceFetcher> |
| 66 ImageResourceFetcherList; | 66 ImageResourceFetcherList; |
| 67 | 67 |
| 68 // ImageResourceFetchers schedule via DownloadImage. | 68 // ImageResourceFetchers schedule via DownloadImage. |
| 69 ImageResourceFetcherList image_fetchers_; | 69 ImageResourceFetcherList image_fetchers_; |
| 70 | 70 |
| 71 DISALLOW_COPY_AND_ASSIGN(ImageLoadingHelper); | 71 DISALLOW_COPY_AND_ASSIGN(ImageLoadingHelper); |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 } // namespace content | 74 } // namespace content |
| 75 | 75 |
| 76 #endif // CONTENT_RENDERER_IMAGE_LOADING_HELPER_H_ | 76 #endif // CONTENT_RENDERER_IMAGE_LOADING_HELPER_H_ |
| 77 | 77 |
| OLD | NEW |