• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2017 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 /*******************************************************************************
18  * AUTOGENERATED - DO NOT EDIT
19  *******************************************************************************
20  * This file has been generated from the protobuf message
21  * perfetto/config/chrome/chrome_config.proto
22  * by
23  * ../../tools/proto_to_cpp/proto_to_cpp.cc.
24  * If you need to make changes here, change the .proto file and then run
25  * ./tools/gen_tracing_cpp_headers_from_protos
26  */
27 
28 #ifndef INCLUDE_PERFETTO_TRACING_CORE_CHROME_CONFIG_H_
29 #define INCLUDE_PERFETTO_TRACING_CORE_CHROME_CONFIG_H_
30 
31 #include <stdint.h>
32 #include <string>
33 #include <type_traits>
34 #include <vector>
35 
36 #include "perfetto/base/export.h"
37 
38 // Forward declarations for protobuf types.
39 namespace perfetto {
40 namespace protos {
41 class ChromeConfig;
42 }
43 }  // namespace perfetto
44 
45 namespace perfetto {
46 
47 class PERFETTO_EXPORT ChromeConfig {
48  public:
49   ChromeConfig();
50   ~ChromeConfig();
51   ChromeConfig(ChromeConfig&&) noexcept;
52   ChromeConfig& operator=(ChromeConfig&&);
53   ChromeConfig(const ChromeConfig&);
54   ChromeConfig& operator=(const ChromeConfig&);
55   bool operator==(const ChromeConfig&) const;
56   bool operator!=(const ChromeConfig& other) const { return !(*this == other); }
57 
58   // Conversion methods from/to the corresponding protobuf types.
59   void FromProto(const perfetto::protos::ChromeConfig&);
60   void ToProto(perfetto::protos::ChromeConfig*) const;
61 
trace_config()62   const std::string& trace_config() const { return trace_config_; }
set_trace_config(const std::string & value)63   void set_trace_config(const std::string& value) { trace_config_ = value; }
64 
privacy_filtering_enabled()65   bool privacy_filtering_enabled() const { return privacy_filtering_enabled_; }
set_privacy_filtering_enabled(bool value)66   void set_privacy_filtering_enabled(bool value) {
67     privacy_filtering_enabled_ = value;
68   }
69 
70  private:
71   std::string trace_config_ = {};
72   bool privacy_filtering_enabled_ = {};
73 
74   // Allows to preserve unknown protobuf fields for compatibility
75   // with future versions of .proto files.
76   std::string unknown_fields_;
77 };
78 
79 }  // namespace perfetto
80 
81 #endif  // INCLUDE_PERFETTO_TRACING_CORE_CHROME_CONFIG_H_
82