| OLD | NEW |
| 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_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_HISTORY_HISTORY_SERVICE_H_ |
| 6 #define CHROME_BROWSER_HISTORY_HISTORY_SERVICE_H_ | 6 #define CHROME_BROWSER_HISTORY_HISTORY_SERVICE_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 616 // HistoryService is being deleted. | 616 // HistoryService is being deleted. |
| 617 void NotifyHistoryServiceBeingDeleted(); | 617 void NotifyHistoryServiceBeingDeleted(); |
| 618 | 618 |
| 619 // Notify all HistoryServiceObservers registered that a keyword search term | 619 // Notify all HistoryServiceObservers registered that a keyword search term |
| 620 // has been updated. |row| contains the URL information for search |term|. | 620 // has been updated. |row| contains the URL information for search |term|. |
| 621 // |keyword_id| associated with a URL and search term. | 621 // |keyword_id| associated with a URL and search term. |
| 622 void NotifyKeywordSearchTermUpdated(const history::URLRow& row, | 622 void NotifyKeywordSearchTermUpdated(const history::URLRow& row, |
| 623 history::KeywordID keyword_id, | 623 history::KeywordID keyword_id, |
| 624 const base::string16& term); | 624 const base::string16& term); |
| 625 | 625 |
| 626 // Notify all HistoryServiceObservers registered that keyword search term is |
| 627 // deleted. |url_id| is the id of the url row. |
| 628 void NotifyKeywordSearchTermDeleted(history::URLID url_id); |
| 629 |
| 626 // Favicon ------------------------------------------------------------------- | 630 // Favicon ------------------------------------------------------------------- |
| 627 | 631 |
| 628 // These favicon methods are exposed to the FaviconService. Instead of calling | 632 // These favicon methods are exposed to the FaviconService. Instead of calling |
| 629 // these methods directly you should call the respective method on the | 633 // these methods directly you should call the respective method on the |
| 630 // FaviconService. | 634 // FaviconService. |
| 631 | 635 |
| 632 // Used by FaviconService to get the favicon bitmaps from the history backend | 636 // Used by FaviconService to get the favicon bitmaps from the history backend |
| 633 // whose edge sizes most closely match |desired_sizes| for |icon_types|. If | 637 // whose edge sizes most closely match |desired_sizes| for |icon_types|. If |
| 634 // |desired_sizes| has a '0' entry, the largest favicon bitmap for | 638 // |desired_sizes| has a '0' entry, the largest favicon bitmap for |
| 635 // |icon_types| is returned. The returned FaviconBitmapResults will have at | 639 // |icon_types| is returned. The returned FaviconBitmapResults will have at |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 913 | 917 |
| 914 history::DeleteDirectiveHandler delete_directive_handler_; | 918 history::DeleteDirectiveHandler delete_directive_handler_; |
| 915 | 919 |
| 916 // All vended weak pointers are invalidated in Cleanup(). | 920 // All vended weak pointers are invalidated in Cleanup(). |
| 917 base::WeakPtrFactory<HistoryService> weak_ptr_factory_; | 921 base::WeakPtrFactory<HistoryService> weak_ptr_factory_; |
| 918 | 922 |
| 919 DISALLOW_COPY_AND_ASSIGN(HistoryService); | 923 DISALLOW_COPY_AND_ASSIGN(HistoryService); |
| 920 }; | 924 }; |
| 921 | 925 |
| 922 #endif // CHROME_BROWSER_HISTORY_HISTORY_SERVICE_H_ | 926 #endif // CHROME_BROWSER_HISTORY_HISTORY_SERVICE_H_ |
| OLD | NEW |