task_queue_factory.h 979 B

123456789101112131415161718192021222324
  1. // Copyright 2021 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. #ifndef THIRD_PARTY_WEBRTC_OVERRIDES_TASK_QUEUE_FACTORY_H_
  5. #define THIRD_PARTY_WEBRTC_OVERRIDES_TASK_QUEUE_FACTORY_H_
  6. #include <memory>
  7. #include "base/feature_list.h"
  8. #include "base/memory/scoped_refptr.h"
  9. #include "third_party/webrtc/api/task_queue/task_queue_factory.h"
  10. #include "third_party/webrtc/rtc_base/system/rtc_export.h"
  11. // Creates a factory for webrtc::TaskQueueBase that is backed by a
  12. // blink::MetronomeSource. Tested by
  13. // /third_party/blink/renderer/platform/peerconnection/task_queue_factory_test.cc
  14. RTC_EXPORT std::unique_ptr<webrtc::TaskQueueFactory>
  15. CreateWebRtcTaskQueueFactory();
  16. RTC_EXPORT std::unique_ptr<webrtc::TaskQueueBase, webrtc::TaskQueueDeleter>
  17. CreateWebRtcTaskQueue(webrtc::TaskQueueFactory::Priority priority);
  18. #endif // THIRD_PARTY_WEBRTC_OVERRIDES_TASK_QUEUE_FACTORY_H_