 Chromium Code Reviews
 Chromium Code Reviews Issue 6882021:
  Wrap the p2p transport API in a compile time flag.  (Closed) 
  Base URL: svn://svn.chromium.org/chrome/trunk/src
    
  
    Issue 6882021:
  Wrap the p2p transport API in a compile time flag.  (Closed) 
  Base URL: svn://svn.chromium.org/chrome/trunk/src| OLD | NEW | 
|---|---|
| 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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 284 if (strcmp(name, PPB_INSTANCE_PRIVATE_INTERFACE) == 0) | 284 if (strcmp(name, PPB_INSTANCE_PRIVATE_INTERFACE) == 0) | 
| 285 return PluginInstance::GetPrivateInterface(); | 285 return PluginInstance::GetPrivateInterface(); | 
| 286 if (strcmp(name, PPB_MESSAGING_INTERFACE) == 0) | 286 if (strcmp(name, PPB_MESSAGING_INTERFACE) == 0) | 
| 287 return PluginInstance::GetMessagingInterface(); | 287 return PluginInstance::GetMessagingInterface(); | 
| 288 if (strcmp(name, PPB_PDF_INTERFACE) == 0) | 288 if (strcmp(name, PPB_PDF_INTERFACE) == 0) | 
| 289 return PPB_PDF_Impl::GetInterface(); | 289 return PPB_PDF_Impl::GetInterface(); | 
| 290 if (strcmp(name, PPB_PROXY_PRIVATE_INTERFACE) == 0) | 290 if (strcmp(name, PPB_PROXY_PRIVATE_INTERFACE) == 0) | 
| 291 return PPB_Proxy_Impl::GetInterface(); | 291 return PPB_Proxy_Impl::GetInterface(); | 
| 292 if (strcmp(name, PPB_SCROLLBAR_DEV_INTERFACE) == 0) | 292 if (strcmp(name, PPB_SCROLLBAR_DEV_INTERFACE) == 0) | 
| 293 return PPB_Scrollbar_Impl::GetInterface(); | 293 return PPB_Scrollbar_Impl::GetInterface(); | 
| 294 | |
| 295 #if defined(ENABLE_P2P_APIS) | |
| 
brettw
2011/04/20 15:41:33
Please put this at the bottom as well with the oth
 | |
| 294 if (strcmp(name, PPB_TRANSPORT_DEV_INTERFACE) == 0) | 296 if (strcmp(name, PPB_TRANSPORT_DEV_INTERFACE) == 0) | 
| 295 return PPB_Transport_Impl::GetInterface(); | 297 return PPB_Transport_Impl::GetInterface(); | 
| 298 #endif | |
| 299 | |
| 296 if (strcmp(name, PPB_URLLOADER_INTERFACE) == 0) | 300 if (strcmp(name, PPB_URLLOADER_INTERFACE) == 0) | 
| 297 return PPB_URLLoader_Impl::GetInterface(); | 301 return PPB_URLLoader_Impl::GetInterface(); | 
| 298 if (strcmp(name, PPB_URLLOADERTRUSTED_INTERFACE) == 0) | 302 if (strcmp(name, PPB_URLLOADERTRUSTED_INTERFACE) == 0) | 
| 299 return PPB_URLLoader_Impl::GetTrustedInterface(); | 303 return PPB_URLLoader_Impl::GetTrustedInterface(); | 
| 300 if (strcmp(name, PPB_URLREQUESTINFO_INTERFACE) == 0) | 304 if (strcmp(name, PPB_URLREQUESTINFO_INTERFACE) == 0) | 
| 301 return PPB_URLRequestInfo_Impl::GetInterface(); | 305 return PPB_URLRequestInfo_Impl::GetInterface(); | 
| 302 if (strcmp(name, PPB_URLRESPONSEINFO_INTERFACE) == 0) | 306 if (strcmp(name, PPB_URLRESPONSEINFO_INTERFACE) == 0) | 
| 303 return PPB_URLResponseInfo_Impl::GetInterface(); | 307 return PPB_URLResponseInfo_Impl::GetInterface(); | 
| 304 if (strcmp(name, PPB_URLUTIL_DEV_INTERFACE) == 0) | 308 if (strcmp(name, PPB_URLUTIL_DEV_INTERFACE) == 0) | 
| 305 return PPB_URLUtil_Impl::GetInterface(); | 309 return PPB_URLUtil_Impl::GetInterface(); | 
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 549 int retval = entry_points_.initialize_module(pp_module(), &GetInterface); | 553 int retval = entry_points_.initialize_module(pp_module(), &GetInterface); | 
| 550 if (retval != 0) { | 554 if (retval != 0) { | 
| 551 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; | 555 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; | 
| 552 return false; | 556 return false; | 
| 553 } | 557 } | 
| 554 return true; | 558 return true; | 
| 555 } | 559 } | 
| 556 | 560 | 
| 557 } // namespace ppapi | 561 } // namespace ppapi | 
| 558 } // namespace webkit | 562 } // namespace webkit | 
| OLD | NEW |