| 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/core/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/core/browsing_data_utils.h" | 10 #include "components/browsing_data/core/browsing_data_utils.h" |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 | 160 |
| 161 bool BrowsingDataCounter::FinishedResult::Finished() const { | 161 bool BrowsingDataCounter::FinishedResult::Finished() const { |
| 162 return true; | 162 return true; |
| 163 } | 163 } |
| 164 | 164 |
| 165 BrowsingDataCounter::ResultInt BrowsingDataCounter::FinishedResult::Value() | 165 BrowsingDataCounter::ResultInt BrowsingDataCounter::FinishedResult::Value() |
| 166 const { | 166 const { |
| 167 return value_; | 167 return value_; |
| 168 } | 168 } |
| 169 | 169 |
| 170 // BrowsingDataCounter::SyncResult ----------------------------------------- |
| 171 |
| 172 BrowsingDataCounter::SyncResult::SyncResult(const BrowsingDataCounter* source, |
| 173 ResultInt value, |
| 174 bool sync_enabled) |
| 175 : FinishedResult(source, value), sync_enabled_(sync_enabled) {} |
| 176 |
| 177 BrowsingDataCounter::SyncResult::~SyncResult() {} |
| 178 |
| 170 } // namespace browsing_data | 179 } // namespace browsing_data |
| OLD | NEW |