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

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

Issue 934693002: Reload favicon from HTTP cache on Ctrl+Refresh (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 19 matching lines...) Expand all
30 class MultiResolutionImageResourceFetcher { 30 class MultiResolutionImageResourceFetcher {
31 public: 31 public:
32 typedef base::Callback<void(MultiResolutionImageResourceFetcher*, 32 typedef base::Callback<void(MultiResolutionImageResourceFetcher*,
33 const std::vector<SkBitmap>&)> Callback; 33 const std::vector<SkBitmap>&)> Callback;
34 34
35 MultiResolutionImageResourceFetcher( 35 MultiResolutionImageResourceFetcher(
36 const GURL& image_url, 36 const GURL& image_url,
37 blink::WebFrame* frame, 37 blink::WebFrame* frame,
38 int id, 38 int id,
39 blink::WebURLRequest::RequestContext request_context, 39 blink::WebURLRequest::RequestContext request_context,
40 blink::WebURLRequest::CachePolicy cache_policy,
40 const Callback& callback); 41 const Callback& callback);
41 42
42 virtual ~MultiResolutionImageResourceFetcher(); 43 virtual ~MultiResolutionImageResourceFetcher();
43 44
44 // URL of the image we're downloading. 45 // URL of the image we're downloading.
45 const GURL& image_url() const { return image_url_; } 46 const GURL& image_url() const { return image_url_; }
46 47
47 // Unique identifier for the request. 48 // Unique identifier for the request.
48 int id() const { return id_; } 49 int id() const { return id_; }
49 50
(...skipping 18 matching lines...) Expand all
68 69
69 // Does the actual download. 70 // Does the actual download.
70 scoped_ptr<ResourceFetcher> fetcher_; 71 scoped_ptr<ResourceFetcher> fetcher_;
71 72
72 DISALLOW_COPY_AND_ASSIGN(MultiResolutionImageResourceFetcher); 73 DISALLOW_COPY_AND_ASSIGN(MultiResolutionImageResourceFetcher);
73 }; 74 };
74 75
75 } // namespace content 76 } // namespace content
76 77
77 #endif // CONTENT_RENDERER_FETCHERS_MULTI_RESOLUTION_IMAGE_RESOURCE_FETCHER_H_ 78 #endif // CONTENT_RENDERER_FETCHERS_MULTI_RESOLUTION_IMAGE_RESOURCE_FETCHER_H_
OLDNEW
« no previous file with comments | « content/public/renderer/resource_fetcher.h ('k') | content/renderer/fetchers/multi_resolution_image_resource_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698