Home | History | Annotate | Download | only in glue

Lines Matching refs:history

16 #include "chrome/browser/history/history_types.h"
28 namespace history {
47 typedef std::vector<std::pair<history::URLID, history::URLRow> >
49 typedef std::vector<std::pair<GURL, std::vector<history::VisitInfo> > >
54 history::HistoryBackend* history_backend,
81 void WriteToHistoryBackend(const history::URLRows* new_urls,
84 const history::VisitVector* deleted_visits);
87 // local history DB and generates a list of visits to add to the
88 // history DB to bring it up to date (avoiding duplicates).
90 // visits to add to/remove from the history DB, and adds a new entry to either
92 // in the history DB.
95 history::VisitVector* visits_to_remove,
97 history::URLRows* new_urls);
116 // history database in |url| and |visits|, and returns a bitmask with the
120 // DIFF_LOCAL_ROW_CHANGED - The history data in |new_url| should be persisted
121 // to the history DB.
123 // should be written to the history DB for this URL. Deletions are not
126 const history::URLRow& url,
127 history::VisitVector* visits,
128 history::URLRow* new_url,
129 std::vector<history::VisitInfo>* new_visits);
130 static void WriteToSyncNode(const history::URLRow& url,
131 const history::VisitVector& visits,
134 // Diffs the set of visits between the history DB and the sync DB, using the
136 // |removed_visits| that can be applied to the history DB to make it match
139 static void DiffVisits(const history::VisitVector& old_visits,
141 std::vector<history::VisitInfo>* new_visits,
142 history::VisitVector* removed_visits);
146 static void WriteToTypedUrlSpecifics(const history::URLRow& url,
147 const history::VisitVector& visits,
150 // Fetches visits from the history DB corresponding to the passed URL. This
151 // function compensates for the fact that the history DB has rather poor data
157 bool FixupURLAndGetVisits(history::URLRow* url,
158 history::VisitVector* visits);
164 const sync_pb::TypedUrlSpecifics& specifics, history::URLRow* url_row);
183 bool ShouldIgnoreVisits(const history::VisitVector& visits);
186 history::HistoryBackend* history_backend_;