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/support/test_webkit_client.h" | 5 #include "webkit/support/test_webkit_client.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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 } | 188 } |
189 | 189 |
190 int TestWebKitClient::databaseDeleteFile(const WebKit::WebString& vfs_file_name, | 190 int TestWebKitClient::databaseDeleteFile(const WebKit::WebString& vfs_file_name, |
191 bool sync_dir) { | 191 bool sync_dir) { |
192 return SimpleDatabaseSystem::GetInstance()->DeleteFile( | 192 return SimpleDatabaseSystem::GetInstance()->DeleteFile( |
193 vfs_file_name, sync_dir); | 193 vfs_file_name, sync_dir); |
194 } | 194 } |
195 | 195 |
196 long TestWebKitClient::databaseGetFileAttributes( | 196 long TestWebKitClient::databaseGetFileAttributes( |
197 const WebKit::WebString& vfs_file_name) { | 197 const WebKit::WebString& vfs_file_name) { |
198 return SimpleDatabaseSystem::GetInstance()->GetFileAttributes(vfs_file_name); | 198 return SimpleDatabaseSystem::GetInstance()->GetFileAttributes( |
| 199 vfs_file_name); |
199 } | 200 } |
200 | 201 |
201 long long TestWebKitClient::databaseGetFileSize( | 202 long long TestWebKitClient::databaseGetFileSize( |
202 const WebKit::WebString& vfs_file_name) { | 203 const WebKit::WebString& vfs_file_name) { |
203 return SimpleDatabaseSystem::GetInstance()->GetFileSize(vfs_file_name); | 204 return SimpleDatabaseSystem::GetInstance()->GetFileSize(vfs_file_name); |
204 } | 205 } |
205 | 206 |
| 207 long long TestWebKitClient::databaseGetSpaceAvailableForOrigin( |
| 208 const WebKit::WebString& origin_identifier) { |
| 209 return SimpleDatabaseSystem::GetInstance()->GetSpaceAvailable( |
| 210 origin_identifier); |
| 211 } |
| 212 |
206 unsigned long long TestWebKitClient::visitedLinkHash(const char* canonicalURL, | 213 unsigned long long TestWebKitClient::visitedLinkHash(const char* canonicalURL, |
207 size_t length) { | 214 size_t length) { |
208 return 0; | 215 return 0; |
209 } | 216 } |
210 | 217 |
211 bool TestWebKitClient::isLinkVisited(unsigned long long linkHash) { | 218 bool TestWebKitClient::isLinkVisited(unsigned long long linkHash) { |
212 return false; | 219 return false; |
213 } | 220 } |
214 | 221 |
215 WebKit::WebMessagePortChannel* TestWebKitClient::createMessagePortChannel() { | 222 WebKit::WebMessagePortChannel* TestWebKitClient::createMessagePortChannel() { |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
356 switch (webkit_support::GetGraphicsContext3DImplementation()) { | 363 switch (webkit_support::GetGraphicsContext3DImplementation()) { |
357 case webkit_support::IN_PROCESS: | 364 case webkit_support::IN_PROCESS: |
358 return new webkit::gpu::WebGraphicsContext3DInProcessImpl(); | 365 return new webkit::gpu::WebGraphicsContext3DInProcessImpl(); |
359 case webkit_support::IN_PROCESS_COMMAND_BUFFER: | 366 case webkit_support::IN_PROCESS_COMMAND_BUFFER: |
360 return new webkit::gpu::WebGraphicsContext3DInProcessCommandBufferImpl(); | 367 return new webkit::gpu::WebGraphicsContext3DInProcessCommandBufferImpl(); |
361 default: | 368 default: |
362 CHECK(false) << "Unknown GraphicsContext3D Implementation"; | 369 CHECK(false) << "Unknown GraphicsContext3D Implementation"; |
363 return NULL; | 370 return NULL; |
364 } | 371 } |
365 } | 372 } |
OLD | NEW |