1 // Copyright 2018 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include "chromeos/services/assistant/chromium_api_delegate.h"
6 
7 #include <utility>
8 
9 #include "base/single_thread_task_runner.h"
10 #include "services/network/public/cpp/shared_url_loader_factory.h"
11 
12 namespace chromeos {
13 namespace assistant {
14 
ChromiumApiDelegate(std::unique_ptr<network::PendingSharedURLLoaderFactory> pending_url_loader_factory)15 ChromiumApiDelegate::ChromiumApiDelegate(
16     std::unique_ptr<network::PendingSharedURLLoaderFactory>
17         pending_url_loader_factory)
18     : http_connection_factory_(std::move(pending_url_loader_factory)) {}
19 
20 ChromiumApiDelegate::~ChromiumApiDelegate() = default;
21 
22 assistant_client::HttpConnectionFactory*
GetHttpConnectionFactory()23 ChromiumApiDelegate::GetHttpConnectionFactory() {
24   return &http_connection_factory_;
25 }
26 
27 }  // namespace assistant
28 }  // namespace chromeos
29