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

Unified Diff: ppapi/thunk/ppb_pdf_thunk.cc

Issue 2299943002: Record the PDF and top level URL when the PDF plugin crashes. (Closed)
Patch Set: fix typo Created 4 years, 3 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 | « ppapi/thunk/ppb_pdf_api.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/thunk/ppb_pdf_thunk.cc
diff --git a/ppapi/thunk/ppb_pdf_thunk.cc b/ppapi/thunk/ppb_pdf_thunk.cc
index fbf154a5dc5ccb78aa19266418b53c25c2ade63a..d291b0211ac169ccd2f79b01db28e138d0a035d4 100644
--- a/ppapi/thunk/ppb_pdf_thunk.cc
+++ b/ppapi/thunk/ppb_pdf_thunk.cc
@@ -160,24 +160,34 @@ void SetAccessibilityPageInfo(
enter.functions()->SetAccessibilityPageInfo(page_info, text_runs, chars);
}
+void SetCrashData(PP_Instance instance,
+ const char* pdf_url,
+ const char* top_level_url) {
+ EnterInstanceAPI<PPB_PDF_API> enter(instance);
+ if (enter.failed())
+ return;
+ enter.functions()->SetCrashData(pdf_url, top_level_url);
+}
+
const PPB_PDF g_ppb_pdf_thunk = {
- &GetFontFileWithFallback,
- &GetFontTableForPrivateFontFile,
- &SearchString,
- &DidStartLoading,
- &DidStopLoading,
- &SetContentRestriction,
- &UserMetricsRecordAction,
- &HasUnsupportedFeature,
- &SaveAs,
- &Print,
- &IsFeatureEnabled,
- &SetSelectedText,
- &SetLinkUnderCursor,
- &GetV8ExternalSnapshotData,
- &SetAccessibilityViewportInfo,
- &SetAccessibilityDocInfo,
- &SetAccessibilityPageInfo
+ &GetFontFileWithFallback,
+ &GetFontTableForPrivateFontFile,
+ &SearchString,
+ &DidStartLoading,
+ &DidStopLoading,
+ &SetContentRestriction,
+ &UserMetricsRecordAction,
+ &HasUnsupportedFeature,
+ &SaveAs,
+ &Print,
+ &IsFeatureEnabled,
+ &SetSelectedText,
+ &SetLinkUnderCursor,
+ &GetV8ExternalSnapshotData,
+ &SetAccessibilityViewportInfo,
+ &SetAccessibilityDocInfo,
+ &SetAccessibilityPageInfo,
+ &SetCrashData,
};
} // namespace
« no previous file with comments | « ppapi/thunk/ppb_pdf_api.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698