blob: e44eef1fb0c513d9aae6c933a34ac322da36ac93 [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#ifndef FPDFSDK_CPDFSDK_PAUSEADAPTER_H_
8#define FPDFSDK_CPDFSDK_PAUSEADAPTER_H_
weili9f515bc2016-07-24 08:08:24 -07009
Dan Sinclaira32145f2018-03-06 18:53:05 +000010#include "core/fxcrt/pauseindicator_iface.h"
Dan Sinclairaee0db02017-09-21 16:53:58 -040011#include "core/fxcrt/unowned_ptr.h"
weili9f515bc2016-07-24 08:08:24 -070012#include "public/fpdf_progressive.h"
13
Tom Sepez269f2ae2019-08-20 19:31:17 +000014class CPDFSDK_PauseAdapter final : public PauseIndicatorIface {
weili9f515bc2016-07-24 08:08:24 -070015 public:
Tom Sepez269f2ae2019-08-20 19:31:17 +000016 explicit CPDFSDK_PauseAdapter(IFSDK_PAUSE* IPause);
17 ~CPDFSDK_PauseAdapter() override;
weili9f515bc2016-07-24 08:08:24 -070018
tsepez4cf55152016-11-02 14:37:54 -070019 bool NeedToPauseNow() override;
weili9f515bc2016-07-24 08:08:24 -070020
21 private:
Dan Sinclairaee0db02017-09-21 16:53:58 -040022 UnownedPtr<IFSDK_PAUSE> const m_IPause;
weili9f515bc2016-07-24 08:08:24 -070023};
24
Tom Sepez269f2ae2019-08-20 19:31:17 +000025#endif // FPDFSDK_CPDFSDK_PAUSEADAPTER_H_