Switch global error menu icon to vectorized MD asset
[chromium-blink-merge.git] / content / public / browser / background_tracing_config.h
blob22d788599a45a36244fdde129fa5d957de52b2d8
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
3 // found in the LICENSE file.
5 #ifndef CONTENT_PUBLIC_BROWSER_BACKGROUND_TRACING_CONFIG_H_
6 #define CONTENT_PUBLIC_BROWSER_BACKGROUND_TRACING_CONFIG_H_
8 #include "base/trace_event/trace_event_impl.h"
9 #include "content/common/content_export.h"
11 namespace base {
12 class DictionaryValue;
15 namespace content {
17 // BackgroundTracingConfig is passed to the BackgroundTracingManager to
18 // setup the trigger rules used to enable/disable background tracing.
19 class CONTENT_EXPORT BackgroundTracingConfig {
20 public:
21 virtual ~BackgroundTracingConfig();
23 enum TracingMode {
24 PREEMPTIVE,
25 REACTIVE,
27 TracingMode tracing_mode() const { return tracing_mode_; }
29 static scoped_ptr<BackgroundTracingConfig> FromDict(
30 const base::DictionaryValue* dict);
32 virtual void IntoDict(base::DictionaryValue* dict) const = 0;
34 private:
35 friend class BackgroundTracingConfigImpl;
36 explicit BackgroundTracingConfig(TracingMode tracing_mode);
38 const TracingMode tracing_mode_;
41 } // namespace content
43 #endif // CONTENT_PUBLIC_BROWSER_BACKGROUND_TRACING_CONFIG_H_