// Copyright 2014 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include #include namespace brillo { namespace http { const char kErrorDomain[] = "http_transport"; const char kDirectProxy[] = "direct://"; std::shared_ptr Transport::CreateDefault() { return std::make_shared(std::make_shared()); } std::shared_ptr Transport::CreateDefaultWithProxy( const std::string& proxy) { if (proxy.empty() || proxy == kDirectProxy) { return CreateDefault(); } else { return std::make_shared(std::make_shared(), proxy); } } } // namespace http } // namespace brillo