| 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/domain_reliability/util.h" | 5 #include "components/domain_reliability/util.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include "base/callback.h" | 9 #include "base/callback.h" |
| 8 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/macros.h" |
| 9 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 10 #include "base/time/time.h" | 13 #include "base/time/time.h" |
| 11 #include "base/timer/timer.h" | 14 #include "base/timer/timer.h" |
| 12 #include "net/base/net_errors.h" | 15 #include "net/base/net_errors.h" |
| 13 | 16 |
| 14 namespace domain_reliability { | 17 namespace domain_reliability { |
| 15 | 18 |
| 16 namespace { | 19 namespace { |
| 17 | 20 |
| 18 const struct NetErrorMapping { | 21 const struct NetErrorMapping { |
| (...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 434 ActualTime::~ActualTime() {} | 437 ActualTime::~ActualTime() {} |
| 435 | 438 |
| 436 base::Time ActualTime::Now() { return base::Time::Now(); } | 439 base::Time ActualTime::Now() { return base::Time::Now(); } |
| 437 base::TimeTicks ActualTime::NowTicks() { return base::TimeTicks::Now(); } | 440 base::TimeTicks ActualTime::NowTicks() { return base::TimeTicks::Now(); } |
| 438 | 441 |
| 439 scoped_ptr<MockableTime::Timer> ActualTime::CreateTimer() { | 442 scoped_ptr<MockableTime::Timer> ActualTime::CreateTimer() { |
| 440 return scoped_ptr<MockableTime::Timer>(new ActualTimer()); | 443 return scoped_ptr<MockableTime::Timer>(new ActualTimer()); |
| 441 } | 444 } |
| 442 | 445 |
| 443 } // namespace domain_reliability | 446 } // namespace domain_reliability |
| OLD | NEW |