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

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

Issue 352913002: Port HistoryService::ScheduleDBTask to CancelableTaskTracker (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix lifetime of base::CancelableTaskTracker for HistoryModelWorker Created 6 years, 5 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
« no previous file with comments | « chrome/browser/history/history_marshaling.h ('k') | chrome/browser/history/history_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/history/history_marshaling.h ('k') | chrome/browser/history/history_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698