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

Side by Side Diff: chrome/browser/ui/webui/session_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_SESSION_FAVICON_SOURCE_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_SESSION_FAVICON_SOURCE_H_
6 #define CHROME_BROWSER_UI_WEBUI_SESSION_FAVICON_SOURCE_H_ 6 #define CHROME_BROWSER_UI_WEBUI_SESSION_FAVICON_SOURCE_H_
7 7
8 #include "chrome/browser/ui/webui/favicon_source.h" 8 #include "chrome/browser/ui/webui/favicon_source.h"
9 9
10 class Profile; 10 class Profile;
11 11
12 namespace browser_sync { 12 namespace browser_sync {
13 class SessionModelAssociator; 13 class SessionModelAssociator;
14 } 14 }
15 15
16 // Provides a way to fetch a favicon for a synced tab via a network request. 16 // Provides a way to fetch a favicon for a synced tab via a network request.
17 class SessionFaviconSource : public FaviconSource { 17 class SessionFaviconSource : public FaviconSource {
18 public: 18 public:
19 explicit SessionFaviconSource(Profile* profile); 19 explicit SessionFaviconSource(Profile* profile);
20 20
21 // FaviconSource implementation. 21 // FaviconSource implementation.
22 virtual std::string GetSource() OVERRIDE; 22 virtual std::string GetSource() const OVERRIDE;
23 virtual std::string GetMimeType(const std::string&) const OVERRIDE; 23 virtual std::string GetMimeType(const std::string&) const OVERRIDE;
24 virtual bool ShouldReplaceExistingSource() const OVERRIDE; 24 virtual bool ShouldReplaceExistingSource() const OVERRIDE;
25 virtual bool AllowCaching() const OVERRIDE; 25 virtual bool AllowCaching() const OVERRIDE;
26 26
27 protected: 27 protected:
28 virtual ~SessionFaviconSource(); 28 virtual ~SessionFaviconSource();
29 virtual bool HandleMissingResource(const IconRequest& request) OVERRIDE; 29 virtual bool HandleMissingResource(const IconRequest& request) OVERRIDE;
30 }; 30 };
31 31
32 #endif // CHROME_BROWSER_UI_WEBUI_SESSION_FAVICON_SOURCE_H_ 32 #endif // CHROME_BROWSER_UI_WEBUI_SESSION_FAVICON_SOURCE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/screenshot_source.cc ('k') | chrome/browser/ui/webui/session_favicon_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698