Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_PUBLIC_BROWSER_BACKGROUND_TRACING_CONFIG_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_BACKGROUND_TRACING_CONFIG_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_BACKGROUND_TRACING_CONFIG_H_ | 6 #define CONTENT_PUBLIC_BROWSER_BACKGROUND_TRACING_CONFIG_H_ |
| 7 | 7 |
| 8 #include "base/trace_event/trace_event_impl.h" | 8 #include "base/trace_event/trace_event_impl.h" |
| 9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 22 enum Mode { | 22 enum Mode { |
| 23 PREEMPTIVE_TRACING_MODE, | 23 PREEMPTIVE_TRACING_MODE, |
| 24 REACTIVE_TRACING_MODE, | 24 REACTIVE_TRACING_MODE, |
| 25 }; | 25 }; |
| 26 enum CategoryPreset { | 26 enum CategoryPreset { |
| 27 BENCHMARK, | 27 BENCHMARK, |
| 28 BENCHMARK_DEEP, | 28 BENCHMARK_DEEP, |
| 29 }; | 29 }; |
| 30 | 30 |
| 31 Mode mode; | 31 Mode mode; |
| 32 bool compress_trace; | |
|
shatch
2015/05/22 22:21:37
Like we talked about, don't change interface just
| |
| 32 | 33 |
| 33 static BackgroundTracingConfig* FromDict(const base::DictionaryValue* dict); | 34 static BackgroundTracingConfig* FromDict(const base::DictionaryValue* dict); |
| 34 static void IntoDict(const BackgroundTracingConfig* config, | 35 static void IntoDict(const BackgroundTracingConfig* config, |
| 35 base::DictionaryValue* dict); | 36 base::DictionaryValue* dict); |
| 36 | 37 |
| 37 protected: | 38 protected: |
| 38 BackgroundTracingConfig(Mode mode); | 39 BackgroundTracingConfig(Mode mode); |
| 39 }; | 40 }; |
| 40 | 41 |
| 41 } // namespace content | 42 } // namespace content |
| 42 | 43 |
| 43 #endif // CONTENT_PUBLIC_BROWSER_BACKGROUND_TRACING_CONFIG_H_ | 44 #endif // CONTENT_PUBLIC_BROWSER_BACKGROUND_TRACING_CONFIG_H_ |
| OLD | NEW |