| 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 // |force_fail| can be set during unittests to unconditionally fail to init. | 184 // |force_fail| can be set during unittests to unconditionally fail to init. |
| 185 void Init(const std::string& languages, | 185 void Init(const std::string& languages, |
| 186 bool force_fail, | 186 bool force_fail, |
| 187 const HistoryDatabaseParams& history_database_params); | 187 const HistoryDatabaseParams& history_database_params); |
| 188 | 188 |
| 189 // Notification that the history system is shutting down. This will break | 189 // Notification that the history system is shutting down. This will break |
| 190 // the refs owned by the delegate and any pending transaction so it will | 190 // the refs owned by the delegate and any pending transaction so it will |
| 191 // actually be deleted. | 191 // actually be deleted. |
| 192 void Closing(); | 192 void Closing(); |
| 193 | 193 |
| 194 #if defined(OS_IOS) |
| 195 // Persists any in-flight state, without actually shutting down the history |
| 196 // system. This is intended for use when the application is backgrounded. |
| 197 void PersistState(); |
| 198 #endif |
| 199 |
| 194 void ClearCachedDataForContextID(ContextID context_id); | 200 void ClearCachedDataForContextID(ContextID context_id); |
| 195 | 201 |
| 196 // Navigation ---------------------------------------------------------------- | 202 // Navigation ---------------------------------------------------------------- |
| 197 | 203 |
| 198 // |request.time| must be unique with high probability. | 204 // |request.time| must be unique with high probability. |
| 199 void AddPage(const HistoryAddPageArgs& request); | 205 void AddPage(const HistoryAddPageArgs& request); |
| 200 virtual void SetPageTitle(const GURL& url, const base::string16& title); | 206 virtual void SetPageTitle(const GURL& url, const base::string16& title); |
| 201 void AddPageNoVisitForBookmark(const GURL& url, const base::string16& title); | 207 void AddPageNoVisitForBookmark(const GURL& url, const base::string16& title); |
| 202 void UpdateWithPageEndTime(ContextID context_id, | 208 void UpdateWithPageEndTime(ContextID context_id, |
| 203 int nav_entry_id, | 209 int nav_entry_id, |
| (...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 817 | 823 |
| 818 // List of observers | 824 // List of observers |
| 819 ObserverList<HistoryBackendObserver> observers_; | 825 ObserverList<HistoryBackendObserver> observers_; |
| 820 | 826 |
| 821 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); | 827 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); |
| 822 }; | 828 }; |
| 823 | 829 |
| 824 } // namespace history | 830 } // namespace history |
| 825 | 831 |
| 826 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_ | 832 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_ |
| OLD | NEW |