Lines Matching refs:history

5 // The history system runs on a background thread so that potentially slow
19 #include "chrome/browser/history/history_service.h"
35 #include "chrome/browser/history/download_row.h"
36 #include "chrome/browser/history/history_backend.h"
37 #include "chrome/browser/history/history_notifications.h"
38 #include "chrome/browser/history/in_memory_history_backend.h"
39 #include "chrome/browser/history/in_memory_url_index.h"
40 #include "chrome/browser/history/top_sites.h"
41 #include "chrome/browser/history/visit_database.h"
42 #include "chrome/browser/history/visit_filter.h"
43 #include "chrome/browser/history/web_history_service.h"
44 #include "chrome/browser/history/web_history_service_factory.h"
52 #include "components/history/core/browser/history_client.h"
53 #include "components/history/core/browser/history_types.h"
54 #include "components/history/core/browser/in_memory_database.h"
55 #include "components/history/core/browser/keyword_search_term.h"
56 #include "components/history/core/common/thumbnail_score.h"
65 using history::HistoryBackend;
66 using history::KeywordID;
85 const history::QueryURLResult* result) {
91 const history::VisibleVisitCountToHostResult* result) {
95 // Extract history::URLRows into GURLs for VisitedLinkMaster.
99 explicit URLIteratorFromURLRows(const history::URLRows& url_rows)
113 history::URLRows::const_iterator itr_;
114 history::URLRows::const_iterator end_;
130 // separate class from the history service so that it can hold a reference to
131 // the history service (otherwise we would have to manually AddRef and
145 // Send to the history service on the main thread.
153 scoped_ptr<history::InMemoryHistoryBackend> backend) OVERRIDE {
154 // Send the backend to the history service on the main thread.
162 // Send the notification to the history service on the main thread.
171 scoped_ptr<history::HistoryDetails> details) OVERRIDE {
172 // Send the notification on the history thread.
174 content::Details<history::HistoryDetails> det(details.get());
178 // Send the notification to the history service on the main thread.
192 const history::BriefVisitInfo& info) OVERRIDE {
205 // The history thread is intentionally not a BrowserThread because the
207 // history thread.
217 HistoryService::HistoryService(history::HistoryClient* client, Profile* profile)
243 history::ContextID context_id) {
250 history::URLDatabase* HistoryService::InMemoryDatabase() {
257 history::URLRow url_row;
267 history::URLRow url_row;
276 history::URLRow url_row;
283 history::TypedUrlSyncableService* HistoryService::GetTypedUrlSyncableService()
337 void HistoryService::ScheduleDBTask(scoped_ptr<history::HistoryDBTask> task,
369 history::ContextID context_id,
372 const history::RedirectList& redirects,
374 history::VisitSource visit_source,
378 history::HistoryAddPageArgs(url, time, context_id, page_id, referrer,
385 history::VisitSource visit_source) {
388 history::HistoryAddPageArgs(url, time, NULL, 0, GURL(),
389 history::RedirectList(),
394 void HistoryService::AddPage(const history::HistoryAddPageArgs& add_page_args) {
399 // large part of history (think iframes for ads) and we never display them in
400 // history UI. We will still add manual subframes, which are ones the user
442 void HistoryService::UpdateWithPageEndTime(history::ContextID context_id,
458 history::VisitSource visit_source) {
469 history::URLRow row(url);
476 history::URLRows rows;
483 void HistoryService::AddPagesWithDetails(const history::URLRows& info,
484 history::VisitSource visit_source) {
491 for (history::URLRows::const_iterator i = info.begin(); i != info.end();
672 history::QueryURLResult* query_url_result = new history::QueryURLResult();
687 // Handle creation of a download by creating an entry in the history service's
690 const history::DownloadRow& create_info,
713 // Handle queries for a list of all downloads in the history database's
719 std::vector<history::DownloadRow>* rows =
720 new std::vector<history::DownloadRow>();
721 scoped_ptr<std::vector<history::DownloadRow> > scoped_rows(rows);
734 void HistoryService::UpdateDownload(const history::DownloadRow& data) {
749 const history::QueryOptions& options,
754 history::QueryResults* query_results = new history::QueryResults();
772 history::RedirectList* result = new history::RedirectList();
789 history::RedirectList* result = new history::RedirectList();
805 history::VisibleVisitCountToHostResult* result =
806 new history::VisibleVisitCountToHostResult();
826 history::MostVisitedURLList* result = new history::MostVisitedURLList();
840 const history::VisitFilter& filter,
846 history::FilteredURLList* result = new history::FilteredURLList();
878 // The backend's destructor must run on the history thread since it is not
882 // We have a reference to the history backend. There is also an extra
894 // reference from the history thread, ensuring everything works properly.
935 content::Details<history::URLsDeletedDetails> deleted_details(details);
975 in_memory_url_index_.reset(new history::InMemoryURLIndex(
980 // Create the history backend.
1007 void(history::HistoryBackend*, history::URLDatabase*)>& callback) {
1040 // like to see "chrome://memory/", etc. in their history and autocomplete.
1093 scoped_ptr<history::InMemoryHistoryBackend> mem_backend) {
1142 const std::vector<history::ExpireHistoryArgs>& expire_list,
1163 history::WebHistoryService* web_history =
1172 // Attempt online deletion from the history server, but ignore the result.
1186 scoped_ptr<history::HistoryDetails> details) {
1204 content::Details<history::HistoryDetails> det(details.get());
1218 bool HistoryService::GetRowForURL(const GURL& url, history::URLRow* url_row) {
1220 history::URLDatabase* db = InMemoryDatabase();
1225 history::VisitDatabaseObserver* observer) {
1231 history::VisitDatabaseObserver* observer) {
1237 const history::BriefVisitInfo& info) {
1239 FOR_EACH_OBSERVER(history::VisitDatabaseObserver, visit_database_observers_,