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 |
11 #include "base/memory/scoped_vector.h" | 11 #include "base/memory/scoped_vector.h" |
12 #include "content/public/renderer/render_view_observer.h" | 12 #include "content/public/renderer/render_view_observer.h" |
13 #include "googleurl/src/gurl.h" | 13 #include "url/gurl.h" |
14 | 14 |
15 class SkBitmap; | 15 class SkBitmap; |
16 | 16 |
17 namespace content { | 17 namespace content { |
18 | 18 |
19 class MultiResolutionImageResourceFetcher; | 19 class MultiResolutionImageResourceFetcher; |
20 | 20 |
21 // This class deals with image downloading. | 21 // This class deals with image downloading. |
22 // One instance of ImageLoadingHelper is owned by RenderView. | 22 // One instance of ImageLoadingHelper is owned by RenderView. |
23 class ImageLoadingHelper : public RenderViewObserver { | 23 class ImageLoadingHelper : public RenderViewObserver { |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 // ImageResourceFetchers schedule via DownloadImage. | 69 // ImageResourceFetchers schedule via DownloadImage. |
70 ImageResourceFetcherList image_fetchers_; | 70 ImageResourceFetcherList image_fetchers_; |
71 | 71 |
72 DISALLOW_COPY_AND_ASSIGN(ImageLoadingHelper); | 72 DISALLOW_COPY_AND_ASSIGN(ImageLoadingHelper); |
73 }; | 73 }; |
74 | 74 |
75 } // namespace content | 75 } // namespace content |
76 | 76 |
77 #endif // CONTENT_RENDERER_IMAGE_LOADING_HELPER_H_ | 77 #endif // CONTENT_RENDERER_IMAGE_LOADING_HELPER_H_ |
78 | 78 |
OLD | NEW |