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

Side by Side Diff: chrome/browser/ui/webui/fallback_icon_source.h

Issue 2634413002: Faster Reload: Specify AllowCaching = false for some URLDataSources that need it (Closed)
Patch Set: Created 3 years, 11 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 CHROME_BROWSER_UI_WEBUI_FALLBACK_ICON_SOURCE_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_FALLBACK_ICON_SOURCE_H_
6 #define CHROME_BROWSER_UI_WEBUI_FALLBACK_ICON_SOURCE_H_ 6 #define CHROME_BROWSER_UI_WEBUI_FALLBACK_ICON_SOURCE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 59
60 ~FallbackIconSource() override; 60 ~FallbackIconSource() override;
61 61
62 // content::URLDataSource implementation. 62 // content::URLDataSource implementation.
63 std::string GetSource() const override; 63 std::string GetSource() const override;
64 void StartDataRequest( 64 void StartDataRequest(
65 const std::string& path, 65 const std::string& path,
66 const content::ResourceRequestInfo::WebContentsGetter& wc_getter, 66 const content::ResourceRequestInfo::WebContentsGetter& wc_getter,
67 const content::URLDataSource::GotDataCallback& callback) override; 67 const content::URLDataSource::GotDataCallback& callback) override;
68 std::string GetMimeType(const std::string&) const override; 68 std::string GetMimeType(const std::string&) const override;
69 bool AllowCaching() const override;
69 bool ShouldReplaceExistingSource() const override; 70 bool ShouldReplaceExistingSource() const override;
70 bool ShouldServiceRequest(const net::URLRequest* request) const override; 71 bool ShouldServiceRequest(const net::URLRequest* request) const override;
71 72
72 private: 73 private:
73 void SendFallbackIconHelper( 74 void SendFallbackIconHelper(
74 const GURL& url, 75 const GURL& url,
75 int size_in_pixels, 76 int size_in_pixels,
76 const favicon_base::FallbackIconStyle& style, 77 const favicon_base::FallbackIconStyle& style,
77 const content::URLDataSource::GotDataCallback& callback); 78 const content::URLDataSource::GotDataCallback& callback);
78 79
79 // Sends the default fallback icon. 80 // Sends the default fallback icon.
80 void SendDefaultResponse( 81 void SendDefaultResponse(
81 const content::URLDataSource::GotDataCallback& callback); 82 const content::URLDataSource::GotDataCallback& callback);
82 83
83 favicon::FallbackIconService* fallback_icon_service_; 84 favicon::FallbackIconService* fallback_icon_service_;
84 85
85 DISALLOW_COPY_AND_ASSIGN(FallbackIconSource); 86 DISALLOW_COPY_AND_ASSIGN(FallbackIconSource);
86 }; 87 };
87 88
88 #endif // CHROME_BROWSER_UI_WEBUI_FALLBACK_ICON_SOURCE_H_ 89 #endif // CHROME_BROWSER_UI_WEBUI_FALLBACK_ICON_SOURCE_H_
OLDNEW
« no previous file with comments | « chrome/browser/search/thumbnail_source.cc ('k') | chrome/browser/ui/webui/fallback_icon_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698