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

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

Issue 2667343006: Componentize safe_browsing [X+1] : move the renderer part to component.
Patch Set: Created 3 years, 10 months 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
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 COMPONENTS_SAFE_BROWSING_RENDERER_FEATURE_EXTRACTOR_CLOCK_H_
9 #define CHROME_RENDERER_SAFE_BROWSING_FEATURE_EXTRACTOR_CLOCK_H_ 9 #define COMPONENTS_SAFE_BROWSING_RENDERER_FEATURE_EXTRACTOR_CLOCK_H_
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/time/time.h" 12 #include "base/time/time.h"
13 13
14 namespace safe_browsing { 14 namespace safe_browsing {
15 15
16 class FeatureExtractorClock { 16 class FeatureExtractorClock {
17 public: 17 public:
18 FeatureExtractorClock() {} 18 FeatureExtractorClock() {}
19 virtual ~FeatureExtractorClock(); 19 virtual ~FeatureExtractorClock();
20 20
21 // Returns the current time. May be mocked for testing. 21 // Returns the current time. May be mocked for testing.
22 virtual base::TimeTicks Now(); 22 virtual base::TimeTicks Now();
23 23
24 private: 24 private:
25 DISALLOW_COPY_AND_ASSIGN(FeatureExtractorClock); 25 DISALLOW_COPY_AND_ASSIGN(FeatureExtractorClock);
26 }; 26 };
27 27
28 } // namespace safe_browsing 28 } // namespace safe_browsing
29 29
30 #endif // CHROME_RENDERER_SAFE_BROWSING_FEATURE_EXTRACTOR_CLOCK_H_ 30 #endif // COMPONENTS_SAFE_BROWSING_RENDERER_FEATURE_EXTRACTOR_CLOCK_H_
OLDNEW
« no previous file with comments | « components/safe_browsing/renderer/OWNERS ('k') | components/safe_browsing/renderer/feature_extractor_clock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698