OLD | NEW |
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 "webkit/support/test_webkit_platform_support.h" | 5 #include "webkit/support/test_webkit_platform_support.h" |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/metrics/stats_counters.h" | 8 #include "base/metrics/stats_counters.h" |
9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
10 #include "base/scoped_temp_dir.h" | 10 #include "base/scoped_temp_dir.h" |
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
499 WebKit::WebSocketStreamHandle* handle, | 499 WebKit::WebSocketStreamHandle* handle, |
500 webkit_glue::WebSocketStreamHandleDelegate* delegate) { | 500 webkit_glue::WebSocketStreamHandleDelegate* delegate) { |
501 return SimpleSocketStreamBridge::Create(handle, delegate); | 501 return SimpleSocketStreamBridge::Create(handle, delegate); |
502 } | 502 } |
503 | 503 |
504 WebKit::WebMediaStreamCenter* | 504 WebKit::WebMediaStreamCenter* |
505 TestWebKitPlatformSupport::createMediaStreamCenter( | 505 TestWebKitPlatformSupport::createMediaStreamCenter( |
506 WebKit::WebMediaStreamCenterClient* client) { | 506 WebKit::WebMediaStreamCenterClient* client) { |
507 if (shadow_platform_delegate_) | 507 if (shadow_platform_delegate_) |
508 return shadow_platform_delegate_->createMediaStreamCenter(client); | 508 return shadow_platform_delegate_->createMediaStreamCenter(client); |
509 else | 509 |
510 return webkit_glue::WebKitPlatformSupportImpl::createMediaStreamCenter( | 510 return webkit_glue::WebKitPlatformSupportImpl::createMediaStreamCenter( |
511 client); | 511 client); |
512 } | 512 } |
| 513 |
| 514 WebKit::WebRTCPeerConnectionHandler* |
| 515 TestWebKitPlatformSupport::createRTCPeerConnectionHandler( |
| 516 WebKit::WebRTCPeerConnectionHandlerClient* client) { |
| 517 if (shadow_platform_delegate_) |
| 518 return shadow_platform_delegate_->createRTCPeerConnectionHandler(client); |
| 519 |
| 520 return webkit_glue::WebKitPlatformSupportImpl::createRTCPeerConnectionHandler( |
| 521 client); |
| 522 } |
OLD | NEW |