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 COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_ | 5 #ifndef COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_ |
6 #define COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_ | 6 #define COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 void PersistState(); | 193 void PersistState(); |
194 #endif | 194 #endif |
195 | 195 |
196 void ClearCachedDataForContextID(ContextID context_id); | 196 void ClearCachedDataForContextID(ContextID context_id); |
197 | 197 |
198 // Navigation ---------------------------------------------------------------- | 198 // Navigation ---------------------------------------------------------------- |
199 | 199 |
200 // |request.time| must be unique with high probability. | 200 // |request.time| must be unique with high probability. |
201 void AddPage(const HistoryAddPageArgs& request); | 201 void AddPage(const HistoryAddPageArgs& request); |
202 virtual void SetPageTitle(const GURL& url, const base::string16& title); | 202 virtual void SetPageTitle(const GURL& url, const base::string16& title); |
| 203 virtual void SetPageHistoryContext(const GURL& url, HistoryContext context); |
203 void AddPageNoVisitForBookmark(const GURL& url, const base::string16& title); | 204 void AddPageNoVisitForBookmark(const GURL& url, const base::string16& title); |
204 void UpdateWithPageEndTime(ContextID context_id, | 205 void UpdateWithPageEndTime(ContextID context_id, |
205 int nav_entry_id, | 206 int nav_entry_id, |
206 const GURL& url, | 207 const GURL& url, |
207 base::Time end_ts); | 208 base::Time end_ts); |
208 | 209 |
209 // Querying ------------------------------------------------------------------ | 210 // Querying ------------------------------------------------------------------ |
210 | 211 |
211 // Run the |callback| on the History thread. | 212 // Run the |callback| on the History thread. |
212 // |callback| should handle the null database case. | 213 // |callback| should handle the null database case. |
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
814 | 815 |
815 // List of observers | 816 // List of observers |
816 ObserverList<HistoryBackendObserver> observers_; | 817 ObserverList<HistoryBackendObserver> observers_; |
817 | 818 |
818 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); | 819 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); |
819 }; | 820 }; |
820 | 821 |
821 } // namespace history | 822 } // namespace history |
822 | 823 |
823 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_ | 824 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_ |
OLD | NEW |