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

Side by Side Diff: ppapi/nacl_irt/ppapi_dispatcher.cc

Issue 2849633002: Get rid of base::SharedMemory::NULLHandle(); (Closed)
Patch Set: Rebase. Created 3 years, 7 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
« no previous file with comments | « mojo/edk/embedder/embedder.h ('k') | ppapi/proxy/gamepad_resource.cc » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "ppapi/nacl_irt/ppapi_dispatcher.h" 5 #include "ppapi/nacl_irt/ppapi_dispatcher.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 IPC::PlatformFileForTransit PpapiDispatcher::ShareHandleWithRemote( 67 IPC::PlatformFileForTransit PpapiDispatcher::ShareHandleWithRemote(
68 base::PlatformFile handle, 68 base::PlatformFile handle,
69 base::ProcessId peer_pid, 69 base::ProcessId peer_pid,
70 bool should_close_source) { 70 bool should_close_source) {
71 return IPC::InvalidPlatformFileForTransit(); 71 return IPC::InvalidPlatformFileForTransit();
72 } 72 }
73 73
74 base::SharedMemoryHandle PpapiDispatcher::ShareSharedMemoryHandleWithRemote( 74 base::SharedMemoryHandle PpapiDispatcher::ShareSharedMemoryHandleWithRemote(
75 const base::SharedMemoryHandle& handle, 75 const base::SharedMemoryHandle& handle,
76 base::ProcessId remote_pid) { 76 base::ProcessId remote_pid) {
77 return base::SharedMemory::NULLHandle(); 77 return base::SharedMemoryHandle();
78 } 78 }
79 79
80 std::set<PP_Instance>* PpapiDispatcher::GetGloballySeenInstanceIDSet() { 80 std::set<PP_Instance>* PpapiDispatcher::GetGloballySeenInstanceIDSet() {
81 return &instances_; 81 return &instances_;
82 } 82 }
83 83
84 uint32_t PpapiDispatcher::Register(proxy::PluginDispatcher* plugin_dispatcher) { 84 uint32_t PpapiDispatcher::Register(proxy::PluginDispatcher* plugin_dispatcher) {
85 if (!plugin_dispatcher || 85 if (!plugin_dispatcher ||
86 plugin_dispatchers_.size() >= std::numeric_limits<uint32_t>::max()) { 86 plugin_dispatchers_.size() >= std::numeric_limits<uint32_t>::max()) {
87 return 0; 87 return 0;
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 NOTREACHED(); 201 NOTREACHED();
202 return; 202 return;
203 } 203 }
204 std::map<uint32_t, proxy::PluginDispatcher*>::iterator dispatcher = 204 std::map<uint32_t, proxy::PluginDispatcher*>::iterator dispatcher =
205 plugin_dispatchers_.find(id); 205 plugin_dispatchers_.find(id);
206 if (dispatcher != plugin_dispatchers_.end()) 206 if (dispatcher != plugin_dispatchers_.end())
207 dispatcher->second->OnMessageReceived(msg); 207 dispatcher->second->OnMessageReceived(msg);
208 } 208 }
209 209
210 } // namespace ppapi 210 } // namespace ppapi
OLDNEW
« no previous file with comments | « mojo/edk/embedder/embedder.h ('k') | ppapi/proxy/gamepad_resource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698