OLD | NEW |
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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_BROWSING_DATA_CORE_COUNTERS_HISTORY_COUNTER_H_ | 5 #ifndef COMPONENTS_BROWSING_DATA_CORE_COUNTERS_HISTORY_COUNTER_H_ |
6 #define COMPONENTS_BROWSING_DATA_CORE_COUNTERS_HISTORY_COUNTER_H_ | 6 #define COMPONENTS_BROWSING_DATA_CORE_COUNTERS_HISTORY_COUNTER_H_ |
7 | 7 |
8 #include "base/task/cancelable_task_tracker.h" | 8 #include "base/task/cancelable_task_tracker.h" |
9 #include "base/timer/timer.h" | 9 #include "base/timer/timer.h" |
10 #include "components/browsing_data/core/counters/browsing_data_counter.h" | 10 #include "components/browsing_data/core/counters/browsing_data_counter.h" |
11 #include "components/history/core/browser/history_service.h" | 11 #include "components/history/core/browser/history_service.h" |
12 #include "components/history/core/browser/web_history_service.h" | 12 #include "components/history/core/browser/web_history_service.h" |
13 #include "components/sync_driver/sync_service.h" | 13 #include "components/sync/driver/sync_service.h" |
14 #include "components/sync_driver/sync_service_observer.h" | 14 #include "components/sync/driver/sync_service_observer.h" |
15 | 15 |
16 namespace browsing_data { | 16 namespace browsing_data { |
17 | 17 |
18 class HistoryCounter : public browsing_data::BrowsingDataCounter, | 18 class HistoryCounter : public browsing_data::BrowsingDataCounter, |
19 public sync_driver::SyncServiceObserver { | 19 public sync_driver::SyncServiceObserver { |
20 public: | 20 public: |
21 typedef base::Callback<history::WebHistoryService*()> | 21 typedef base::Callback<history::WebHistoryService*()> |
22 GetUpdatedWebHistoryServiceCallback; | 22 GetUpdatedWebHistoryServiceCallback; |
23 | 23 |
24 class HistoryResult : public FinishedResult { | 24 class HistoryResult : public FinishedResult { |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 BrowsingDataCounter::ResultInt local_result_; | 78 BrowsingDataCounter::ResultInt local_result_; |
79 | 79 |
80 bool history_sync_enabled_; | 80 bool history_sync_enabled_; |
81 | 81 |
82 base::WeakPtrFactory<HistoryCounter> weak_ptr_factory_; | 82 base::WeakPtrFactory<HistoryCounter> weak_ptr_factory_; |
83 }; | 83 }; |
84 | 84 |
85 } // namespace browsing_data | 85 } // namespace browsing_data |
86 | 86 |
87 #endif // COMPONENTS_BROWSING_DATA_CORE_COUNTERS_HISTORY_COUNTER_H_ | 87 #endif // COMPONENTS_BROWSING_DATA_CORE_COUNTERS_HISTORY_COUNTER_H_ |
OLD | NEW |