| 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/tools/test_shell/test_shell_webkit_init.h" | 5 #include "webkit/tools/test_shell/test_shell_webkit_init.h" |
| 6 | 6 |
| 7 #include "base/metrics/stats_counters.h" | 7 #include "base/metrics/stats_counters.h" |
| 8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
| 9 #include "media/base/media.h" | 9 #include "media/base/media.h" |
| 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCache.h" | 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCache.h" |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 | 256 |
| 257 WebKit::WebStorageNamespace* TestShellWebKitInit::createLocalStorageNamespace( | 257 WebKit::WebStorageNamespace* TestShellWebKitInit::createLocalStorageNamespace( |
| 258 const WebKit::WebString& path, unsigned quota) { | 258 const WebKit::WebString& path, unsigned quota) { |
| 259 return dom_storage_system_.CreateLocalStorageNamespace(); | 259 return dom_storage_system_.CreateLocalStorageNamespace(); |
| 260 } | 260 } |
| 261 | 261 |
| 262 WebKit::WebIDBFactory* TestShellWebKitInit::idbFactory() { | 262 WebKit::WebIDBFactory* TestShellWebKitInit::idbFactory() { |
| 263 return WebKit::WebIDBFactory::create(); | 263 return WebKit::WebIDBFactory::create(); |
| 264 } | 264 } |
| 265 | 265 |
| 266 WebKit::WebSharedWorkerRepository* | |
| 267 TestShellWebKitInit::sharedWorkerRepository() { | |
| 268 return NULL; | |
| 269 } | |
| 270 | |
| 271 WebKit::WebGraphicsContext3D* | 266 WebKit::WebGraphicsContext3D* |
| 272 TestShellWebKitInit::createOffscreenGraphicsContext3D( | 267 TestShellWebKitInit::createOffscreenGraphicsContext3D( |
| 273 const WebKit::WebGraphicsContext3D::Attributes& attributes) { | 268 const WebKit::WebGraphicsContext3D::Attributes& attributes) { |
| 274 return webkit::gpu::WebGraphicsContext3DInProcessImpl::CreateForWebView( | 269 return webkit::gpu::WebGraphicsContext3DInProcessImpl::CreateForWebView( |
| 275 attributes, false); | 270 attributes, false); |
| 276 } | 271 } |
| 277 | 272 |
| 278 void TestShellWebKitInit::GetPlugins( | 273 void TestShellWebKitInit::GetPlugins( |
| 279 bool refresh, std::vector<webkit::WebPluginInfo>* plugins) { | 274 bool refresh, std::vector<webkit::WebPluginInfo>* plugins) { |
| 280 if (refresh) | 275 if (refresh) |
| (...skipping 21 matching lines...) Expand all Loading... |
| 302 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info) { | 297 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info) { |
| 303 return SimpleResourceLoaderBridge::Create(request_info); | 298 return SimpleResourceLoaderBridge::Create(request_info); |
| 304 } | 299 } |
| 305 | 300 |
| 306 webkit_glue::WebSocketStreamHandleBridge* | 301 webkit_glue::WebSocketStreamHandleBridge* |
| 307 TestShellWebKitInit::CreateWebSocketBridge( | 302 TestShellWebKitInit::CreateWebSocketBridge( |
| 308 WebKit::WebSocketStreamHandle* handle, | 303 WebKit::WebSocketStreamHandle* handle, |
| 309 webkit_glue::WebSocketStreamHandleDelegate* delegate) { | 304 webkit_glue::WebSocketStreamHandleDelegate* delegate) { |
| 310 return SimpleSocketStreamBridge::Create(handle, delegate); | 305 return SimpleSocketStreamBridge::Create(handle, delegate); |
| 311 } | 306 } |
| OLD | NEW |