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

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: removed the callback6 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) 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_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 625 matching lines...) Expand 10 before | Expand all | Expand 10 after
636 void OnDBLoaded(); 636 void OnDBLoaded();
637 637
638 // FavIcon ------------------------------------------------------------------- 638 // FavIcon -------------------------------------------------------------------
639 639
640 // These favicon methods are exposed to the FaviconService. Instead of calling 640 // These favicon methods are exposed to the FaviconService. Instead of calling
641 // these methods directly you should call the respective method on the 641 // these methods directly you should call the respective method on the
642 // FaviconService. 642 // FaviconService.
643 643
644 // Used by the FaviconService to get a favicon from the history backend. 644 // Used by the FaviconService to get a favicon from the history backend.
645 void GetFavicon(FaviconService::GetFaviconRequest* request, 645 void GetFavicon(FaviconService::GetFaviconRequest* request,
646 const GURL& icon_url); 646 const GURL& icon_url, history::IconType icon_type);
sky 2011/03/10 17:54:44 Once you wrap a function declaration (or definitio
647 647
648 // 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
649 // backend. 649 // backend.
650 void UpdateFaviconMappingAndFetch(FaviconService::GetFaviconRequest* request, 650 void UpdateFaviconMappingAndFetch(FaviconService::GetFaviconRequest* request,
651 const GURL& page_url, 651 const GURL& page_url,
652 const GURL& icon_url); 652 const GURL& icon_url,
653 history::IconType icon_type);
653 654
654 // 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.
655 void GetFaviconForURL(FaviconService::GetFaviconRequest* request, 656 void GetFaviconForURL(FaviconService::GetFaviconRequest* request,
656 const GURL& page_url); 657 const GURL& page_url,
658 int icon_type);
sky 2011/03/10 17:54:44 icon_types
michaelbai 2011/03/11 01:11:28 Done.
657 659
658 // 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
659 // of date. 661 // of date.
660 void SetFaviconOutOfDateForPage(const GURL& page_url); 662 void SetFaviconOutOfDateForPage(const GURL& page_url);
661 663
662 // 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
663 // 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
664 // discarded. Existing favicons will not be overwritten. 666 // discarded. Existing favicons will not be overwritten.
665 void SetImportedFavicons( 667 void SetImportedFavicons(
666 const std::vector<history::ImportedFavIconUsage>& favicon_usage); 668 const std::vector<history::ImportedFavIconUsage>& favicon_usage);
667 669
668 // 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
669 // backend. 671 // backend.
670 void SetFavicon(const GURL& page_url, 672 void SetFavicon(const GURL& page_url,
671 const GURL& icon_url, 673 const GURL& icon_url,
672 const std::vector<unsigned char>& image_data); 674 const std::vector<unsigned char>& image_data,
675 history::IconType icon_types);
sky 2011/03/10 17:54:44 icon_type
michaelbai 2011/03/11 01:11:28 Done.
673 676
674 677
675 // 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
676 // database is loaded to make it available. 679 // database is loaded to make it available.
677 void SetInMemoryBackend(history::InMemoryHistoryBackend* mem_backend); 680 void SetInMemoryBackend(history::InMemoryHistoryBackend* mem_backend);
678 681
679 // 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.
680 // |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.
681 void NotifyProfileError(int message_id); 684 void NotifyProfileError(int message_id);
682 685
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
863 BookmarkService* bookmark_service_; 866 BookmarkService* bookmark_service_;
864 bool no_db_; 867 bool no_db_;
865 868
866 // True if needs top site migration. 869 // True if needs top site migration.
867 bool needs_top_sites_migration_; 870 bool needs_top_sites_migration_;
868 871
869 DISALLOW_COPY_AND_ASSIGN(HistoryService); 872 DISALLOW_COPY_AND_ASSIGN(HistoryService);
870 }; 873 };
871 874
872 #endif // CHROME_BROWSER_HISTORY_HISTORY_H_ 875 #endif // CHROME_BROWSER_HISTORY_HISTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698