| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #include "components/browsing_data/counters/browsing_data_counter.h" | 5 #include "components/browsing_data/core/counters/browsing_data_counter.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
| 10 #include "components/browsing_data/browsing_data_utils.h" | 10 #include "components/browsing_data/core/browsing_data_utils.h" |
| 11 #include "components/browsing_data/pref_names.h" | 11 #include "components/browsing_data/core/pref_names.h" |
| 12 #include "components/prefs/pref_service.h" | 12 #include "components/prefs/pref_service.h" |
| 13 | 13 |
| 14 namespace browsing_data { | 14 namespace browsing_data { |
| 15 | 15 |
| 16 BrowsingDataCounter::BrowsingDataCounter(const std::string& pref_name) | 16 BrowsingDataCounter::BrowsingDataCounter(const std::string& pref_name) |
| 17 : pref_name_(pref_name) {} | 17 : pref_name_(pref_name) {} |
| 18 | 18 |
| 19 BrowsingDataCounter::~BrowsingDataCounter() {} | 19 BrowsingDataCounter::~BrowsingDataCounter() {} |
| 20 | 20 |
| 21 void BrowsingDataCounter::Init(PrefService* pref_service, | 21 void BrowsingDataCounter::Init(PrefService* pref_service, |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 bool BrowsingDataCounter::FinishedResult::Finished() const { | 92 bool BrowsingDataCounter::FinishedResult::Finished() const { |
| 93 return true; | 93 return true; |
| 94 } | 94 } |
| 95 | 95 |
| 96 BrowsingDataCounter::ResultInt BrowsingDataCounter::FinishedResult::Value() | 96 BrowsingDataCounter::ResultInt BrowsingDataCounter::FinishedResult::Value() |
| 97 const { | 97 const { |
| 98 return value_; | 98 return value_; |
| 99 } | 99 } |
| 100 | 100 |
| 101 } // namespace browsing_data | 101 } // namespace browsing_data |
| OLD | NEW |