summaryrefslogtreecommitdiffstats
path: root/third_party/content_analysis_sdk/agent/src/agent_mac.cc
blob: 5bbac5fe49eab0b3a28a8b47737a2c9c635e1c84 (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.

#include "agent_mac.h"
#include "event_mac.h"

namespace content_analysis {
namespace sdk {

// static
std::unique_ptr<Agent> Agent::Create(
    Config config,
    std::unique_ptr<AgentEventHandler> handler,
    ResultCode* rc) {
  *rc = ResultCode::ERR_UNEXPECTED;
  return std::make_unique<AgentMac>(std::move(config), std::move(handler));
}

AgentMac::AgentMac(
    Config config,
    std::unique_ptr<AgentEventHandler> handler)
  : AgentBase(std::move(config), std::move(handler)) {}

ResultCode AgentMac::HandleEvents() {
  return ResultCode::ERR_UNEXPECTED;
}

std::string AgentMac::DebugString() const {
  return std::string();
}

}  // namespace sdk
}  // namespace content_analysis