OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_COMMON_SYNTHETIC_DELAY_CONFIGURATION_H_ |
| 6 #define CONTENT_COMMON_SYNTHETIC_DELAY_CONFIGURATION_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "base/time/time.h" |
| 11 #include "content/common/content_export.h" |
| 12 |
| 13 namespace content { |
| 14 |
| 15 struct CONTENT_EXPORT SyntheticDelayConfiguration { |
| 16 SyntheticDelayConfiguration(); |
| 17 ~SyntheticDelayConfiguration(); |
| 18 |
| 19 // Duplicated from base::debug::TraceEventSyntheticDelay since the same enum |
| 20 // cannot be used in two different IPC message sets. |
| 21 enum Mode { |
| 22 STATIC, |
| 23 ONE_SHOT, |
| 24 ALTERNATING |
| 25 }; |
| 26 |
| 27 std::string name; |
| 28 base::TimeDelta target_duration; |
| 29 Mode mode; |
| 30 }; |
| 31 |
| 32 } // namespace content |
| 33 |
| 34 #endif // CONTENT_COMMON_SYNTHETIC_DELAY_CONFIGURATION_H_ |
OLD | NEW |