OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_BACKEND_H_ | 5 #ifndef CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ |
6 #define CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ | 6 #define CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
294 | 294 |
295 virtual bool UpdateURL(URLID id, const history::URLRow& url); | 295 virtual bool UpdateURL(URLID id, const history::URLRow& url); |
296 | 296 |
297 // While adding visits in batch, the source needs to be provided. | 297 // While adding visits in batch, the source needs to be provided. |
298 virtual bool AddVisits(const GURL& url, | 298 virtual bool AddVisits(const GURL& url, |
299 const std::vector<history::VisitInfo>& visits, | 299 const std::vector<history::VisitInfo>& visits, |
300 VisitSource visit_source); | 300 VisitSource visit_source); |
301 | 301 |
302 virtual bool RemoveVisits(const VisitVector& visits); | 302 virtual bool RemoveVisits(const VisitVector& visits); |
303 | 303 |
304 virtual bool GetVisitsSource(const VisitVector& visits, | |
sky
2011/10/21 22:44:51
Does this really need to be virtual?
Add a descrip
Andrew T Wilson (Slow)
2011/10/22 06:48:22
Done.
| |
305 VisitSourceMap* sources); | |
306 | |
304 virtual bool GetURL(const GURL& url, history::URLRow* url_row); | 307 virtual bool GetURL(const GURL& url, history::URLRow* url_row); |
305 | 308 |
306 // Deleting ------------------------------------------------------------------ | 309 // Deleting ------------------------------------------------------------------ |
307 | 310 |
308 virtual void DeleteURLs(const std::vector<GURL>& urls); | 311 virtual void DeleteURLs(const std::vector<GURL>& urls); |
309 | 312 |
310 virtual void DeleteURL(const GURL& url); | 313 virtual void DeleteURL(const GURL& url); |
311 | 314 |
312 // Calls ExpireHistoryBackend::ExpireHistoryBetween and commits the change. | 315 // Calls ExpireHistoryBackend::ExpireHistoryBetween and commits the change. |
313 void ExpireHistoryBetween( | 316 void ExpireHistoryBetween( |
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
631 // Publishes the history to all indexers which are registered to receive | 634 // Publishes the history to all indexers which are registered to receive |
632 // history data from us. Can be NULL if there are no listeners. | 635 // history data from us. Can be NULL if there are no listeners. |
633 scoped_ptr<HistoryPublisher> history_publisher_; | 636 scoped_ptr<HistoryPublisher> history_publisher_; |
634 | 637 |
635 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); | 638 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); |
636 }; | 639 }; |
637 | 640 |
638 } // namespace history | 641 } // namespace history |
639 | 642 |
640 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ | 643 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ |
OLD | NEW |