blob: c206261213892af4ea79e01dff78021f83f98f4b (
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
35
36
|
// 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 <utility>
#include "agent_posix.h"
#include "event_posix.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<AgentPosix>(std::move(config), std::move(handler));
}
AgentPosix::AgentPosix(
Config config,
std::unique_ptr<AgentEventHandler> handler)
: AgentBase(std::move(config), std::move(handler)) {}
ResultCode AgentPosix::HandleEvents() {
return ResultCode::ERR_UNEXPECTED;
}
std::string AgentPosix::DebugString() const {
return std::string();
}
} // namespace sdk
} // namespace content_analysis
|