summaryrefslogtreecommitdiffstats
path: root/third_party/content_analysis_sdk/browser/src/client_base.h
blob: f8d78493946d77e7beeda61843eb632bc7b593bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Copyright 2022 The Chromium Authors.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CONTENT_ANALYSIS_BROWSER_SRC_CLIENT_BASE_H_
#define CONTENT_ANALYSIS_BROWSER_SRC_CLIENT_BASE_H_

#include "content_analysis/sdk/analysis_client.h"

namespace content_analysis {
namespace sdk {

// Base Client class with code common to all platforms.
class ClientBase : public Client {
 public:
  // Client:
  const Config& GetConfig() const override;
  const AgentInfo& GetAgentInfo() const override;

 protected:
  ClientBase(Config config);

  const Config& configuration() const { return config_; }
  AgentInfo& agent_info() { return agent_info_; }

private:
  Config config_;
  AgentInfo agent_info_;
};

}  // namespace sdk
}  // namespace content_analysis

#endif  // CONTENT_ANALYSIS_BROWSER_SRC_CLIENT_BASE_H_