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

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

Issue 13945023: Make URLDataSource::GetSource() const. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: And another one. Created 7 years, 8 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 | Annotate | Revision Log
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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 FAVICON, 62 FAVICON,
63 // Any available icon in the priority of TOUCH_ICON_PRECOMPOSED, TOUCH_ICON, 63 // Any available icon in the priority of TOUCH_ICON_PRECOMPOSED, TOUCH_ICON,
64 // FAVICON, and default favicon. 64 // FAVICON, and default favicon.
65 ANY 65 ANY
66 }; 66 };
67 67
68 // |type| is the type of icon this FaviconSource will provide. 68 // |type| is the type of icon this FaviconSource will provide.
69 FaviconSource(Profile* profile, IconType type); 69 FaviconSource(Profile* profile, IconType type);
70 70
71 // content::URLDataSource implementation. 71 // content::URLDataSource implementation.
72 virtual std::string GetSource() OVERRIDE; 72 virtual std::string GetSource() const OVERRIDE;
73 virtual void StartDataRequest( 73 virtual void StartDataRequest(
74 const std::string& path, 74 const std::string& path,
75 bool is_incognito, 75 bool is_incognito,
76 const content::URLDataSource::GotDataCallback& callback) OVERRIDE; 76 const content::URLDataSource::GotDataCallback& callback) OVERRIDE;
77 virtual std::string GetMimeType(const std::string&) const OVERRIDE; 77 virtual std::string GetMimeType(const std::string&) const OVERRIDE;
78 virtual bool ShouldReplaceExistingSource() const OVERRIDE; 78 virtual bool ShouldReplaceExistingSource() const OVERRIDE;
79 virtual bool ShouldServiceRequest( 79 virtual bool ShouldServiceRequest(
80 const net::URLRequest* request) const OVERRIDE; 80 const net::URLRequest* request) const OVERRIDE;
81 81
82 protected: 82 protected:
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 // database doesn't have a favicon for a webpage. Indexed by IconSize values. 131 // database doesn't have a favicon for a webpage. Indexed by IconSize values.
132 scoped_refptr<base::RefCountedMemory> default_favicons_[NUM_SIZES]; 132 scoped_refptr<base::RefCountedMemory> default_favicons_[NUM_SIZES];
133 133
134 // The history::IconTypes of icon that this FaviconSource handles. 134 // The history::IconTypes of icon that this FaviconSource handles.
135 int icon_types_; 135 int icon_types_;
136 136
137 DISALLOW_COPY_AND_ASSIGN(FaviconSource); 137 DISALLOW_COPY_AND_ASSIGN(FaviconSource);
138 }; 138 };
139 139
140 #endif // CHROME_BROWSER_UI_WEBUI_FAVICON_SOURCE_H_ 140 #endif // CHROME_BROWSER_UI_WEBUI_FAVICON_SOURCE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/extensions/extension_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