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

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

Issue 23453025: Refactor PPB_NetworkMonitor_Private interface to use CompletionCallback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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) 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/resource_creation_impl.h" 5 #include "content/renderer/pepper/resource_creation_impl.h"
6 6
7 #include "content/renderer/pepper/common.h" 7 #include "content/renderer/pepper/common.h"
8 #include "content/renderer/pepper/ppb_audio_impl.h" 8 #include "content/renderer/pepper/ppb_audio_impl.h"
9 #include "content/renderer/pepper/ppb_broker_impl.h" 9 #include "content/renderer/pepper/ppb_broker_impl.h"
10 #include "content/renderer/pepper/ppb_buffer_impl.h" 10 #include "content/renderer/pepper/ppb_buffer_impl.h"
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 211
212 PP_Resource ResourceCreationImpl::CreateTouchInputEvent( 212 PP_Resource ResourceCreationImpl::CreateTouchInputEvent(
213 PP_Instance instance, 213 PP_Instance instance,
214 PP_InputEvent_Type type, 214 PP_InputEvent_Type type,
215 PP_TimeTicks time_stamp, 215 PP_TimeTicks time_stamp,
216 uint32_t modifiers) { 216 uint32_t modifiers) {
217 return PPB_InputEvent_Shared::CreateTouchInputEvent( 217 return PPB_InputEvent_Shared::CreateTouchInputEvent(
218 ppapi::OBJECT_IS_IMPL, instance, type, time_stamp, modifiers); 218 ppapi::OBJECT_IS_IMPL, instance, type, time_stamp, modifiers);
219 } 219 }
220 220
221 PP_Resource ResourceCreationImpl::CreateNetworkMonitor( 221 PP_Resource ResourceCreationImpl::CreateNetworkMonitor(PP_Instance instance) {
222 PP_Instance instance,
223 PPB_NetworkMonitor_Callback callback,
224 void* user_data) {
225 return 0; // Not supported in-process. 222 return 0; // Not supported in-process.
226 } 223 }
227 224
228 PP_Resource ResourceCreationImpl::CreateScrollbar(PP_Instance instance, 225 PP_Resource ResourceCreationImpl::CreateScrollbar(PP_Instance instance,
229 PP_Bool vertical) { 226 PP_Bool vertical) {
230 return PPB_Scrollbar_Impl::Create(instance, PP_ToBool(vertical)); 227 return PPB_Scrollbar_Impl::Create(instance, PP_ToBool(vertical));
231 } 228 }
232 229
233 PP_Resource ResourceCreationImpl::CreateTalk(PP_Instance /* instance */) { 230 PP_Resource ResourceCreationImpl::CreateTalk(PP_Instance /* instance */) {
234 return 0; // Not supported in-process. 231 return 0; // Not supported in-process.
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 ppapi::OBJECT_IS_IMPL, instance, time_stamp, modifiers, 293 ppapi::OBJECT_IS_IMPL, instance, time_stamp, modifiers,
297 wheel_delta, wheel_ticks, scroll_by_page); 294 wheel_delta, wheel_ticks, scroll_by_page);
298 } 295 }
299 296
300 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( 297 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate(
301 PP_Instance instance) { 298 PP_Instance instance) {
302 return PPB_X509Certificate_Private_Impl::CreateResource(instance); 299 return PPB_X509Certificate_Private_Impl::CreateResource(instance);
303 } 300 }
304 301
305 } // namespace content 302 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698