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

Side by Side Diff: chrome/browser/history/history_backend.h

Issue 10870022: Change FaviconData to be able to return data for multiple bitmaps for same icon URL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | 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_HISTORY_HISTORY_BACKEND_H_ 5 #ifndef CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_
6 #define CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ 6 #define CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_
7 7
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after
644 bool ClearAllMainHistory(const URLRows& kept_urls); 644 bool ClearAllMainHistory(const URLRows& kept_urls);
645 645
646 // Returns the BookmarkService, blocking until it is loaded. This may return 646 // Returns the BookmarkService, blocking until it is loaded. This may return
647 // NULL during testing. 647 // NULL during testing.
648 BookmarkService* GetBookmarkService(); 648 BookmarkService* GetBookmarkService();
649 649
650 // If there is a favicon for |page_url| and one of the types in |icon_types|, 650 // If there is a favicon for |page_url| and one of the types in |icon_types|,
651 // |favicon| is set appropriately and true is returned. 651 // |favicon| is set appropriately and true is returned.
652 bool GetFaviconFromDB(const GURL& page_url, 652 bool GetFaviconFromDB(const GURL& page_url,
653 int icon_types, 653 int icon_types,
654 FaviconData* favicon); 654 FaviconData* favicon_data);
655 655
656 // Get favicon by the given |favicon_id|, the |favicon| is set appropriately 656 // Get favicon by the given |favicon_id|, the |favicon| is set appropriately
657 // and true if returned on success, otherwise false is returned. 657 // and true if returned on success, otherwise false is returned.
658 bool GetFaviconFromDB(FaviconID favicon_id, FaviconData* favicon); 658 bool GetFaviconFromDB(FaviconID favicon_id, FaviconData* favicon_data);
659 659
660 // Notify any observers of an addition to the visit database. 660 // Notify any observers of an addition to the visit database.
661 void NotifyVisitObservers(const VisitRow& visit); 661 void NotifyVisitObservers(const VisitRow& visit);
662 662
663 // Data ---------------------------------------------------------------------- 663 // Data ----------------------------------------------------------------------
664 664
665 // Delegate. See the class definition above for more information. This will 665 // Delegate. See the class definition above for more information. This will
666 // be NULL before Init is called and after Cleanup, but is guaranteed 666 // be NULL before Init is called and after Cleanup, but is guaranteed
667 // non-NULL in between. 667 // non-NULL in between.
668 scoped_ptr<Delegate> delegate_; 668 scoped_ptr<Delegate> delegate_;
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
755 // Used to provide the Android ContentProvider APIs. 755 // Used to provide the Android ContentProvider APIs.
756 scoped_ptr<AndroidProviderBackend> android_provider_backend_; 756 scoped_ptr<AndroidProviderBackend> android_provider_backend_;
757 #endif 757 #endif
758 758
759 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); 759 DISALLOW_COPY_AND_ASSIGN(HistoryBackend);
760 }; 760 };
761 761
762 } // namespace history 762 } // namespace history
763 763
764 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ 764 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698