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

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

Issue 2493623002: Remove IPC::Endpoint. (Closed)
Patch Set: Created 4 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
« no previous file with comments | « no previous file | gpu/ipc/service/gpu_channel.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) 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 #include "content/renderer/pepper/renderer_ppapi_host_impl.h" 5 #include "content/renderer/pepper/renderer_ppapi_host_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 blink::WebPluginContainer* RendererPpapiHostImpl::GetContainerForInstance( 171 blink::WebPluginContainer* RendererPpapiHostImpl::GetContainerForInstance(
172 PP_Instance instance) const { 172 PP_Instance instance) const {
173 PepperPluginInstanceImpl* instance_object = GetAndValidateInstance(instance); 173 PepperPluginInstanceImpl* instance_object = GetAndValidateInstance(instance);
174 if (!instance_object) 174 if (!instance_object)
175 return NULL; 175 return NULL;
176 return instance_object->container(); 176 return instance_object->container();
177 } 177 }
178 178
179 base::ProcessId RendererPpapiHostImpl::GetPluginPID() const { 179 base::ProcessId RendererPpapiHostImpl::GetPluginPID() const {
180 if (dispatcher_) 180 if (dispatcher_)
181 return dispatcher_->channel()->GetPeerPID(); 181 return dispatcher_->peer_pid();
182 return base::kNullProcessId; 182 return base::kNullProcessId;
183 } 183 }
184 184
185 bool RendererPpapiHostImpl::HasUserGesture(PP_Instance instance) const { 185 bool RendererPpapiHostImpl::HasUserGesture(PP_Instance instance) const {
186 PepperPluginInstanceImpl* instance_object = GetAndValidateInstance(instance); 186 PepperPluginInstanceImpl* instance_object = GetAndValidateInstance(instance);
187 if (!instance_object) 187 if (!instance_object)
188 return false; 188 return false;
189 189
190 if (instance_object->module()->permissions().HasPermission( 190 if (instance_object->module()->permissions().HasPermission(
191 ppapi::PERMISSION_BYPASS_USER_GESTURE)) 191 ppapi::PERMISSION_BYPASS_USER_GESTURE))
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 PepperPluginInstanceImpl* instance = 283 PepperPluginInstanceImpl* instance =
284 HostGlobals::Get()->GetInstance(pp_instance); 284 HostGlobals::Get()->GetInstance(pp_instance);
285 if (!instance) 285 if (!instance)
286 return NULL; 286 return NULL;
287 if (!instance->IsValidInstanceOf(module_)) 287 if (!instance->IsValidInstanceOf(module_))
288 return NULL; 288 return NULL;
289 return instance; 289 return instance;
290 } 290 }
291 291
292 } // namespace content 292 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | gpu/ipc/service/gpu_channel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698