Home | History | Annotate | Download | only in history

Lines Matching refs:history

5 // The history system runs on a background thread so that potentially slow
10 // Main thread History thread
14 // -> SQLite connection to History
16 // -> SQLite connection to Archived History
25 #include "chrome/browser/history/history.h"
35 #include "chrome/browser/history/download_create_info.h"
36 #include "chrome/browser/history/history_backend.h"
37 #include "chrome/browser/history/history_notifications.h"
38 #include "chrome/browser/history/history_types.h"
39 #include "chrome/browser/history/in_memory_database.h"
40 #include "chrome/browser/history/in_memory_history_backend.h"
41 #include "chrome/browser/history/top_sites.h"
57 using history::HistoryBackend;
66 // separate class from the history service so that it can hold a reference to
67 // the history service (otherwise we would have to manually AddRef and
77 // Send to the history service on the main thread.
83 history::InMemoryHistoryBackend* backend) OVERRIDE {
84 // Send the backend to the history service on the main thread.
91 history::HistoryDetails* details) OVERRIDE {
92 // Send the notification on the history thread.
94 Details<history::HistoryDetails> det(details);
99 // Send the notification to the history service on the main thread.
120 const history::StarID HistoryService::kBookmarkBarID = 1;
122 // The history thread is intentionally not a BrowserThread because the
124 // history thread.
172 // The backend's destructor must run on the history thread since it is not
176 // We have a reference to the history backend. There is also an extra
188 // the history thread, ensuring everything works properly.
217 history::URLDatabase* HistoryService::InMemoryDatabase() {
227 history::InMemoryURLIndex* HistoryService::InMemoryIndex() {
266 new history::GetMostRecentKeywordSearchTermsRequest(callback),
278 history::HistoryDBTaskRequest* request = new history::HistoryDBTaskRequest(
291 consumer, new history::QuerySegmentUsageRequest(callback),
305 const history::RedirectList& redirects,
306 history::VisitSource visit_source,
318 const history::RedirectList& redirects,
319 history::VisitSource visit_source,
321 scoped_refptr<history::HistoryAddPageArgs> request(
322 new history::HistoryAddPageArgs(url, time, id_scope, page_id, referrer,
328 void HistoryService::AddPage(const history::HistoryAddPageArgs& add_page_args) {
329 DCHECK(thread_) << "History service being called after cleanup";
332 // large part of history (think iframes for ads) and we never display them in
333 // history UI. We will still add manual subframes, which are ones the user
356 scoped_refptr<history::HistoryAddPageArgs>(
379 history::VisitSource visit_source) {
389 history::URLRow row(url);
396 std::vector<history::URLRow> rows;
404 const std::vector<history::URLRow>& info,
405 history::VisitSource visit_source) {
412 history::URLRow>::const_iterator i = info.begin();
448 new history::GetPageThumbnailRequest(callback), page_url);
453 history::IconType icon_type) {
462 history::IconType icon_type) {
464 request, page_url, icon_url, history::FAVICON);
478 history::IconType icon_type) {
494 const std::vector<history::ImportedFaviconUsage>& favicon_usage) {
509 new history::QueryURLRequest(callback), url, want_visits);
514 // Handle creation of a download by creating an entry in the history service's
521 new history::DownloadCreateRequest(callback), create_info);
524 // Handle queries for a list of all downloads in the history database's
530 new history::DownloadQueryRequest(callback));
570 const history::QueryOptions& options,
574 new history::QueryHistoryRequest(callback),
583 new history::QueryRedirectsRequest(callback), from_url);
591 new history::QueryRedirectsRequest(callback), to_url);
599 new history::GetVisitCountToHostRequest(callback), url);
607 consumer, new history::QueryTopURLsAndRedirectsRequest(callback),
618 new history::QueryMostVisitedURLsRequest(callback),
641 Details<history::URLsDeletedDetails> deleted_details(details);
673 // Create the history backend.
709 // like "about:memory" or "about:histograms" in their history and
717 history::InMemoryHistoryBackend* mem_backend) {
744 new history::ExpireHistoryRequest(callback),
750 history::HistoryDetails* details_deleted) {
753 scoped_ptr<history::HistoryDetails> details(details_deleted);
770 Details<history::HistoryDetails> det(details_deleted);
801 history::TopSites* ts = profile_->GetTopSitesWithoutCreating();
811 history::TopSites* ts = profile_->GetTopSitesWithoutCreating();