Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(227)

Unified Diff: components/pdf/renderer/pepper_pdf_host.h

Issue 2174963002: Fix a crash in pdf::PepperPDFHost::OnHostMsgHasUnsupportedFeature(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: niiiiiiiits! Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/pdf/renderer/pepper_pdf_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/pdf/renderer/pepper_pdf_host.h
diff --git a/components/pdf/renderer/pepper_pdf_host.h b/components/pdf/renderer/pepper_pdf_host.h
index a4756afcd067f9534aede62a82d15fb5304c84c7..5a41e87c49ba2b3556cef8288e5b5cb781a50805 100644
--- a/components/pdf/renderer/pepper_pdf_host.h
+++ b/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 RenderView;
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;
@@ -106,9 +108,11 @@ class PepperPDFHost : public ppapi::host::ResourceHost {
void CreatePdfAccessibilityTreeIfNeeded();
+ content::RenderView* GetRenderView();
+
std::unique_ptr<PdfAccessibilityTree> pdf_accessibility_tree_;
- content::RendererPpapiHost* host_;
+ content::RendererPpapiHost* const host_;
DISALLOW_COPY_AND_ASSIGN(PepperPDFHost);
};
« no previous file with comments | « no previous file | components/pdf/renderer/pepper_pdf_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698