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

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

Issue 14039004: Add int params to URLDataSource::StartDataRequest(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: It's not called a renderder. 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
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() const 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 int render_process_id,
76 int render_view_id,
76 const content::URLDataSource::GotDataCallback& callback) OVERRIDE; 77 const content::URLDataSource::GotDataCallback& callback) OVERRIDE;
77 virtual std::string GetMimeType(const std::string&) const OVERRIDE; 78 virtual std::string GetMimeType(const std::string&) const OVERRIDE;
78 virtual bool ShouldReplaceExistingSource() const OVERRIDE; 79 virtual bool ShouldReplaceExistingSource() const OVERRIDE;
79 virtual bool ShouldServiceRequest( 80 virtual bool ShouldServiceRequest(
80 const net::URLRequest* request) const OVERRIDE; 81 const net::URLRequest* request) const OVERRIDE;
81 82
82 protected: 83 protected:
83 struct IconRequest { 84 struct IconRequest {
84 IconRequest(); 85 IconRequest();
85 IconRequest(const content::URLDataSource::GotDataCallback& cb, 86 IconRequest(const content::URLDataSource::GotDataCallback& cb,
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 // database doesn't have a favicon for a webpage. Indexed by IconSize values. 132 // database doesn't have a favicon for a webpage. Indexed by IconSize values.
132 scoped_refptr<base::RefCountedMemory> default_favicons_[NUM_SIZES]; 133 scoped_refptr<base::RefCountedMemory> default_favicons_[NUM_SIZES];
133 134
134 // The history::IconTypes of icon that this FaviconSource handles. 135 // The history::IconTypes of icon that this FaviconSource handles.
135 int icon_types_; 136 int icon_types_;
136 137
137 DISALLOW_COPY_AND_ASSIGN(FaviconSource); 138 DISALLOW_COPY_AND_ASSIGN(FaviconSource);
138 }; 139 };
139 140
140 #endif // CHROME_BROWSER_UI_WEBUI_FAVICON_SOURCE_H_ 141 #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