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

Side by Side Diff: ppapi/cpp/private/pdf.cc

Issue 2299943002: Record the PDF and top level URL when the PDF plugin crashes. (Closed)
Patch Set: Address comments, fix JS 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ppapi/cpp/private/pdf.h" 5 #include "ppapi/cpp/private/pdf.h"
6 6
7 #include "ppapi/c/trusted/ppb_browser_font_trusted.h" 7 #include "ppapi/c/trusted/ppb_browser_font_trusted.h"
8 #include "ppapi/cpp/image_data.h" 8 #include "ppapi/cpp/image_data.h"
9 #include "ppapi/cpp/instance_handle.h" 9 #include "ppapi/cpp/instance_handle.h"
10 #include "ppapi/cpp/module_impl.h" 10 #include "ppapi/cpp/module_impl.h"
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 const InstanceHandle& instance, 176 const InstanceHandle& instance,
177 PP_PrivateAccessibilityPageInfo* page_info, 177 PP_PrivateAccessibilityPageInfo* page_info,
178 PP_PrivateAccessibilityTextRunInfo text_runs[], 178 PP_PrivateAccessibilityTextRunInfo text_runs[],
179 PP_PrivateAccessibilityCharInfo chars[]) { 179 PP_PrivateAccessibilityCharInfo chars[]) {
180 if (has_interface<PPB_PDF>()) { 180 if (has_interface<PPB_PDF>()) {
181 get_interface<PPB_PDF>()->SetAccessibilityPageInfo( 181 get_interface<PPB_PDF>()->SetAccessibilityPageInfo(
182 instance.pp_instance(), page_info, text_runs, chars); 182 instance.pp_instance(), page_info, text_runs, chars);
183 } 183 }
184 } 184 }
185 185
186 // static
187 void PDF::SetCrashData(const InstanceHandle& instance,
188 const char* pdf_url,
189 const char* top_level_url) {
190 if (has_interface<PPB_PDF>()) {
191 get_interface<PPB_PDF>()->SetCrashData(instance.pp_instance(), pdf_url,
192 top_level_url);
193 }
194 }
195
186 } // namespace pp 196 } // namespace pp
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698