| 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 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 } | 341 } |
| 342 | 342 |
| 343 virtual void getDatabaseNames(WebKit::WebIDBCallbacks* callbacks, | 343 virtual void getDatabaseNames(WebKit::WebIDBCallbacks* callbacks, |
| 344 const WebKit::WebSecurityOrigin& origin, | 344 const WebKit::WebSecurityOrigin& origin, |
| 345 WebKit::WebFrame* frame, | 345 WebKit::WebFrame* frame, |
| 346 const WebString& dataDir) { | 346 const WebString& dataDir) { |
| 347 factory_->getDatabaseNames(callbacks, origin, frame, | 347 factory_->getDatabaseNames(callbacks, origin, frame, |
| 348 dataDir.isEmpty() ? data_dir_ : dataDir); | 348 dataDir.isEmpty() ? data_dir_ : dataDir); |
| 349 } | 349 } |
| 350 | 350 |
| 351 // TODO(jsbell): Remove this overload when WK94011 rolls. | |
| 352 virtual void open(const WebString& name, | |
| 353 long long version, | |
| 354 WebKit::WebIDBCallbacks* callbacks, | |
| 355 const WebKit::WebSecurityOrigin& origin, | |
| 356 WebKit::WebFrame* frame, | |
| 357 const WebString& dataDir) { | |
| 358 factory_->open(name, version, callbacks, origin, frame, | |
| 359 dataDir.isEmpty() ? data_dir_ : dataDir); | |
| 360 } | |
| 361 | |
| 362 virtual void open(const WebString& name, | 351 virtual void open(const WebString& name, |
| 363 long long version, | 352 long long version, |
| 364 WebKit::WebIDBCallbacks* callbacks, | 353 WebKit::WebIDBCallbacks* callbacks, |
| 365 WebKit::WebIDBDatabaseCallbacks* databaseCallbacks, | 354 WebKit::WebIDBDatabaseCallbacks* databaseCallbacks, |
| 366 const WebKit::WebSecurityOrigin& origin, | 355 const WebKit::WebSecurityOrigin& origin, |
| 367 WebKit::WebFrame* frame, | 356 WebKit::WebFrame* frame, |
| 368 const WebString& dataDir) { | 357 const WebString& dataDir) { |
| 369 factory_->open(name, version, callbacks, databaseCallbacks, origin, frame, | 358 factory_->open(name, version, callbacks, databaseCallbacks, origin, frame, |
| 370 dataDir.isEmpty() ? data_dir_ : dataDir); | 359 dataDir.isEmpty() ? data_dir_ : dataDir); |
| 371 } | 360 } |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 500 | 489 |
| 501 WebKit::WebRTCPeerConnectionHandler* | 490 WebKit::WebRTCPeerConnectionHandler* |
| 502 TestWebKitPlatformSupport::createRTCPeerConnectionHandler( | 491 TestWebKitPlatformSupport::createRTCPeerConnectionHandler( |
| 503 WebKit::WebRTCPeerConnectionHandlerClient* client) { | 492 WebKit::WebRTCPeerConnectionHandlerClient* client) { |
| 504 if (shadow_platform_delegate_) | 493 if (shadow_platform_delegate_) |
| 505 return shadow_platform_delegate_->createRTCPeerConnectionHandler(client); | 494 return shadow_platform_delegate_->createRTCPeerConnectionHandler(client); |
| 506 | 495 |
| 507 return webkit_glue::WebKitPlatformSupportImpl::createRTCPeerConnectionHandler( | 496 return webkit_glue::WebKitPlatformSupportImpl::createRTCPeerConnectionHandler( |
| 508 client); | 497 client); |
| 509 } | 498 } |
| OLD | NEW |