| 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/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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 const WebKit::WebString& vfs_file_name) { | 146 const WebKit::WebString& vfs_file_name) { |
| 147 return SimpleDatabaseSystem::GetInstance()->GetFileAttributes( | 147 return SimpleDatabaseSystem::GetInstance()->GetFileAttributes( |
| 148 vfs_file_name); | 148 vfs_file_name); |
| 149 } | 149 } |
| 150 | 150 |
| 151 long long TestShellWebKitInit::databaseGetFileSize( | 151 long long TestShellWebKitInit::databaseGetFileSize( |
| 152 const WebKit::WebString& vfs_file_name) { | 152 const WebKit::WebString& vfs_file_name) { |
| 153 return SimpleDatabaseSystem::GetInstance()->GetFileSize(vfs_file_name); | 153 return SimpleDatabaseSystem::GetInstance()->GetFileSize(vfs_file_name); |
| 154 } | 154 } |
| 155 | 155 |
| 156 long long TestShellWebKitInit::databaseGetSpaceAvailableForOrigin( |
| 157 const WebKit::WebString& origin_identifier) { |
| 158 return SimpleDatabaseSystem::GetInstance()->GetSpaceAvailable( |
| 159 origin_identifier); |
| 160 } |
| 161 |
| 156 unsigned long long TestShellWebKitInit::visitedLinkHash( | 162 unsigned long long TestShellWebKitInit::visitedLinkHash( |
| 157 const char* canonicalURL, | 163 const char* canonicalURL, |
| 158 size_t length) { | 164 size_t length) { |
| 159 return 0; | 165 return 0; |
| 160 } | 166 } |
| 161 | 167 |
| 162 bool TestShellWebKitInit::isLinkVisited(unsigned long long linkHash) { | 168 bool TestShellWebKitInit::isLinkVisited(unsigned long long linkHash) { |
| 163 return false; | 169 return false; |
| 164 } | 170 } |
| 165 | 171 |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 | 292 |
| 287 WebKit::WebSharedWorkerRepository* | 293 WebKit::WebSharedWorkerRepository* |
| 288 TestShellWebKitInit::sharedWorkerRepository() { | 294 TestShellWebKitInit::sharedWorkerRepository() { |
| 289 return NULL; | 295 return NULL; |
| 290 } | 296 } |
| 291 | 297 |
| 292 WebKit::WebGraphicsContext3D* TestShellWebKitInit::createGraphicsContext3D() { | 298 WebKit::WebGraphicsContext3D* TestShellWebKitInit::createGraphicsContext3D() { |
| 293 gfx::BindSkiaToInProcessGL(); | 299 gfx::BindSkiaToInProcessGL(); |
| 294 return new webkit::gpu::WebGraphicsContext3DInProcessImpl(); | 300 return new webkit::gpu::WebGraphicsContext3DInProcessImpl(); |
| 295 } | 301 } |
| OLD | NEW |