tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

agent_posix.cc (870B)


      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 <utility>
      6 
      7 #include "agent_posix.h"
      8 #include "event_posix.h"
      9 
     10 namespace content_analysis {
     11 namespace sdk {
     12 
     13 // static
     14 std::unique_ptr<Agent> Agent::Create(
     15    Config config,
     16    std::unique_ptr<AgentEventHandler> handler,
     17    ResultCode* rc) {
     18  *rc = ResultCode::ERR_UNEXPECTED;
     19  return std::make_unique<AgentPosix>(std::move(config), std::move(handler));
     20 }
     21 
     22 AgentPosix::AgentPosix(
     23    Config config,
     24    std::unique_ptr<AgentEventHandler> handler)
     25  : AgentBase(std::move(config), std::move(handler)) {}
     26 
     27 ResultCode AgentPosix::HandleEvents() {
     28  return ResultCode::ERR_UNEXPECTED;
     29 }
     30 
     31 std::string AgentPosix::DebugString() const {
     32  return std::string();
     33 }
     34 
     35 }  // namespace sdk
     36 }  // namespace content_analysis