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

Side by Side Diff: chrome/browser/dom_ui/dom_ui_favicon_source.h

Issue 3236001: Add the collapsed 'miniview' to the apps and most visisted sections. (Closed)
Patch Set: more unnecessary changes Created 10 years, 4 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_DOM_UI_DOM_UI_FAVICON_SOURCE_H_ 5 #ifndef CHROME_BROWSER_DOM_UI_DOM_UI_FAVICON_SOURCE_H_
6 #define CHROME_BROWSER_DOM_UI_DOM_UI_FAVICON_SOURCE_H_ 6 #define CHROME_BROWSER_DOM_UI_DOM_UI_FAVICON_SOURCE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 20 matching lines...) Expand all
31 virtual std::string GetMimeType(const std::string&) const; 31 virtual std::string GetMimeType(const std::string&) const;
32 32
33 // Called when favicon data is available from the history backend. 33 // Called when favicon data is available from the history backend.
34 void OnFavIconDataAvailable(FaviconService::Handle request_handle, 34 void OnFavIconDataAvailable(FaviconService::Handle request_handle,
35 bool know_favicon, 35 bool know_favicon,
36 scoped_refptr<RefCountedMemory> data, 36 scoped_refptr<RefCountedMemory> data,
37 bool expired, 37 bool expired,
38 GURL url); 38 GURL url);
39 39
40 private: 40 private:
41 // Sends the default favicon.
42 void SendDefaultResponse(int request_id);
43
41 virtual ~DOMUIFavIconSource(); 44 virtual ~DOMUIFavIconSource();
42 45
43 Profile* profile_; 46 Profile* profile_;
44 CancelableRequestConsumerT<int, 0> cancelable_consumer_; 47 CancelableRequestConsumerT<int, 0> cancelable_consumer_;
45 48
46 // Raw PNG representation of the favicon to show when the favicon 49 // Raw PNG representation of the favicon to show when the favicon
47 // database doesn't have a favicon for a webpage. 50 // database doesn't have a favicon for a webpage.
48 scoped_refptr<RefCountedMemory> default_favicon_; 51 scoped_refptr<RefCountedMemory> default_favicon_;
49 52
50 DISALLOW_COPY_AND_ASSIGN(DOMUIFavIconSource); 53 DISALLOW_COPY_AND_ASSIGN(DOMUIFavIconSource);
51 }; 54 };
52 55
53 #endif // CHROME_BROWSER_DOM_UI_DOM_UI_FAVICON_SOURCE_H_ 56 #endif // CHROME_BROWSER_DOM_UI_DOM_UI_FAVICON_SOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698