Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Side by Side Diff: chrome/renderer/safe_browsing/feature_extractor_clock.h

Issue 5841002: Finish deinlining virtual methods. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revert parts of the balloon modifications Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 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 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 // A simple abstraction for getting the current time during feature extraction. 5 // A simple abstraction for getting the current time during feature extraction.
6 // This can be mocked out for testing. 6 // This can be mocked out for testing.
7 7
8 #ifndef CHROME_RENDERER_SAFE_BROWSING_FEATURE_EXTRACTOR_CLOCK_H_ 8 #ifndef CHROME_RENDERER_SAFE_BROWSING_FEATURE_EXTRACTOR_CLOCK_H_
9 #define CHROME_RENDERER_SAFE_BROWSING_FEATURE_EXTRACTOR_CLOCK_H_ 9 #define CHROME_RENDERER_SAFE_BROWSING_FEATURE_EXTRACTOR_CLOCK_H_
10 10
11 #include "base/time.h" 11 #include "base/time.h"
12 12
13 namespace safe_browsing { 13 namespace safe_browsing {
14 14
15 class FeatureExtractorClock { 15 class FeatureExtractorClock {
16 public: 16 public:
17 FeatureExtractorClock() {} 17 FeatureExtractorClock() {}
18 virtual ~FeatureExtractorClock() {} 18 virtual ~FeatureExtractorClock();
19 19
20 // Returns the current time. May be mocked for testing. 20 // Returns the current time. May be mocked for testing.
21 virtual base::TimeTicks Now() { return base::TimeTicks::Now(); } 21 virtual base::TimeTicks Now();
22 22
23 private: 23 private:
24 DISALLOW_COPY_AND_ASSIGN(FeatureExtractorClock); 24 DISALLOW_COPY_AND_ASSIGN(FeatureExtractorClock);
25 }; 25 };
26 26
27 } // namespace safe_browsing 27 } // namespace safe_browsing
28 28
29 #endif // CHROME_RENDERER_SAFE_BROWSING_FEATURE_EXTRACTOR_CLOCK_H_ 29 #endif // CHROME_RENDERER_SAFE_BROWSING_FEATURE_EXTRACTOR_CLOCK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698