| 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_BROWSER_TRACING_BACKGROUND_TRACING_CONFIG_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_TRACING_BACKGROUND_TRACING_CONFIG_IMPL_H_ |
| 6 #define CONTENT_BROWSER_TRACING_BACKGROUND_TRACING_CONFIG_IMPL_H_ | 6 #define CONTENT_BROWSER_TRACING_BACKGROUND_TRACING_CONFIG_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/gtest_prod_util.h" | 8 #include "base/gtest_prod_util.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 // From BackgroundTracingConfig | 24 // From BackgroundTracingConfig |
| 25 void IntoDict(base::DictionaryValue* dict) const override; | 25 void IntoDict(base::DictionaryValue* dict) const override; |
| 26 | 26 |
| 27 enum CategoryPreset { | 27 enum CategoryPreset { |
| 28 BENCHMARK, | 28 BENCHMARK, |
| 29 BENCHMARK_DEEP, | 29 BENCHMARK_DEEP, |
| 30 BENCHMARK_GPU, | 30 BENCHMARK_GPU, |
| 31 BENCHMARK_IPC, | 31 BENCHMARK_IPC, |
| 32 BENCHMARK_STARTUP, | 32 BENCHMARK_STARTUP, |
| 33 BENCHMARK_BLINK_GC, |
| 33 BLINK_STYLE | 34 BLINK_STYLE |
| 34 }; | 35 }; |
| 35 | 36 |
| 36 CategoryPreset category_preset() const { return category_preset_; } | 37 CategoryPreset category_preset() const { return category_preset_; } |
| 37 void set_category_preset(CategoryPreset category_preset) { | 38 void set_category_preset(CategoryPreset category_preset) { |
| 38 category_preset_ = category_preset; | 39 category_preset_ = category_preset; |
| 39 } | 40 } |
| 40 | 41 |
| 41 const ScopedVector<BackgroundTracingRule>& rules() const { return rules_; } | 42 const ScopedVector<BackgroundTracingRule>& rules() const { return rules_; } |
| 42 const std::string& scenario_name() const { return scenario_name_; } | 43 const std::string& scenario_name() const { return scenario_name_; } |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 std::string scenario_name_; | 76 std::string scenario_name_; |
| 76 std::string enable_blink_features_; | 77 std::string enable_blink_features_; |
| 77 std::string disable_blink_features_; | 78 std::string disable_blink_features_; |
| 78 | 79 |
| 79 DISALLOW_COPY_AND_ASSIGN(BackgroundTracingConfigImpl); | 80 DISALLOW_COPY_AND_ASSIGN(BackgroundTracingConfigImpl); |
| 80 }; | 81 }; |
| 81 | 82 |
| 82 } // namespace content | 83 } // namespace content |
| 83 | 84 |
| 84 #endif // CONTENT_BROWSER_TRACING_BACKGROUND_TRACING_CONFIG_IMPL_H_ | 85 #endif // CONTENT_BROWSER_TRACING_BACKGROUND_TRACING_CONFIG_IMPL_H_ |
| OLD | NEW |