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

Side by Side Diff: o3d/gpu_plugin/np_utils/np_browser_stub.h

Issue 194049: Implemented shared memory as an NPObject. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 #ifndef O3D_GPU_PLUGIN_NP_UTILS_NP_BROWSER_STUB_H_ 5 #ifndef O3D_GPU_PLUGIN_NP_UTILS_NP_BROWSER_STUB_H_
6 #define O3D_GPU_PLUGIN_NP_UTILS_NP_BROWSER_STUB_H_ 6 #define O3D_GPU_PLUGIN_NP_UTILS_NP_BROWSER_STUB_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 NPIdentifier name); 60 NPIdentifier name);
61 virtual bool Invoke(NPP npp, 61 virtual bool Invoke(NPP npp,
62 NPObject* object, 62 NPObject* object,
63 NPIdentifier name, 63 NPIdentifier name,
64 const NPVariant* args, 64 const NPVariant* args,
65 uint32_t num_args, 65 uint32_t num_args,
66 NPVariant* result); 66 NPVariant* result);
67 67
68 virtual NPObject* GetWindowNPObject(NPP npp); 68 virtual NPObject* GetWindowNPObject(NPP npp);
69 69
70 // Chromium specific additions.
71 virtual NPSharedMemory* MapSharedMemory(NPP id,
72 NPObject* object,
73 size_t size,
74 bool read_only);
75
76 virtual void UnmapSharedMemory(NPP id,
77 NPSharedMemory* shared_memory);
78
79 private: 70 private:
80 DISALLOW_COPY_AND_ASSIGN(StubNPBrowser); 71 DISALLOW_COPY_AND_ASSIGN(StubNPBrowser);
81 }; 72 };
82 73
83 } // namespace gpu_plugin 74 } // namespace gpu_plugin
84 } // namespace o3d 75 } // namespace o3d
85 76
86 #endif // O3D_GPU_PLUGIN_NP_UTILS_NP_BROWSER_STUB_H_ 77 #endif // O3D_GPU_PLUGIN_NP_UTILS_NP_BROWSER_STUB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698