| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_FETCHERS_MULTI_RESOLUTION_IMAGE_RESOURCE_FETCHER_H_ | 5 #ifndef CONTENT_RENDERER_FETCHERS_MULTI_RESOLUTION_IMAGE_RESOURCE_FETCHER_H_ |
| 6 #define CONTENT_RENDERER_FETCHERS_MULTI_RESOLUTION_IMAGE_RESOURCE_FETCHER_H_ | 6 #define CONTENT_RENDERER_FETCHERS_MULTI_RESOLUTION_IMAGE_RESOURCE_FETCHER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/callback.h" | 12 #include "base/callback.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "third_party/WebKit/public/platform/WebCachePolicy.h" |
| 14 #include "third_party/WebKit/public/platform/WebURLRequest.h" | 15 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
| 15 #include "url/gurl.h" | 16 #include "url/gurl.h" |
| 16 | 17 |
| 17 class SkBitmap; | 18 class SkBitmap; |
| 18 | 19 |
| 19 namespace blink { | 20 namespace blink { |
| 20 class WebFrame; | 21 class WebFrame; |
| 21 class WebURLResponse; | 22 class WebURLResponse; |
| 22 enum class WebCachePolicy; | |
| 23 } | 23 } |
| 24 | 24 |
| 25 namespace content { | 25 namespace content { |
| 26 | 26 |
| 27 class AssociatedResourceFetcher; | 27 class AssociatedResourceFetcher; |
| 28 | 28 |
| 29 // A resource fetcher that returns all (differently-sized) frames in | 29 // A resource fetcher that returns all (differently-sized) frames in |
| 30 // an image. Useful for favicons. | 30 // an image. Useful for favicons. |
| 31 class MultiResolutionImageResourceFetcher { | 31 class MultiResolutionImageResourceFetcher { |
| 32 public: | 32 public: |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 | 73 |
| 74 // Does the actual download. | 74 // Does the actual download. |
| 75 std::unique_ptr<AssociatedResourceFetcher> fetcher_; | 75 std::unique_ptr<AssociatedResourceFetcher> fetcher_; |
| 76 | 76 |
| 77 DISALLOW_COPY_AND_ASSIGN(MultiResolutionImageResourceFetcher); | 77 DISALLOW_COPY_AND_ASSIGN(MultiResolutionImageResourceFetcher); |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 } // namespace content | 80 } // namespace content |
| 81 | 81 |
| 82 #endif // CONTENT_RENDERER_FETCHERS_MULTI_RESOLUTION_IMAGE_RESOURCE_FETCHER_H_ | 82 #endif // CONTENT_RENDERER_FETCHERS_MULTI_RESOLUTION_IMAGE_RESOURCE_FETCHER_H_ |
| OLD | NEW |