| 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 "modules/geolocation/GeoNotifier.h" | 5 #include "modules/geolocation/GeoNotifier.h" |
| 6 | 6 |
| 7 #include "modules/geolocation/Geolocation.h" | 7 #include "modules/geolocation/Geolocation.h" |
| 8 #include "modules/geolocation/PositionError.h" | 8 #include "modules/geolocation/PositionError.h" |
| 9 #include "modules/geolocation/PositionOptions.h" | 9 #include "modules/geolocation/PositionOptions.h" |
| 10 #include "platform/Histogram.h" | 10 #include "platform/Histogram.h" |
| 11 #include "wtf/Assertions.h" | 11 #include "platform/wtf/Assertions.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 GeoNotifier::GeoNotifier(Geolocation* geolocation, | 15 GeoNotifier::GeoNotifier(Geolocation* geolocation, |
| 16 PositionCallback* success_callback, | 16 PositionCallback* success_callback, |
| 17 PositionErrorCallback* error_callback, | 17 PositionErrorCallback* error_callback, |
| 18 const PositionOptions& options) | 18 const PositionOptions& options) |
| 19 : geolocation_(geolocation), | 19 : geolocation_(geolocation), |
| 20 success_callback_(success_callback), | 20 success_callback_(success_callback), |
| 21 error_callback_(error_callback), | 21 error_callback_(error_callback), |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 | 99 |
| 100 DEFINE_STATIC_LOCAL(CustomCountHistogram, timeout_expired_histogram, | 100 DEFINE_STATIC_LOCAL(CustomCountHistogram, timeout_expired_histogram, |
| 101 ("Geolocation.TimeoutExpired", 0, | 101 ("Geolocation.TimeoutExpired", 0, |
| 102 1000 * 60 * 10 /* 10 minute max */, 20 /* buckets */)); | 102 1000 * 60 * 10 /* 10 minute max */, 20 /* buckets */)); |
| 103 timeout_expired_histogram.Count(options_.timeout()); | 103 timeout_expired_histogram.Count(options_.timeout()); |
| 104 | 104 |
| 105 geolocation_->RequestTimedOut(this); | 105 geolocation_->RequestTimedOut(this); |
| 106 } | 106 } |
| 107 | 107 |
| 108 } // namespace blink | 108 } // namespace blink |
| OLD | NEW |