Searched refs:visits (Results 1 - 19 of 19) sorted by relevance

/external/chromium/chrome/browser/history/
H A Dvisit_database.h18 // A visit database is one which stores visits for URLs, that is, times and
30 // Deletes the visit table. Used for rapidly clearing all visits. In this
53 // Fills in the given vector with all of the visits for the given page ID,
56 bool GetVisitsForURL(URLID url_id, VisitVector* visits);
58 // Fills all visits in the time range [begin, end) to the given vector. Either
68 int max_results, VisitVector* visits);
70 // Fills all visits with specified transition in the time range [begin, end)
83 VisitVector* visits);
85 // Fills all visits in the given time range into the given vector that should
90 // Up to |max_count| visits wil
[all...]
H A Dexpire_history_backend.cc33 // Reads all types of visits starting from beginning of time to the given end
38 VisitVector* visits, int max_visits) const {
40 DCHECK(visits) << "visit vector has to exist in order to populate it";
42 db->GetAllVisitsInRange(Time(), end_time, max_visits, visits); local
43 // When we got the maximum number of visits we asked for, we say there could
45 return static_cast<int>(visits->size()) == max_visits;
49 // Reads only AUTO_SUBFRAME visits, within a computed range. The range is
52 // there are no more additional visits to expire by this reader.
58 VisitVector* visits, int max_visits) const {
60 DCHECK(visits) << "visi
37 Read(Time end_time, HistoryDatabase* db, VisitVector* visits, int max_visits) const argument
57 Read(Time end_time, HistoryDatabase* db, VisitVector* visits, int max_visits) const argument
235 VisitVector visits; local
365 DeleteVisitRelatedInfo( const VisitVector& visits, DeleteDependencies* dependencies) argument
461 ExpireURLsForVisits( const VisitVector& visits, DeleteDependencies* dependencies) argument
519 ArchiveURLsAndVisits( const VisitVector& visits, DeleteDependencies* dependencies) argument
[all...]
H A Dvisit_database.cc32 if (!GetDB().DoesTableExist("visits")) {
33 if (!GetDB().Execute("CREATE TABLE visits("
43 } else if (!GetDB().DoesColumnExist("visits", "is_indexed")) {
50 if (!GetDB().Execute("ALTER TABLE visits ADD COLUMN is_indexed BOOLEAN"))
54 // Visit source table contains the source information for all the visits. To
55 // save space, we do not record those user browsed visits which would be the
57 // Due to the tight relationship between visit_source and visits table, they
65 // Index over url so we can quickly find visits for a page. This will just
67 GetDB().Execute("CREATE INDEX visits_url_index ON visits (url)");
69 // Create an index over from visits s
100 FillVisitVector(sql::Statement& statement, VisitVector* visits) argument
230 GetVisitsForURL(URLID url_id, VisitVector* visits) argument
246 GetAllVisitsInRange(base::Time begin_time, base::Time end_time, int max_results, VisitVector* visits) argument
269 GetVisitsInRangeForTransition( base::Time begin_time, base::Time end_time, int max_results, PageTransition::Type transition, VisitVector* visits) argument
298 GetVisibleVisitsInRange(base::Time begin_time, base::Time end_time, int max_count, VisitVector* visits) argument
365 GetMostRecentVisitsForURL(URLID url_id, int max_results, VisitVector* visits) argument
489 GetVisitsSource(const VisitVector& visits, VisitSourceMap* sources) argument
[all...]
H A Dexpire_history_backend.h45 // Encapsulates visit expiration criteria and type of visits to expire.
49 // Populates |visits| from |db|, using provided |end_time| and |max_visits|
52 VisitVector* visits, int max_visits) const = 0;
68 // (visits are removed though).
86 // Removes all visits to restrict_urls (or all URLs if empty) in the given
91 // Archives all visits before and including the given time, updating the URLs
115 // string/ID pair. If |update_visits| is set, the visits that reference the
118 // knows that the visits will be deleted after the call.
125 // Deletes the visit-related stuff for all the visits in the given list, and
129 // Deleted information is the visits themselve
[all...]
H A Dexpire_history_backend_unittest.cc64 // Add visits with source information.
179 // The example data consists of 4 visits. The middle two visits are to the
189 // The IDs of the added URLs, and the times of the four added visits will be
239 // Four visits.
368 // There should be no visits.
369 VisitVector visits; local
370 main_db_->GetVisitsForURL(row.id(), &visits);
371 EXPECT_EQ(0U, visits.size());
468 VisitVector visits; local
532 VisitVector visits; local
572 VisitVector visits; local
602 VisitVector visits; local
660 VisitVector visits; local
814 VisitVector visits; local
867 VisitVector visits; local
[all...]
H A Dhistory_backend_unittest.cc124 VisitVector visits; local
125 EXPECT_TRUE(backend_->db()->GetVisitsForURL(id, &visits));
126 return visits[0].transition;
253 // Get the two visits for the URLs we just added.
254 VisitVector visits; local
255 backend_->db_->GetVisitsForURL(row1_id, &visits);
256 ASSERT_EQ(1U, visits.size());
257 VisitID visit1_id = visits[0].visit_id;
259 visits.clear();
260 backend_->db_->GetVisitsForURL(row2_id, &visits);
397 VisitVector visits; local
473 VisitVector visits; local
480 &visits); local
602 VisitVector visits; local
629 VisitVector visits; local
684 VisitVector visits; local
717 VisitVector visits; local
757 VisitVector visits; local
[all...]
H A Dtext_database_manager.cc284 VisitVector visits; local
285 visit_database_->GetVisitsForURL(url_id, &visits);
286 size_t our_visit_row_index = visits.size();
287 for (size_t i = 0; i < visits.size(); i++) {
288 // While we're going trough all the visits, also find our row so we can
290 if (visits[i].visit_id == visit_id) {
292 } else if (visits[i].is_indexed) {
293 visits[i].is_indexed = false;
294 visit_database_->UpdateVisitRow(visits[i]);
295 DeletePageData(visits[
[all...]
H A Dhistory_backend.cc46 VisitDatabase (stores a list of visits for the URLs)
52 VisitDatabase (stores a list of visits for the URLs)
411 // Update the segment for this visit. KEYWORD_GENERATED visits should not
471 // Record all redirect visits with the same timestamp. We don't display
914 bool HistoryBackend::GetVisitsForURL(URLID id, VisitVector* visits) { argument
916 return db_->GetVisitsForURL(id, visits);
927 const std::vector<base::Time>& visits,
930 for (std::vector<base::Time>::const_iterator visit = visits.begin();
931 visit != visits.end(); ++visit) {
942 bool HistoryBackend::RemoveVisits(const VisitVector& visits) { argument
926 AddVisits(const GURL& url, const std::vector<base::Time>& visits, VisitSource visit_source) argument
988 VisitVector* visits = &request->value.b; local
1195 VisitVector visits; local
2033 VisitVector visits; local
[all...]
H A Dhistory_backend.h277 virtual bool GetVisitsForURL(URLID id, VisitVector* visits);
281 // While adding visits in batch, the source needs to be provided.
283 const std::vector<base::Time>& visits,
286 virtual bool RemoveVisits(const VisitVector& visits);
304 // Notification that a URL is no longer bookmarked. If there are no visits
/external/chromium/chrome/browser/sync/glue/
H A Dtyped_url_model_associator.cc43 // Get all the visits.
49 LOG(ERROR) << "Could not get the url's visits.";
74 history::VisitVector& visits = visit_vectors[ix->id()]; local
75 DCHECK(visits.size() == static_cast<size_t>(ix->visit_count()));
76 if (visits.size() != static_cast<size_t>(ix->visit_count())) {
90 int difference = MergeUrls(typed_url, *ix, &visits, &new_url,
98 WriteToSyncNode(new_url, visits, &write_node);
124 WriteToSyncNode(*ix, visits, &node);
147 std::vector<base::Time>& visits = new_visits.back().second; local
154 // incremented as visits ar
327 MergeUrls( const sync_pb::TypedUrlSpecifics& typed_url, const history::URLRow& url, history::VisitVector* visits, history::URLRow* new_url, std::vector<base::Time>* new_visits) argument
435 WriteToSyncNode( const history::URLRow& url, const history::VisitVector& visits, sync_api::WriteNode* node) argument
[all...]
H A Dtyped_url_change_processor.cc67 // Get all the visits.
75 "Could not get the url's visits.");
96 history::VisitVector& visits = visit_vectors[url->id()]; local
98 DCHECK(!visits.empty());
100 DCHECK(static_cast<size_t>(url->visit_count()) == visits.size());
101 if (static_cast<size_t>(url->visit_count()) != visits.size()) {
109 model_associator_->WriteToSyncNode(*url, visits, &update_node);
120 model_associator_->WriteToSyncNode(*url, visits, &create_node);
161 history::VisitVector visits; local
162 if (!history_backend_->GetVisitsForURL(details->row.id(), &visits) ||
269 history::VisitVector visits; local
[all...]
H A Dtyped_url_model_associator_unittest.cc23 history::VisitVector* visits) {
31 visits->push_back(history::VisitRow(
33 history_url.set_visit_count(visits->size());
146 const int64 visits[] = { 1024, 2065, 65534, 1237684 }; local
148 for (size_t c = 0; c < arraysize(visits); ++c) {
150 0, base::Time::FromInternalValue(visits[c]), 0, 0, 0));
151 new_url.add_visit(visits[c]);
18 MakeTypedUrlRow(const char* url, const char* title, int typed_count, int64 last_visit, bool hidden, history::VisitVector* visits) argument
H A Dtyped_url_model_associator.h117 history::VisitVector* visits,
121 const history::VisitVector& visits,
/external/chromium/chrome/browser/sync/
H A Dprofile_sync_service_typed_url_unittest.cc80 history::VisitVector* visits));
83 const std::vector<base::Time>& visits,
85 MOCK_METHOD1(RemoveVisits, bool(const history::VisitVector& visits));
201 const history::VisitVector& visits) {
211 TypedUrlModelAssociator::WriteToSyncNode(url, visits, &node);
264 history::VisitVector* visits) {
272 visits->push_back(history::VisitRow(
274 history_url.set_visit_count(visits->size());
300 history::VisitVector visits; local
301 visits
200 AddTypedUrlSyncNode(const history::URLRow& url, const history::VisitVector& visits) argument
259 MakeTypedUrlEntry(const char* url, const char* title, int typed_count, int64 last_visit, bool hidden, history::VisitVector* visits) argument
325 history::VisitVector visits; local
[all...]
/external/chromium/chrome/browser/
H A Dcustom_home_pages_table_model.h69 history::VisitVector* visits);
H A Dcustom_home_pages_table_model.cc175 history::VisitVector* visits) {
172 OnGotTitle(HistoryService::Handle handle, bool found_url, const history::URLRow* row, history::VisitVector* visits) argument
/external/chromium/chrome/browser/extensions/
H A Dextension_history_api.h107 history::VisitVector* visits);
H A Dextension_history_api.cc246 history::VisitVector* visits) {
248 if (visits && !visits->empty()) {
249 for (history::VisitVector::iterator iterator = visits->begin();
250 iterator != visits->end();
242 QueryComplete( HistoryService::Handle request_service, bool success, const history::URLRow* url_row, history::VisitVector* visits) argument
/external/chromium/chrome/browser/search_engines/
H A Dtemplate_url_model_unittest.cc874 history::VisitVector* visits) {
878 if (visits)
879 this->visits = *visits;
884 history::VisitVector visits; member in struct:QueryHistoryCallbackImpl
888 // KEYWORD visits.
923 ASSERT_EQ(1U, callback.visits.size());
925 PageTransition::StripQualifier(callback.visits[0].transition));
872 Callback(HistoryService::Handle handle, bool success, const history::URLRow* row, history::VisitVector* visits) argument

Completed in 489 milliseconds