// 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. #ifdef UNSAFE_BUFFERS_BUILD // TODO(crbug.com/40285824): Remove this and convert code to safer constructs. #pragma allow_unsafe_buffers #endif #include <iostream> #include "cronet_c.h" #include "sample_executor.h" #include "sample_url_request_callback.h" Cronet_EnginePtr CreateCronetEngine() { … } void PerformRequest(Cronet_EnginePtr cronet_engine, const std::string& url, Cronet_ExecutorPtr executor) { … } // Download a resource from the Internet. Optional argument must specify // a valid URL. int main(int argc, const char* argv[]) { … }