Rename IPDFSDK_PauseAdapater to CPDFSDK_PauseAdapter.
It is a concrete implementation of a different interface.
Change-Id: I251f2baae7e622992f8d4a8af5c8d0ab6b0e0186
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/59791
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
diff --git a/fpdfsdk/cpdfsdk_pauseadapter.cpp b/fpdfsdk/cpdfsdk_pauseadapter.cpp
new file mode 100644
index 0000000..bf3f1c7
--- /dev/null
+++ b/fpdfsdk/cpdfsdk_pauseadapter.cpp
@@ -0,0 +1,16 @@
+// Copyright 2016 PDFium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
+
+#include "fpdfsdk/cpdfsdk_pauseadapter.h"
+
+CPDFSDK_PauseAdapter::CPDFSDK_PauseAdapter(IFSDK_PAUSE* IPause)
+ : m_IPause(IPause) {}
+
+CPDFSDK_PauseAdapter::~CPDFSDK_PauseAdapter() = default;
+
+bool CPDFSDK_PauseAdapter::NeedToPauseNow() {
+ return m_IPause->NeedToPauseNow && m_IPause->NeedToPauseNow(m_IPause.Get());
+}