Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(887)

Side by Side Diff: content/renderer/fetchers/multi_resolution_image_resource_fetcher.h

Issue 2920663002: Class/struct layout optimization for blink Resource related classes (Closed)
Patch Set: Rebase Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « content/renderer/fetchers/associated_resource_fetcher_impl.h ('k') | content/renderer/internal_document_state_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698