// 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_DEMO_HANDLER_H_ #define CONTENT_ANALYSIS_DEMO_HANDLER_H_ #include <time.h> #include <chrono> #include <cstdio> #include <fstream> #include <iostream> #include <thread> #include <utility> #include <vector> #include "content_analysis/sdk/analysis_agent.h" #include "demo/atomic_output.h" #include "demo/request_queue.h" // An AgentEventHandler that dumps requests information to stdout and blocks // any requests that have the keyword "block" in their data class Handler : public content_analysis::sdk::AgentEventHandler { … }; // An AgentEventHandler that dumps requests information to stdout and blocks // any requests that have the keyword "block" in their data class QueuingHandler : public Handler { … }; #endif // CONTENT_ANALYSIS_DEMO_HANDLER_H_