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

Side by Side Diff: webkit/plugins/ppapi/resource_creation_impl.cc

Issue 8506016: Remove 'Flash' from TCP/UDP Pepper interfaces. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "webkit/plugins/ppapi/resource_creation_impl.h" 5 #include "webkit/plugins/ppapi/resource_creation_impl.h"
6 6
7 #include "ppapi/c/pp_size.h" 7 #include "ppapi/c/pp_size.h"
8 #include "ppapi/shared_impl/audio_config_impl.h" 8 #include "ppapi/shared_impl/audio_config_impl.h"
9 #include "ppapi/shared_impl/input_event_impl.h" 9 #include "ppapi/shared_impl/input_event_impl.h"
10 #include "ppapi/shared_impl/var.h" 10 #include "ppapi/shared_impl/var.h"
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 PP_Instance instance, 132 PP_Instance instance,
133 const PP_Flash_Menu* menu_data) { 133 const PP_Flash_Menu* menu_data) {
134 return PPB_Flash_Menu_Impl::Create(instance, menu_data); 134 return PPB_Flash_Menu_Impl::Create(instance, menu_data);
135 } 135 }
136 136
137 PP_Resource ResourceCreationImpl::CreateFlashNetConnector( 137 PP_Resource ResourceCreationImpl::CreateFlashNetConnector(
138 PP_Instance instance) { 138 PP_Instance instance) {
139 return (new PPB_Flash_NetConnector_Impl(instance))->GetReference(); 139 return (new PPB_Flash_NetConnector_Impl(instance))->GetReference();
140 } 140 }
141 141
142 PP_Resource ResourceCreationImpl::CreateFlashTCPSocket( 142 PP_Resource ResourceCreationImpl::CreateTCPSocket(
yzshen1 2011/11/09 23:53:55 Sort, please.
Dmitry Polukhin 2011/11/10 15:10:11 Done.
143 PP_Instance instance) { 143 PP_Instance instance) {
144 // Creating TCP socket resource at the renderer side is not supported. 144 // Creating TCP socket resource at the renderer side is not supported.
145 return 0; 145 return 0;
146 } 146 }
147 147
148 PP_Resource ResourceCreationImpl::CreateFlashUDPSocket( 148 PP_Resource ResourceCreationImpl::CreateUDPSocket(
149 PP_Instance instance) { 149 PP_Instance instance) {
150 // Creating UDP socket resource at the renderer side is not supported. 150 // Creating UDP socket resource at the renderer side is not supported.
151 return 0; 151 return 0;
152 } 152 }
153 153
154 PP_Resource ResourceCreationImpl::CreateFontObject( 154 PP_Resource ResourceCreationImpl::CreateFontObject(
155 PP_Instance instance, 155 PP_Instance instance,
156 const PP_FontDescription_Dev* description) { 156 const PP_FontDescription_Dev* description) {
157 return PPB_Font_Impl::Create(instance, *description); 157 return PPB_Font_Impl::Create(instance, *description);
158 } 158 }
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 data.wheel_delta = *wheel_delta; 307 data.wheel_delta = *wheel_delta;
308 data.wheel_ticks = *wheel_ticks; 308 data.wheel_ticks = *wheel_ticks;
309 data.wheel_scroll_by_page = PP_ToBool(scroll_by_page); 309 data.wheel_scroll_by_page = PP_ToBool(scroll_by_page);
310 310
311 return (new InputEventImpl(InputEventImpl::InitAsImpl(), 311 return (new InputEventImpl(InputEventImpl::InitAsImpl(),
312 instance, data))->GetReference(); 312 instance, data))->GetReference();
313 } 313 }
314 314
315 } // namespace ppapi 315 } // namespace ppapi
316 } // namespace webkit 316 } // namespace webkit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698