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

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

Issue 6651014: Applied the IconType. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: sync Created 9 years, 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_H_ 5 #ifndef CHROME_BROWSER_HISTORY_HISTORY_H_
6 #define CHROME_BROWSER_HISTORY_HISTORY_H_ 6 #define CHROME_BROWSER_HISTORY_HISTORY_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
(...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after
635 void OnDBLoaded(); 635 void OnDBLoaded();
636 636
637 // Favicon ------------------------------------------------------------------- 637 // Favicon -------------------------------------------------------------------
638 638
639 // These favicon methods are exposed to the FaviconService. Instead of calling 639 // These favicon methods are exposed to the FaviconService. Instead of calling
640 // these methods directly you should call the respective method on the 640 // these methods directly you should call the respective method on the
641 // FaviconService. 641 // FaviconService.
642 642
643 // Used by the FaviconService to get a favicon from the history backend. 643 // Used by the FaviconService to get a favicon from the history backend.
644 void GetFavicon(FaviconService::GetFaviconRequest* request, 644 void GetFavicon(FaviconService::GetFaviconRequest* request,
645 const GURL& icon_url); 645 const GURL& icon_url,
646 history::IconType icon_type);
646 647
647 // Used by the FaviconService to update the favicon mappings on the history 648 // Used by the FaviconService to update the favicon mappings on the history
648 // backend. 649 // backend.
649 void UpdateFaviconMappingAndFetch(FaviconService::GetFaviconRequest* request, 650 void UpdateFaviconMappingAndFetch(FaviconService::GetFaviconRequest* request,
650 const GURL& page_url, 651 const GURL& page_url,
651 const GURL& icon_url); 652 const GURL& icon_url,
653 history::IconType icon_type);
652 654
653 // Used by the FaviconService to get a favicon from the history backend. 655 // Used by the FaviconService to get a favicon from the history backend.
654 void GetFaviconForURL(FaviconService::GetFaviconRequest* request, 656 void GetFaviconForURL(FaviconService::GetFaviconRequest* request,
655 const GURL& page_url); 657 const GURL& page_url,
658 int icon_types);
656 659
657 // Used by the FaviconService to mark the favicon for the page as being out 660 // Used by the FaviconService to mark the favicon for the page as being out
658 // of date. 661 // of date.
659 void SetFaviconOutOfDateForPage(const GURL& page_url); 662 void SetFaviconOutOfDateForPage(const GURL& page_url);
660 663
661 // Used by the FaviconService for importing many favicons for many pages at 664 // Used by the FaviconService for importing many favicons for many pages at
662 // once. The pages must exist, any favicon sets for unknown pages will be 665 // once. The pages must exist, any favicon sets for unknown pages will be
663 // discarded. Existing favicons will not be overwritten. 666 // discarded. Existing favicons will not be overwritten.
664 void SetImportedFavicons( 667 void SetImportedFavicons(
665 const std::vector<history::ImportedFaviconUsage>& favicon_usage); 668 const std::vector<history::ImportedFaviconUsage>& favicon_usage);
666 669
667 // Used by the FaviconService to set the favicon for a page on the history 670 // Used by the FaviconService to set the favicon for a page on the history
668 // backend. 671 // backend.
669 void SetFavicon(const GURL& page_url, 672 void SetFavicon(const GURL& page_url,
670 const GURL& icon_url, 673 const GURL& icon_url,
671 const std::vector<unsigned char>& image_data); 674 const std::vector<unsigned char>& image_data,
675 history::IconType icon_type);
672 676
673 677
674 // Sets the in-memory URL database. This is called by the backend once the 678 // Sets the in-memory URL database. This is called by the backend once the
675 // database is loaded to make it available. 679 // database is loaded to make it available.
676 void SetInMemoryBackend(history::InMemoryHistoryBackend* mem_backend); 680 void SetInMemoryBackend(history::InMemoryHistoryBackend* mem_backend);
677 681
678 // Called by our BackendDelegate when there is a problem reading the database. 682 // Called by our BackendDelegate when there is a problem reading the database.
679 // |message_id| is the relevant message in the string table to display. 683 // |message_id| is the relevant message in the string table to display.
680 void NotifyProfileError(int message_id); 684 void NotifyProfileError(int message_id);
681 685
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
862 BookmarkService* bookmark_service_; 866 BookmarkService* bookmark_service_;
863 bool no_db_; 867 bool no_db_;
864 868
865 // True if needs top site migration. 869 // True if needs top site migration.
866 bool needs_top_sites_migration_; 870 bool needs_top_sites_migration_;
867 871
868 DISALLOW_COPY_AND_ASSIGN(HistoryService); 872 DISALLOW_COPY_AND_ASSIGN(HistoryService);
869 }; 873 };
870 874
871 #endif // CHROME_BROWSER_HISTORY_HISTORY_H_ 875 #endif // CHROME_BROWSER_HISTORY_HISTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698