Fix emulator build error
[platform/framework/web/chromium-efl.git] / components / browsing_topics / annotator_noop.h
1 // Copyright 2023 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 #ifndef COMPONENTS_BROWSING_TOPICS_ANNOTATOR_NOOP_H_
6 #define COMPONENTS_BROWSING_TOPICS_ANNOTATOR_NOOP_H_
7
8 #include "components/browsing_topics/annotator.h"
9
10 namespace browsing_topics {
11
12 // A no-op annotator when TFLite is not available by buildflag.
13 class AnnotatorNoOp : public Annotator {
14  public:
15   using BatchAnnotationCallback =
16       base::OnceCallback<void(const std::vector<Annotation>&)>;
17
18   AnnotatorNoOp();
19   ~AnnotatorNoOp() override;
20
21   // Annotator:
22   void BatchAnnotate(BatchAnnotationCallback callback,
23                      const std::vector<std::string>& inputs) override;
24   void NotifyWhenModelAvailable(base::OnceClosure callback) override;
25   absl::optional<optimization_guide::ModelInfo> GetBrowsingTopicsModelInfo()
26       const override;
27 };
28
29 }  // namespace browsing_topics
30
31 #endif  // COMPONENTS_BROWSING_TOPICS_ANNOTATOR_NOOP_H_