| 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_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 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 | 186 |
| 187 void ClearCachedDataForContextID(ContextID context_id); | 187 void ClearCachedDataForContextID(ContextID context_id); |
| 188 | 188 |
| 189 // Navigation ---------------------------------------------------------------- | 189 // Navigation ---------------------------------------------------------------- |
| 190 | 190 |
| 191 // |request.time| must be unique with high probability. | 191 // |request.time| must be unique with high probability. |
| 192 void AddPage(const HistoryAddPageArgs& request); | 192 void AddPage(const HistoryAddPageArgs& request); |
| 193 virtual void SetPageTitle(const GURL& url, const base::string16& title); | 193 virtual void SetPageTitle(const GURL& url, const base::string16& title); |
| 194 void AddPageNoVisitForBookmark(const GURL& url, const base::string16& title); | 194 void AddPageNoVisitForBookmark(const GURL& url, const base::string16& title); |
| 195 void UpdateWithPageEndTime(ContextID context_id, | 195 void UpdateWithPageEndTime(ContextID context_id, |
| 196 int32 page_id, | 196 int nav_entry_id, |
| 197 const GURL& url, | 197 const GURL& url, |
| 198 base::Time end_ts); | 198 base::Time end_ts); |
| 199 | 199 |
| 200 // Querying ------------------------------------------------------------------ | 200 // Querying ------------------------------------------------------------------ |
| 201 | 201 |
| 202 // Run the |callback| on the History thread. | 202 // Run the |callback| on the History thread. |
| 203 // history_url_provider.h has the temporal ordering for | 203 // history_url_provider.h has the temporal ordering for |
| 204 // the call sequence. | 204 // the call sequence. |
| 205 // |callback| should handle the NULL database case. | 205 // |callback| should handle the NULL database case. |
| 206 void ScheduleAutocomplete(const base::Callback< | 206 void ScheduleAutocomplete(const base::Callback< |
| (...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 910 | 910 |
| 911 // List of observers | 911 // List of observers |
| 912 ObserverList<HistoryBackendObserver> observers_; | 912 ObserverList<HistoryBackendObserver> observers_; |
| 913 | 913 |
| 914 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); | 914 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); |
| 915 }; | 915 }; |
| 916 | 916 |
| 917 } // namespace history | 917 } // namespace history |
| 918 | 918 |
| 919 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ | 919 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ |
| OLD | NEW |