summaryrefslogtreecommitdiff
path: root/chromium/components/pdf/renderer/pepper_pdf_host.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/components/pdf/renderer/pepper_pdf_host.h')
-rw-r--r--chromium/components/pdf/renderer/pepper_pdf_host.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/chromium/components/pdf/renderer/pepper_pdf_host.h b/chromium/components/pdf/renderer/pepper_pdf_host.h
index 89d786f224e..5e838c9e34b 100644
--- a/chromium/components/pdf/renderer/pepper_pdf_host.h
+++ b/chromium/components/pdf/renderer/pepper_pdf_host.h
@@ -7,7 +7,9 @@
#include <stdint.h>
+#include <memory>
#include <string>
+#include <vector>
#include "base/compiler_specific.h"
#include "base/macros.h"
@@ -24,18 +26,17 @@ class SkBitmap;
namespace content {
class PepperPluginInstance;
+class RenderFrame;
class RendererPpapiHost;
}
namespace ppapi {
class HostResource;
-}
-namespace ppapi {
namespace host {
struct HostMessageContext;
-}
-}
+} // namespace host
+} // namespace ppapi
namespace pdf {
@@ -71,6 +72,7 @@ class PepperPDFHost : public ppapi::host::ResourceHost {
// PPB_PDF_Impl instance.
static void SetPrintClient(PrintClient* print_client);
+ // ppapi::host::ResourceHost:
int32_t OnResourceMessageReceived(
const IPC::Message& msg,
ppapi::host::HostMessageContext* context) override;
@@ -104,12 +106,13 @@ class PepperPDFHost : public ppapi::host::ResourceHost {
const std::vector<PP_PrivateAccessibilityTextRunInfo>& text_runs,
const std::vector<PP_PrivateAccessibilityCharInfo>& chars);
- void CreatePdfAccessibilityTreeIfNeeded(
- content::PepperPluginInstance* instance);
+ void CreatePdfAccessibilityTreeIfNeeded();
+
+ content::RenderFrame* GetRenderFrame();
std::unique_ptr<PdfAccessibilityTree> pdf_accessibility_tree_;
- content::RendererPpapiHost* host_;
+ content::RendererPpapiHost* const host_;
DISALLOW_COPY_AND_ASSIGN(PepperPDFHost);
};