// Copyright 2018 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_CRONET_NATIVE_SAMPLE_SAMPLE_EXECUTOR_H_ #define COMPONENTS_CRONET_NATIVE_SAMPLE_SAMPLE_EXECUTOR_H_ // Cronet sample is expected to be used outside of Chromium infrastructure, // and as such has to rely on STL directly instead of //base alternatives. #include <condition_variable> #include <mutex> #include <queue> #include <thread> #include "cronet_c.h" // Sample implementation of Cronet_Executor interface using static // methods to map C API into instance of C++ class. class SampleExecutor { … }; #endif // COMPONENTS_CRONET_NATIVE_SAMPLE_SAMPLE_EXECUTOR_H_