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

Side by Side Diff: chrome/browser/ui/webui/favicon_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 (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 CHROME_BROWSER_UI_WEBUI_FAVICON_SOURCE_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_FAVICON_SOURCE_H_
6 #define CHROME_BROWSER_UI_WEBUI_FAVICON_SOURCE_H_ 6 #define CHROME_BROWSER_UI_WEBUI_FAVICON_SOURCE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 ~FaviconSource() override; 71 ~FaviconSource() override;
72 72
73 // content::URLDataSource implementation. 73 // content::URLDataSource implementation.
74 std::string GetSource() const override; 74 std::string GetSource() const override;
75 void StartDataRequest( 75 void StartDataRequest(
76 const std::string& path, 76 const std::string& path,
77 const content::ResourceRequestInfo::WebContentsGetter& wc_getter, 77 const content::ResourceRequestInfo::WebContentsGetter& wc_getter,
78 const content::URLDataSource::GotDataCallback& callback) override; 78 const content::URLDataSource::GotDataCallback& callback) override;
79 std::string GetMimeType(const std::string&) const override; 79 std::string GetMimeType(const std::string&) const override;
80 bool AllowCaching() const override;
80 bool ShouldReplaceExistingSource() const override; 81 bool ShouldReplaceExistingSource() const override;
81 bool ShouldServiceRequest(const net::URLRequest* request) const override; 82 bool ShouldServiceRequest(const net::URLRequest* request) const override;
82 83
83 protected: 84 protected:
84 struct IconRequest { 85 struct IconRequest {
85 IconRequest(); 86 IconRequest();
86 IconRequest(const content::URLDataSource::GotDataCallback& cb, 87 IconRequest(const content::URLDataSource::GotDataCallback& cb,
87 const GURL& path, 88 const GURL& path,
88 int size, 89 int size,
89 float scale); 90 float scale);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 128
128 base::CancelableTaskTracker cancelable_task_tracker_; 129 base::CancelableTaskTracker cancelable_task_tracker_;
129 130
130 // The favicon_base::IconTypes of icon that this FaviconSource handles. 131 // The favicon_base::IconTypes of icon that this FaviconSource handles.
131 int icon_types_; 132 int icon_types_;
132 133
133 DISALLOW_COPY_AND_ASSIGN(FaviconSource); 134 DISALLOW_COPY_AND_ASSIGN(FaviconSource);
134 }; 135 };
135 136
136 #endif // CHROME_BROWSER_UI_WEBUI_FAVICON_SOURCE_H_ 137 #endif // CHROME_BROWSER_UI_WEBUI_FAVICON_SOURCE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/fallback_icon_source.cc ('k') | chrome/browser/ui/webui/favicon_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698