blob: 664b893797c0037d3380a72073c7d3022680ef9a [file] [log] [blame]
K. Moon832a6942022-10-31 20:11:31 +00001// Copyright 2016 The PDFium Authors
weili9f515bc2016-07-24 08:08:24 -07002// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
Tom Sepez269f2ae2019-08-20 19:31:17 +00007#include "fpdfsdk/cpdfsdk_pauseadapter.h"
weili9f515bc2016-07-24 08:08:24 -07008
Tom Sepez269f2ae2019-08-20 19:31:17 +00009CPDFSDK_PauseAdapter::CPDFSDK_PauseAdapter(IFSDK_PAUSE* IPause)
Tom Sepezb3466cc2025-04-08 11:19:03 -070010 : pause_(IPause) {}
weili9f515bc2016-07-24 08:08:24 -070011
Tom Sepez269f2ae2019-08-20 19:31:17 +000012CPDFSDK_PauseAdapter::~CPDFSDK_PauseAdapter() = default;
weili9f515bc2016-07-24 08:08:24 -070013
Tom Sepez269f2ae2019-08-20 19:31:17 +000014bool CPDFSDK_PauseAdapter::NeedToPauseNow() {
Tom Sepezb3466cc2025-04-08 11:19:03 -070015 return pause_->NeedToPauseNow && pause_->NeedToPauseNow(pause_);
weili9f515bc2016-07-24 08:08:24 -070016}