| 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 845 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 856 base::Closure backend_destroy_task_; | 856 base::Closure backend_destroy_task_; |
| 857 | 857 |
| 858 // Tracks page transition types. | 858 // Tracks page transition types. |
| 859 VisitTracker tracker_; | 859 VisitTracker tracker_; |
| 860 | 860 |
| 861 // A boolean variable to track whether we have already purged obsolete segment | 861 // A boolean variable to track whether we have already purged obsolete segment |
| 862 // data. | 862 // data. |
| 863 bool segment_queried_; | 863 bool segment_queried_; |
| 864 | 864 |
| 865 // List of QueuedHistoryDBTasks to run; | 865 // List of QueuedHistoryDBTasks to run; |
| 866 std::list<QueuedHistoryDBTask*> queued_history_db_tasks_; | 866 std::list<std::unique_ptr<QueuedHistoryDBTask>> queued_history_db_tasks_; |
| 867 | 867 |
| 868 // Used to determine if a URL is bookmarked; may be null. | 868 // Used to determine if a URL is bookmarked; may be null. |
| 869 std::unique_ptr<HistoryBackendClient> backend_client_; | 869 std::unique_ptr<HistoryBackendClient> backend_client_; |
| 870 | 870 |
| 871 scoped_refptr<base::SequencedTaskRunner> task_runner_; | 871 scoped_refptr<base::SequencedTaskRunner> task_runner_; |
| 872 | 872 |
| 873 // Used to allow embedder code to stash random data by key. Those object will | 873 // Used to allow embedder code to stash random data by key. Those object will |
| 874 // be deleted before closing the databases (hence the member variable instead | 874 // be deleted before closing the databases (hence the member variable instead |
| 875 // of inheritance from base::SupportsUserData). | 875 // of inheritance from base::SupportsUserData). |
| 876 std::unique_ptr<HistoryBackendHelper> supports_user_data_helper_; | 876 std::unique_ptr<HistoryBackendHelper> supports_user_data_helper_; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 892 | 892 |
| 893 // List of observers | 893 // List of observers |
| 894 base::ObserverList<HistoryBackendObserver> observers_; | 894 base::ObserverList<HistoryBackendObserver> observers_; |
| 895 | 895 |
| 896 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); | 896 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); |
| 897 }; | 897 }; |
| 898 | 898 |
| 899 } // namespace history | 899 } // namespace history |
| 900 | 900 |
| 901 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_ | 901 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_ |
| OLD | NEW |