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

Side by Side Diff: content/renderer/pepper/host_var_tracker.h

Issue 26564009: [PPAPI] It is now possible to pass filesystems from JavaScript to NaCl modules. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Address comments. Created 7 years, 1 month 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_RENDERER_PEPPER_HOST_VAR_TRACKER_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_HOST_VAR_TRACKER_H_
6 #define CONTENT_RENDERER_PEPPER_HOST_VAR_TRACKER_H_ 6 #define CONTENT_RENDERER_PEPPER_HOST_VAR_TRACKER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 // given NPObject for the given instance. See AddNPObjectVar above. 48 // given NPObject for the given instance. See AddNPObjectVar above.
49 ppapi::NPObjectVar* NPObjectVarForNPObject(PP_Instance instance, 49 ppapi::NPObjectVar* NPObjectVarForNPObject(PP_Instance instance,
50 NPObject* np_object); 50 NPObject* np_object);
51 51
52 // Returns the number of NPObjectVar's associated with the given instance. 52 // Returns the number of NPObjectVar's associated with the given instance.
53 // Returns 0 if the instance isn't known. 53 // Returns 0 if the instance isn't known.
54 CONTENT_EXPORT int GetLiveNPObjectVarsForInstance( 54 CONTENT_EXPORT int GetLiveNPObjectVarsForInstance(
55 PP_Instance instance) const; 55 PP_Instance instance) const;
56 56
57 // VarTracker public implementation. 57 // VarTracker public implementation.
58 virtual PP_Var MakeResourcePPVarFromMessage(
59 PP_Instance instance,
60 const IPC::Message& creation_message,
61 int pending_renderer_id,
62 int pending_browser_id) OVERRIDE;
58 virtual ppapi::ResourceVar* MakeResourceVar(PP_Resource pp_resource) OVERRIDE; 63 virtual ppapi::ResourceVar* MakeResourceVar(PP_Resource pp_resource) OVERRIDE;
59 virtual void DidDeleteInstance(PP_Instance instance) OVERRIDE; 64 virtual void DidDeleteInstance(PP_Instance instance) OVERRIDE;
60 65
61 virtual int TrackSharedMemoryHandle(PP_Instance instance, 66 virtual int TrackSharedMemoryHandle(PP_Instance instance,
62 base::SharedMemoryHandle file, 67 base::SharedMemoryHandle file,
63 uint32 size_in_bytes) OVERRIDE; 68 uint32 size_in_bytes) OVERRIDE;
64 virtual bool StopTrackingSharedMemoryHandle(int id, 69 virtual bool StopTrackingSharedMemoryHandle(int id,
65 PP_Instance instance, 70 PP_Instance instance,
66 base::SharedMemoryHandle* handle, 71 base::SharedMemoryHandle* handle,
67 uint32* size_in_bytes) OVERRIDE; 72 uint32* size_in_bytes) OVERRIDE;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 typedef std::map<int, SharedMemoryMapEntry> SharedMemoryMap; 104 typedef std::map<int, SharedMemoryMapEntry> SharedMemoryMap;
100 SharedMemoryMap shared_memory_map_; 105 SharedMemoryMap shared_memory_map_;
101 uint32_t last_shared_memory_map_id_; 106 uint32_t last_shared_memory_map_id_;
102 107
103 DISALLOW_COPY_AND_ASSIGN(HostVarTracker); 108 DISALLOW_COPY_AND_ASSIGN(HostVarTracker);
104 }; 109 };
105 110
106 } // namespace content 111 } // namespace content
107 112
108 #endif // CONTENT_RENDERER_PEPPER_HOST_VAR_TRACKER_H_ 113 #endif // CONTENT_RENDERER_PEPPER_HOST_VAR_TRACKER_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/pepper/pepper_renderer_connection.cc ('k') | content/renderer/pepper/host_var_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698