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

Side by Side Diff: experimental/c_salt/npapi/npn_bridge.cc

Issue 10928195: First round of dead file removal (Closed) Base URL: https://github.com/samclegg/nativeclient-sdk.git@master
Patch Set: Created 8 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
(Empty)
1 // Copyright 2010 The Ginsu Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can
3 // be found in the LICENSE file.
4
5 #include <assert.h>
6 #include <nacl/npapi_extensions.h>
7 #include <nacl/npupp.h>
8
9 // PINPAPI extensions. These get filled in when NPP_New is called.
10 static NPExtensions* kPINPAPIExtensions = NULL;
11
12 void InitializePepperExtensions(NPP instance) {
13 // Grab the PINPAPI extensions.
14 NPN_GetValue(instance, NPNVPepperExtensions,
15 reinterpret_cast<void*>(&kPINPAPIExtensions));
16 assert(NULL != kPINPAPIExtensions);
17 }
18
19 // These are PINPAPI extensions.
20 NPDevice* NPN_AcquireDevice(NPP instance, NPDeviceID device) {
21 return kPINPAPIExtensions ?
22 kPINPAPIExtensions->acquireDevice(instance, device) : NULL;
23 }
24
OLDNEW
« no previous file with comments | « experimental/c_salt/npapi/javascript_object_proxy.cc ('k') | experimental/c_salt/npapi/npp_gate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698