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

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

Issue 10407066: NTP: Prevent tab sync icons from being cached. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/ui/webui/favicon_source.h" 9 #include "chrome/browser/ui/webui/favicon_source.h"
10 10
11 class Profile; 11 class Profile;
12 12
13 namespace browser_sync { 13 namespace browser_sync {
14 class SessionModelAssociator; 14 class SessionModelAssociator;
15 } 15 }
16 16
17 // Provides a way to fetch a favicon for a synced tab via a network request. 17 // Provides a way to fetch a favicon for a synced tab via a network request.
18 class SessionFaviconSource : public FaviconSource { 18 class SessionFaviconSource : public FaviconSource {
19 public: 19 public:
20 explicit SessionFaviconSource(Profile* profile); 20 explicit SessionFaviconSource(Profile* profile);
21 21
22 // Called when the network layer has requested a resource underneath 22 // Called when the network layer has requested a resource underneath
23 // the path we registered. 23 // the path we registered.
24 virtual void StartDataRequest(const std::string& path, 24 virtual void StartDataRequest(const std::string& path,
James Hawkins 2012/05/21 15:58:50 nit: // FaviconSource implementation.
Patrick Dubroy 2012/05/21 16:26:28 Done.
25 bool is_incognito, 25 bool is_incognito,
26 int request_id) OVERRIDE; 26 int request_id) OVERRIDE;
27 27
James Hawkins 2012/05/21 15:58:50 nit: No blank lines for Interface implementation b
Patrick Dubroy 2012/05/21 16:26:28 Done.
28 virtual std::string GetMimeType(const std::string&) const OVERRIDE; 28 virtual std::string GetMimeType(const std::string&) const OVERRIDE;
29 29
30 virtual bool ShouldReplaceExistingSource() const OVERRIDE; 30 virtual bool ShouldReplaceExistingSource() const OVERRIDE;
31 31
32 virtual bool AllowCaching() const OVERRIDE;
33
32 protected: 34 protected:
33 virtual ~SessionFaviconSource(); 35 virtual ~SessionFaviconSource();
34 }; 36 };
35 37
36 #endif // CHROME_BROWSER_UI_WEBUI_SESSION_FAVICON_SOURCE_H_ 38 #endif // CHROME_BROWSER_UI_WEBUI_SESSION_FAVICON_SOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698