Chromium Code Reviews| 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..00d8444037fb3fa1c04e1f103fcc65ada6b018ab 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* embedder_url) { |
|
raymes
2016/09/05 04:11:47
nit: top_level_url
Lei Zhang
2016/09/07 00:12:39
Done.
|
| + EnterInstanceAPI<PPB_PDF_API> enter(instance); |
| + if (enter.failed()) |
| + return; |
| + enter.functions()->SetCrashData(pdf_url, embedder_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 |