| 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 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 463 // from the vector. | 463 // from the vector. |
| 464 // | 464 // |
| 465 // The vector contains a list of PageUsageData. Each PageUsageData ID is set | 465 // The vector contains a list of PageUsageData. Each PageUsageData ID is set |
| 466 // to the segment ID. The URL and all the other information is set to the page | 466 // to the segment ID. The URL and all the other information is set to the page |
| 467 // representing the segment. | 467 // representing the segment. |
| 468 Handle QuerySegmentUsageSince(CancelableRequestConsumerBase* consumer, | 468 Handle QuerySegmentUsageSince(CancelableRequestConsumerBase* consumer, |
| 469 const base::Time from_time, | 469 const base::Time from_time, |
| 470 int max_result_count, | 470 int max_result_count, |
| 471 const SegmentQueryCallback& callback); | 471 const SegmentQueryCallback& callback); |
| 472 | 472 |
| 473 // Increases the amount of time the user actively viewed the url. | |
| 474 void IncreaseSegmentDuration(const GURL& url, | |
| 475 base::Time time, | |
| 476 base::TimeDelta delta); | |
| 477 | |
| 478 // Queries segments based on active time viewed. | |
| 479 Handle QuerySegmentDurationSince(CancelableRequestConsumerBase* consumer, | |
| 480 base::Time from_time, | |
| 481 int max_result_count, | |
| 482 const SegmentQueryCallback& callback); | |
| 483 | |
| 484 // Keyword search terms ----------------------------------------------------- | 473 // Keyword search terms ----------------------------------------------------- |
| 485 | 474 |
| 486 // Sets the search terms for the specified url and keyword. url_id gives the | 475 // Sets the search terms for the specified url and keyword. url_id gives the |
| 487 // id of the url, keyword_id the id of the keyword and term the search term. | 476 // id of the url, keyword_id the id of the keyword and term the search term. |
| 488 void SetKeywordSearchTermsForURL(const GURL& url, | 477 void SetKeywordSearchTermsForURL(const GURL& url, |
| 489 TemplateURLID keyword_id, | 478 TemplateURLID keyword_id, |
| 490 const base::string16& term); | 479 const base::string16& term); |
| 491 | 480 |
| 492 // Deletes all search terms for the specified keyword. | 481 // Deletes all search terms for the specified keyword. |
| 493 void DeleteAllSearchTermsForKeyword(TemplateURLID keyword_id); | 482 void DeleteAllSearchTermsForKeyword(TemplateURLID keyword_id); |
| (...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1076 scoped_ptr<history::InMemoryURLIndex> in_memory_url_index_; | 1065 scoped_ptr<history::InMemoryURLIndex> in_memory_url_index_; |
| 1077 | 1066 |
| 1078 ObserverList<history::VisitDatabaseObserver> visit_database_observers_; | 1067 ObserverList<history::VisitDatabaseObserver> visit_database_observers_; |
| 1079 | 1068 |
| 1080 history::DeleteDirectiveHandler delete_directive_handler_; | 1069 history::DeleteDirectiveHandler delete_directive_handler_; |
| 1081 | 1070 |
| 1082 DISALLOW_COPY_AND_ASSIGN(HistoryService); | 1071 DISALLOW_COPY_AND_ASSIGN(HistoryService); |
| 1083 }; | 1072 }; |
| 1084 | 1073 |
| 1085 #endif // CHROME_BROWSER_HISTORY_HISTORY_SERVICE_H_ | 1074 #endif // CHROME_BROWSER_HISTORY_HISTORY_SERVICE_H_ |
| OLD | NEW |