| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 // | |
| 5 // A simple abstraction for getting the current time during feature extraction. | |
| 6 // This can be mocked out for testing. | |
| 7 | |
| 8 #ifndef CHROME_RENDERER_SAFE_BROWSING_FEATURE_EXTRACTOR_CLOCK_H_ | |
| 9 #define CHROME_RENDERER_SAFE_BROWSING_FEATURE_EXTRACTOR_CLOCK_H_ | |
| 10 | |
| 11 #include "base/macros.h" | |
| 12 #include "base/time/time.h" | |
| 13 | |
| 14 namespace safe_browsing { | |
| 15 | |
| 16 class FeatureExtractorClock { | |
| 17 public: | |
| 18 FeatureExtractorClock() {} | |
| 19 virtual ~FeatureExtractorClock(); | |
| 20 | |
| 21 // Returns the current time. May be mocked for testing. | |
| 22 virtual base::TimeTicks Now(); | |
| 23 | |
| 24 private: | |
| 25 DISALLOW_COPY_AND_ASSIGN(FeatureExtractorClock); | |
| 26 }; | |
| 27 | |
| 28 } // namespace safe_browsing | |
| 29 | |
| 30 #endif // CHROME_RENDERER_SAFE_BROWSING_FEATURE_EXTRACTOR_CLOCK_H_ | |
| OLD | NEW |