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

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

Issue 6882021: Wrap the p2p transport API in a compile time flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 8 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
« webkit/glue/webkit_glue.gypi ('K') | « webkit/glue/webkit_glue.gypi ('k') | no next file » | 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) 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/plugin_module.h" 5 #include "webkit/plugins/ppapi/plugin_module.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 if (strcmp(name, PPB_INSTANCE_INTERFACE) == 0) 281 if (strcmp(name, PPB_INSTANCE_INTERFACE) == 0)
282 return PluginInstance::GetInterface(); 282 return PluginInstance::GetInterface();
283 if (strcmp(name, PPB_MESSAGING_INTERFACE) == 0) 283 if (strcmp(name, PPB_MESSAGING_INTERFACE) == 0)
284 return PluginInstance::GetMessagingInterface(); 284 return PluginInstance::GetMessagingInterface();
285 if (strcmp(name, PPB_PDF_INTERFACE) == 0) 285 if (strcmp(name, PPB_PDF_INTERFACE) == 0)
286 return PPB_PDF_Impl::GetInterface(); 286 return PPB_PDF_Impl::GetInterface();
287 if (strcmp(name, PPB_PROXY_PRIVATE_INTERFACE) == 0) 287 if (strcmp(name, PPB_PROXY_PRIVATE_INTERFACE) == 0)
288 return PPB_Proxy_Impl::GetInterface(); 288 return PPB_Proxy_Impl::GetInterface();
289 if (strcmp(name, PPB_SCROLLBAR_DEV_INTERFACE) == 0) 289 if (strcmp(name, PPB_SCROLLBAR_DEV_INTERFACE) == 0)
290 return PPB_Scrollbar_Impl::GetInterface(); 290 return PPB_Scrollbar_Impl::GetInterface();
291
292 #if defined(ENABLE_PPAPI_TRANSPORT)
291 if (strcmp(name, PPB_TRANSPORT_DEV_INTERFACE) == 0) 293 if (strcmp(name, PPB_TRANSPORT_DEV_INTERFACE) == 0)
292 return PPB_Transport_Impl::GetInterface(); 294 return PPB_Transport_Impl::GetInterface();
295 #endif
296
293 if (strcmp(name, PPB_URLLOADER_INTERFACE) == 0) 297 if (strcmp(name, PPB_URLLOADER_INTERFACE) == 0)
294 return PPB_URLLoader_Impl::GetInterface(); 298 return PPB_URLLoader_Impl::GetInterface();
295 if (strcmp(name, PPB_URLLOADERTRUSTED_INTERFACE) == 0) 299 if (strcmp(name, PPB_URLLOADERTRUSTED_INTERFACE) == 0)
296 return PPB_URLLoader_Impl::GetTrustedInterface(); 300 return PPB_URLLoader_Impl::GetTrustedInterface();
297 if (strcmp(name, PPB_URLREQUESTINFO_INTERFACE) == 0) 301 if (strcmp(name, PPB_URLREQUESTINFO_INTERFACE) == 0)
298 return PPB_URLRequestInfo_Impl::GetInterface(); 302 return PPB_URLRequestInfo_Impl::GetInterface();
299 if (strcmp(name, PPB_URLRESPONSEINFO_INTERFACE) == 0) 303 if (strcmp(name, PPB_URLRESPONSEINFO_INTERFACE) == 0)
300 return PPB_URLResponseInfo_Impl::GetInterface(); 304 return PPB_URLResponseInfo_Impl::GetInterface();
301 if (strcmp(name, PPB_URLUTIL_DEV_INTERFACE) == 0) 305 if (strcmp(name, PPB_URLUTIL_DEV_INTERFACE) == 0)
302 return PPB_URLUtil_Impl::GetInterface(); 306 return PPB_URLUtil_Impl::GetInterface();
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 int retval = entry_points_.initialize_module(pp_module(), &GetInterface); 550 int retval = entry_points_.initialize_module(pp_module(), &GetInterface);
547 if (retval != 0) { 551 if (retval != 0) {
548 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; 552 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval;
549 return false; 553 return false;
550 } 554 }
551 return true; 555 return true;
552 } 556 }
553 557
554 } // namespace ppapi 558 } // namespace ppapi
555 } // namespace webkit 559 } // namespace webkit
OLDNEW
« webkit/glue/webkit_glue.gypi ('K') | « webkit/glue/webkit_glue.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698