tor-browser

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

client_base.h (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 #ifndef CONTENT_ANALYSIS_BROWSER_SRC_CLIENT_BASE_H_
      6 #define CONTENT_ANALYSIS_BROWSER_SRC_CLIENT_BASE_H_
      7 
      8 #include "content_analysis/sdk/analysis_client.h"
      9 
     10 namespace content_analysis {
     11 namespace sdk {
     12 
     13 // Base Client class with code common to all platforms.
     14 class ClientBase : public Client {
     15 public:
     16  // Client:
     17  const Config& GetConfig() const override;
     18  const AgentInfo& GetAgentInfo() const override;
     19 
     20 protected:
     21  ClientBase(Config config);
     22 
     23  const Config& configuration() const { return config_; }
     24  AgentInfo& agent_info() { return agent_info_; }
     25 
     26 private:
     27  Config config_;
     28  AgentInfo agent_info_;
     29 };
     30 
     31 }  // namespace sdk
     32 }  // namespace content_analysis
     33 
     34 #endif  // CONTENT_ANALYSIS_BROWSER_SRC_CLIENT_BASE_H_