| 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/memory/scoped_vector.h" | 8 #include "base/memory/scoped_vector.h" |
| 9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 #include "content/public/browser/background_tracing_config.h" | 10 #include "content/public/browser/background_tracing_config.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 // From BackgroundTracingConfig | 22 // From BackgroundTracingConfig |
| 23 void IntoDict(base::DictionaryValue* dict) const override; | 23 void IntoDict(base::DictionaryValue* dict) const override; |
| 24 | 24 |
| 25 enum CategoryPreset { | 25 enum CategoryPreset { |
| 26 BENCHMARK, | 26 BENCHMARK, |
| 27 BENCHMARK_DEEP, | 27 BENCHMARK_DEEP, |
| 28 BENCHMARK_GPU, | 28 BENCHMARK_GPU, |
| 29 BENCHMARK_IPC, | 29 BENCHMARK_IPC, |
| 30 BENCHMARK_STARTUP, | 30 BENCHMARK_STARTUP, |
| 31 BLINK_STYLE |
| 31 }; | 32 }; |
| 32 | 33 |
| 33 CategoryPreset category_preset() const { return category_preset_; } | 34 CategoryPreset category_preset() const { return category_preset_; } |
| 34 void set_category_preset(CategoryPreset category_preset) { | 35 void set_category_preset(CategoryPreset category_preset) { |
| 35 category_preset_ = category_preset; | 36 category_preset_ = category_preset; |
| 36 } | 37 } |
| 37 | 38 |
| 38 const ScopedVector<BackgroundTracingRule>& rules() const { return rules_; } | 39 const ScopedVector<BackgroundTracingRule>& rules() const { return rules_; } |
| 39 | 40 |
| 40 void AddPreemptiveRule(const base::DictionaryValue* dict); | 41 void AddPreemptiveRule(const base::DictionaryValue* dict); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 59 private: | 60 private: |
| 60 CategoryPreset category_preset_; | 61 CategoryPreset category_preset_; |
| 61 ScopedVector<BackgroundTracingRule> rules_; | 62 ScopedVector<BackgroundTracingRule> rules_; |
| 62 | 63 |
| 63 DISALLOW_COPY_AND_ASSIGN(BackgroundTracingConfigImpl); | 64 DISALLOW_COPY_AND_ASSIGN(BackgroundTracingConfigImpl); |
| 64 }; | 65 }; |
| 65 | 66 |
| 66 } // namespace content | 67 } // namespace content |
| 67 | 68 |
| 68 #endif // CONTENT_BROWSER_TRACING_BACKGROUND_TRACING_CONFIG_IMPL_H_ | 69 #endif // CONTENT_BROWSER_TRACING_BACKGROUND_TRACING_CONFIG_IMPL_H_ |
| OLD | NEW |