| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 853 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 864 base::Closure backend_destroy_task_; | 864 base::Closure backend_destroy_task_; |
| 865 | 865 |
| 866 // Tracks page transition types. | 866 // Tracks page transition types. |
| 867 VisitTracker tracker_; | 867 VisitTracker tracker_; |
| 868 | 868 |
| 869 // A boolean variable to track whether we have already purged obsolete segment | 869 // A boolean variable to track whether we have already purged obsolete segment |
| 870 // data. | 870 // data. |
| 871 bool segment_queried_; | 871 bool segment_queried_; |
| 872 | 872 |
| 873 // List of QueuedHistoryDBTasks to run; | 873 // List of QueuedHistoryDBTasks to run; |
| 874 std::list<QueuedHistoryDBTask*> queued_history_db_tasks_; | 874 std::list<std::unique_ptr<QueuedHistoryDBTask>> queued_history_db_tasks_; |
| 875 | 875 |
| 876 // Used to determine if a URL is bookmarked; may be null. | 876 // Used to determine if a URL is bookmarked; may be null. |
| 877 std::unique_ptr<HistoryBackendClient> backend_client_; | 877 std::unique_ptr<HistoryBackendClient> backend_client_; |
| 878 | 878 |
| 879 scoped_refptr<base::SequencedTaskRunner> task_runner_; | 879 scoped_refptr<base::SequencedTaskRunner> task_runner_; |
| 880 | 880 |
| 881 // Used to allow embedder code to stash random data by key. Those object will | 881 // Used to allow embedder code to stash random data by key. Those object will |
| 882 // be deleted before closing the databases (hence the member variable instead | 882 // be deleted before closing the databases (hence the member variable instead |
| 883 // of inheritance from base::SupportsUserData). | 883 // of inheritance from base::SupportsUserData). |
| 884 std::unique_ptr<HistoryBackendHelper> supports_user_data_helper_; | 884 std::unique_ptr<HistoryBackendHelper> supports_user_data_helper_; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 900 | 900 |
| 901 // List of observers | 901 // List of observers |
| 902 base::ObserverList<HistoryBackendObserver> observers_; | 902 base::ObserverList<HistoryBackendObserver> observers_; |
| 903 | 903 |
| 904 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); | 904 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); |
| 905 }; | 905 }; |
| 906 | 906 |
| 907 } // namespace history | 907 } // namespace history |
| 908 | 908 |
| 909 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_ | 909 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_ |
| OLD | NEW |