OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef CONTENT_RENDERER_STATS_COLLECTION_OBSERVER_H_ | 5 #ifndef CONTENT_RENDERER_STATS_COLLECTION_OBSERVER_H_ |
6 #define CONTENT_RENDERER_STATS_COLLECTION_OBSERVER_H_ | 6 #define CONTENT_RENDERER_STATS_COLLECTION_OBSERVER_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "base/time/time.h" | 9 #include "base/time/time.h" |
9 #include "content/public/renderer/render_view_observer.h" | 10 #include "content/public/renderer/render_view_observer.h" |
10 | 11 |
11 namespace content { | 12 namespace content { |
12 | 13 |
13 class RenderViewImpl; | 14 class RenderViewImpl; |
14 | 15 |
15 // Collect timing information for page loads. | 16 // Collect timing information for page loads. |
16 // If a Renderview performs multiple loads, only the first one is recorded. | 17 // If a Renderview performs multiple loads, only the first one is recorded. |
17 class StatsCollectionObserver : public RenderViewObserver { | 18 class StatsCollectionObserver : public RenderViewObserver { |
(...skipping 13 matching lines...) Expand all Loading... |
31 private: | 32 private: |
32 base::Time start_time_; | 33 base::Time start_time_; |
33 base::Time stop_time_; | 34 base::Time stop_time_; |
34 | 35 |
35 DISALLOW_COPY_AND_ASSIGN(StatsCollectionObserver); | 36 DISALLOW_COPY_AND_ASSIGN(StatsCollectionObserver); |
36 }; | 37 }; |
37 | 38 |
38 } // namespace content | 39 } // namespace content |
39 | 40 |
40 #endif // CONTENT_RENDERER_STATS_COLLECTION_OBSERVER_H_ | 41 #endif // CONTENT_RENDERER_STATS_COLLECTION_OBSERVER_H_ |
OLD | NEW |