Fix emulator build error
[platform/framework/web/chromium-efl.git] / components / browsing_topics / candidate_topic.cc
1 // Copyright 2022 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "components/browsing_topics/candidate_topic.h"
6
7 namespace browsing_topics {
8
9 // static
10 CandidateTopic CandidateTopic::Create(Topic topic,
11                                       bool is_true_topic,
12                                       bool should_be_filtered,
13                                       int config_version,
14                                       int taxonomy_version,
15                                       int64_t model_version) {
16   DCHECK_NE(topic, Topic(0));
17
18   return CandidateTopic(topic, is_true_topic, should_be_filtered,
19                         config_version, taxonomy_version, model_version);
20 }
21
22 // static
23 CandidateTopic CandidateTopic::CreateInvalid() {
24   return CandidateTopic(Topic(0), /*is_true_topic=*/false,
25                         /*should_be_filtered=*/false,
26                         /*config_version=*/0,
27                         /*taxonomy_version=*/0,
28                         /*model_version=*/0);
29 }
30
31 CandidateTopic::CandidateTopic(Topic topic,
32                                bool is_true_topic,
33                                bool should_be_filtered,
34                                int config_version,
35                                int taxonomy_version,
36                                int64_t model_version)
37     : topic_(topic),
38       is_true_topic_(is_true_topic),
39       should_be_filtered_(should_be_filtered),
40       config_version_(config_version),
41       taxonomy_version_(taxonomy_version),
42       model_version_(model_version) {}
43
44 }  // namespace browsing_topics