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

Side by Side Diff: webkit/plugins/ppapi/ppb_proxy_impl.cc

Issue 6493004: Implement basic crash detection and shutdown handling for out of process PPAP... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « webkit/plugins/ppapi/ppb_proxy_impl.h ('k') | webkit/plugins/ppapi/resource_tracker.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "webkit/plugins/ppapi/ppb_proxy_impl.h"
6
7 #include "ppapi/c/private/ppb_proxy_private.h"
8 #include "webkit/plugins/ppapi/plugin_module.h"
9 #include "webkit/plugins/ppapi/resource_tracker.h"
10
11 namespace webkit {
12 namespace ppapi {
13
14 namespace {
15
16 void PluginCrashed(PP_Module module) {
17 PluginModule* plugin_module = ResourceTracker::Get()->GetModule(module);
18 if (plugin_module)
19 plugin_module->PluginCrashed();
20 }
21
22 const PPB_Proxy_Private ppb_proxy = {
23 &PluginCrashed
24 };
25
26 } // namespace
27
28 // static
29 const PPB_Proxy_Private* PPB_Proxy_Impl::GetInterface() {
30 return &ppb_proxy;
31 }
32
33 } // namespace ppapi
34 } // namespace webkit
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/ppb_proxy_impl.h ('k') | webkit/plugins/ppapi/resource_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698