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

Side by Side Diff: content/public/browser/background_tracing_reactive_config.h

Issue 1148393003: Implement Reactive Configuration in Background Tracing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase files depending on reactive config Created 5 years, 6 months 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 | « content/public/browser/background_tracing_manager.h ('k') | no next file » | 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_PUBLIC_BROWSER_BACKGROUND_TRACING_REACTIVE_CONFIG_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_BACKGROUND_TRACING_REACTIVE_CONFIG_H_
6 #define CONTENT_PUBLIC_BROWSER_BACKGROUND_TRACING_REACTIVE_CONFIG_H_ 6 #define CONTENT_PUBLIC_BROWSER_BACKGROUND_TRACING_REACTIVE_CONFIG_H_
7 7
8 #include "content/public/browser/background_tracing_config.h" 8 #include "content/public/browser/background_tracing_config.h"
9 9
10 namespace content { 10 namespace content {
11 11
12 // BackgroundTracingReactiveConfig holds trigger rules for use during 12 // BackgroundTracingReactiveConfig holds trigger rules for use during
13 // reactive tracing. Tracing will be not be enabled immediately, rather 13 // reactive tracing. Tracing will be not be enabled immediately, rather
14 // the BackgroundTracingManager will wait for a trigger to occur, and 14 // the BackgroundTracingManager will wait for a trigger to occur, and
15 // enable tracing at that point. Tracing will be finalized later, either 15 // enable tracing at that point. Tracing will be finalized later, either
16 // after some time has elapsed or the trigger occurs again. 16 // after some time has elapsed or the trigger occurs again.
17 struct CONTENT_EXPORT BackgroundTracingReactiveConfig 17 struct CONTENT_EXPORT BackgroundTracingReactiveConfig
18 : public BackgroundTracingConfig { 18 : public BackgroundTracingConfig {
19 public: 19 public:
20 BackgroundTracingReactiveConfig(); 20 BackgroundTracingReactiveConfig();
21 ~BackgroundTracingReactiveConfig() override; 21 ~BackgroundTracingReactiveConfig() override;
22 22
23 enum RuleType { TRACE_ON_MANUAL_TRIGGER_UNTIL_10S_OR_NEXT_TRIGGER_OR_FULL }; 23 enum RuleType { TRACE_FOR_10S_OR_TRIGGER_OR_FULL };
24 struct TracingRule { 24 struct TracingRule {
25 RuleType type; 25 RuleType type;
26 std::string trigger_name; 26 std::string trigger_name;
27 CategoryPreset category_preset; 27 CategoryPreset category_preset;
28 }; 28 };
29 29
30 std::vector<TracingRule> configs; 30 std::vector<TracingRule> configs;
31 }; 31 };
32 32
33 } // namespace content 33 } // namespace content
34 34
35 #endif // CONTENT_PUBLIC_BROWSER_BACKGROUND_TRACING_REACTIVE_CONFIG_H_ 35 #endif // CONTENT_PUBLIC_BROWSER_BACKGROUND_TRACING_REACTIVE_CONFIG_H_
OLDNEW
« no previous file with comments | « content/public/browser/background_tracing_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698