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

Side by Side Diff: content/renderer/pepper/ppb_proxy_impl.cc

Issue 225903006: PPAPI: Run clang_format.py on content/renderer/pepper (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 6 years, 8 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 | « content/renderer/pepper/ppb_proxy_impl.h ('k') | content/renderer/pepper/ppb_scrollbar_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 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 "content/renderer/pepper/ppb_proxy_impl.h" 5 #include "content/renderer/pepper/ppb_proxy_impl.h"
6 6
7 #include "ppapi/c/private/ppb_proxy_private.h" 7 #include "ppapi/c/private/ppb_proxy_private.h"
8 #include "ppapi/thunk/enter.h" 8 #include "ppapi/thunk/enter.h"
9 #include "ppapi/thunk/ppb_image_data_api.h" 9 #include "ppapi/thunk/ppb_image_data_api.h"
10 #include "content/renderer/pepper/host_globals.h" 10 #include "content/renderer/pepper/host_globals.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 } 52 }
53 53
54 PP_Bool IsInModuleDestructor(PP_Module module) { 54 PP_Bool IsInModuleDestructor(PP_Module module) {
55 PluginModule* plugin_module = HostGlobals::Get()->GetModule(module); 55 PluginModule* plugin_module = HostGlobals::Get()->GetModule(module);
56 if (plugin_module) 56 if (plugin_module)
57 return PP_FromBool(plugin_module->is_in_destructor()); 57 return PP_FromBool(plugin_module->is_in_destructor());
58 return PP_FALSE; 58 return PP_FALSE;
59 } 59 }
60 60
61 const PPB_Proxy_Private ppb_proxy = { 61 const PPB_Proxy_Private ppb_proxy = {
62 &PluginCrashed, 62 &PluginCrashed, &GetInstanceForResource, &SetReserveInstanceIDCallback,
63 &GetInstanceForResource, 63 &AddRefModule, &ReleaseModule, &IsInModuleDestructor};
64 &SetReserveInstanceIDCallback,
65 &AddRefModule,
66 &ReleaseModule,
67 &IsInModuleDestructor
68 };
69 64
70 } // namespace 65 } // namespace
71 66
72 // static 67 // static
73 const PPB_Proxy_Private* PPB_Proxy_Impl::GetInterface() { 68 const PPB_Proxy_Private* PPB_Proxy_Impl::GetInterface() { return &ppb_proxy; }
74 return &ppb_proxy;
75 }
76 69
77 } // namespace content 70 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/pepper/ppb_proxy_impl.h ('k') | content/renderer/pepper/ppb_scrollbar_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698