| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/history/core/browser/history_types.h" | 5 #include "components/history/core/browser/history_types.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
| (...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 IconMapping::~IconMapping() {} | 292 IconMapping::~IconMapping() {} |
| 293 | 293 |
| 294 IconMapping& IconMapping::operator=(const IconMapping&) = default; | 294 IconMapping& IconMapping::operator=(const IconMapping&) = default; |
| 295 | 295 |
| 296 // FaviconBitmapIDSize --------------------------------------------------------- | 296 // FaviconBitmapIDSize --------------------------------------------------------- |
| 297 | 297 |
| 298 FaviconBitmapIDSize::FaviconBitmapIDSize() {} | 298 FaviconBitmapIDSize::FaviconBitmapIDSize() {} |
| 299 | 299 |
| 300 FaviconBitmapIDSize::~FaviconBitmapIDSize() {} | 300 FaviconBitmapIDSize::~FaviconBitmapIDSize() {} |
| 301 | 301 |
| 302 // IconMappingsForExpiry ------------------------------------------------------ |
| 303 |
| 304 IconMappingsForExpiry::IconMappingsForExpiry() {} |
| 305 |
| 306 IconMappingsForExpiry::IconMappingsForExpiry( |
| 307 const IconMappingsForExpiry& other) = default; |
| 308 |
| 309 IconMappingsForExpiry::~IconMappingsForExpiry() {} |
| 310 |
| 302 // FaviconBitmap -------------------------------------------------------------- | 311 // FaviconBitmap -------------------------------------------------------------- |
| 303 | 312 |
| 304 FaviconBitmap::FaviconBitmap() {} | 313 FaviconBitmap::FaviconBitmap() {} |
| 305 | 314 |
| 306 FaviconBitmap::FaviconBitmap(const FaviconBitmap& other) = default; | 315 FaviconBitmap::FaviconBitmap(const FaviconBitmap& other) = default; |
| 307 | 316 |
| 308 FaviconBitmap::~FaviconBitmap() {} | 317 FaviconBitmap::~FaviconBitmap() {} |
| 309 | 318 |
| 310 // ExpireHistoryArgs ---------------------------------------------------------- | 319 // ExpireHistoryArgs ---------------------------------------------------------- |
| 311 | 320 |
| 312 ExpireHistoryArgs::ExpireHistoryArgs() { | 321 ExpireHistoryArgs::ExpireHistoryArgs() { |
| 313 } | 322 } |
| 314 | 323 |
| 315 ExpireHistoryArgs::ExpireHistoryArgs(const ExpireHistoryArgs& other) = default; | 324 ExpireHistoryArgs::ExpireHistoryArgs(const ExpireHistoryArgs& other) = default; |
| 316 | 325 |
| 317 ExpireHistoryArgs::~ExpireHistoryArgs() { | 326 ExpireHistoryArgs::~ExpireHistoryArgs() { |
| 318 } | 327 } |
| 319 | 328 |
| 320 void ExpireHistoryArgs::SetTimeRangeForOneDay(base::Time time) { | 329 void ExpireHistoryArgs::SetTimeRangeForOneDay(base::Time time) { |
| 321 begin_time = time.LocalMidnight(); | 330 begin_time = time.LocalMidnight(); |
| 322 | 331 |
| 323 // Due to DST, leap seconds, etc., the next day at midnight may be more than | 332 // Due to DST, leap seconds, etc., the next day at midnight may be more than |
| 324 // 24 hours away, so add 36 hours and round back down to midnight. | 333 // 24 hours away, so add 36 hours and round back down to midnight. |
| 325 end_time = (begin_time + base::TimeDelta::FromHours(36)).LocalMidnight(); | 334 end_time = (begin_time + base::TimeDelta::FromHours(36)).LocalMidnight(); |
| 326 } | 335 } |
| 327 | 336 |
| 328 } // namespace history | 337 } // namespace history |
| OLD | NEW |