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 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
439 | 439 |
440 // Bookmarks ----------------------------------------------------------------- | 440 // Bookmarks ----------------------------------------------------------------- |
441 | 441 |
442 // Notification that a URL is no longer bookmarked. | 442 // Notification that a URL is no longer bookmarked. |
443 void URLsNoLongerBookmarked(const std::set<GURL>& urls); | 443 void URLsNoLongerBookmarked(const std::set<GURL>& urls); |
444 | 444 |
445 // Generic Stuff ------------------------------------------------------------- | 445 // Generic Stuff ------------------------------------------------------------- |
446 | 446 |
447 // Schedules a HistoryDBTask for running on the history backend thread. See | 447 // Schedules a HistoryDBTask for running on the history backend thread. See |
448 // HistoryDBTask for details on what this does. | 448 // HistoryDBTask for details on what this does. |
449 virtual void ScheduleDBTask(history::HistoryDBTask* task, | 449 virtual void ScheduleDBTask(scoped_refptr<history::HistoryDBTask> task, |
450 CancelableRequestConsumerBase* consumer); | 450 base::CancelableTaskTracker* tracker); |
451 | 451 |
452 // Adds or removes observers for the VisitDatabase. | 452 // Adds or removes observers for the VisitDatabase. |
453 void AddVisitDatabaseObserver(history::VisitDatabaseObserver* observer); | 453 void AddVisitDatabaseObserver(history::VisitDatabaseObserver* observer); |
454 void RemoveVisitDatabaseObserver(history::VisitDatabaseObserver* observer); | 454 void RemoveVisitDatabaseObserver(history::VisitDatabaseObserver* observer); |
455 | 455 |
456 void NotifyVisitDBObserversOnAddVisit(const history::BriefVisitInfo& info); | 456 void NotifyVisitDBObserversOnAddVisit(const history::BriefVisitInfo& info); |
457 | 457 |
458 // Testing ------------------------------------------------------------------- | 458 // Testing ------------------------------------------------------------------- |
459 | 459 |
460 // Runs |flushed| after bouncing off the history thread. | 460 // Runs |flushed| after bouncing off the history thread. |
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
976 scoped_ptr<history::InMemoryURLIndex> in_memory_url_index_; | 976 scoped_ptr<history::InMemoryURLIndex> in_memory_url_index_; |
977 | 977 |
978 ObserverList<history::VisitDatabaseObserver> visit_database_observers_; | 978 ObserverList<history::VisitDatabaseObserver> visit_database_observers_; |
979 | 979 |
980 history::DeleteDirectiveHandler delete_directive_handler_; | 980 history::DeleteDirectiveHandler delete_directive_handler_; |
981 | 981 |
982 DISALLOW_COPY_AND_ASSIGN(HistoryService); | 982 DISALLOW_COPY_AND_ASSIGN(HistoryService); |
983 }; | 983 }; |
984 | 984 |
985 #endif // CHROME_BROWSER_HISTORY_HISTORY_SERVICE_H_ | 985 #endif // CHROME_BROWSER_HISTORY_HISTORY_SERVICE_H_ |
OLD | NEW |