Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Side by Side Diff: content/browser/tracing/background_tracing_config_impl.h

Issue 1423133007: Background tracing: Added preset category for blink_style (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/tracing/background_tracing_config_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | content/browser/tracing/background_tracing_config_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698