blob: 5b044c032a19ed24446eda10698c94457350cb9f [file]
// Copyright 2018 The Chromium 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 "chromeos/services/assistant/chromium_api_delegate.h"
#include "base/single_thread_task_runner.h"
#include "chromeos/services/assistant/default_url_request_context_getter.h"
namespace chromeos {
namespace assistant {
ChromiumApiDelegate::ChromiumApiDelegate(
scoped_refptr<base::SingleThreadTaskRunner> io_task_runner)
: http_connection_factory_(
base::MakeRefCounted<DefaultURLRequestContextGetter>(
io_task_runner)) {}
ChromiumApiDelegate::~ChromiumApiDelegate() = default;
assistant_client::HttpConnectionFactory*
ChromiumApiDelegate::GetHttpConnectionFactory() {
return &http_connection_factory_;
}
} // namespace assistant
} // namespace chromeos