Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Side by Side Diff: content/worker/worker_webkitclient_impl.cc

Issue 7037018: DB quota (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "content/worker/worker_webkitclient_impl.h" 5 #include "content/worker/worker_webkitclient_impl.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "content/common/database_util.h" 9 #include "content/common/database_util.h"
10 #include "content/common/file_system/webfilesystem_impl.h" 10 #include "content/common/file_system/webfilesystem_impl.h"
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 long WorkerWebKitClientImpl::databaseGetFileAttributes( 189 long WorkerWebKitClientImpl::databaseGetFileAttributes(
190 const WebString& vfs_file_name) { 190 const WebString& vfs_file_name) {
191 return DatabaseUtil::databaseGetFileAttributes(vfs_file_name); 191 return DatabaseUtil::databaseGetFileAttributes(vfs_file_name);
192 } 192 }
193 193
194 long long WorkerWebKitClientImpl::databaseGetFileSize( 194 long long WorkerWebKitClientImpl::databaseGetFileSize(
195 const WebString& vfs_file_name) { 195 const WebString& vfs_file_name) {
196 return DatabaseUtil::databaseGetFileSize(vfs_file_name); 196 return DatabaseUtil::databaseGetFileSize(vfs_file_name);
197 } 197 }
198 198
199 long long WorkerWebKitClientImpl::databaseGetSpaceAvailableForOrigin(
200 const WebString& origin_identifier) {
201 return DatabaseUtil::databaseGetSpaceAvaialble(origin_identifier);
202 }
203
199 WebMimeRegistry::SupportsType WorkerWebKitClientImpl::supportsMIMEType( 204 WebMimeRegistry::SupportsType WorkerWebKitClientImpl::supportsMIMEType(
200 const WebString&) { 205 const WebString&) {
201 return WebMimeRegistry::IsSupported; 206 return WebMimeRegistry::IsSupported;
202 } 207 }
203 208
204 WebMimeRegistry::SupportsType WorkerWebKitClientImpl::supportsImageMIMEType( 209 WebMimeRegistry::SupportsType WorkerWebKitClientImpl::supportsImageMIMEType(
205 const WebString&) { 210 const WebString&) {
206 NOTREACHED(); 211 NOTREACHED();
207 return WebMimeRegistry::IsSupported; 212 return WebMimeRegistry::IsSupported;
208 } 213 }
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 new MimeRegistryMsg_GetPreferredExtensionForMimeType( 254 new MimeRegistryMsg_GetPreferredExtensionForMimeType(
250 UTF16ToASCII(mime_type), &file_extension)); 255 UTF16ToASCII(mime_type), &file_extension));
251 return webkit_glue::FilePathStringToWebString(file_extension); 256 return webkit_glue::FilePathStringToWebString(file_extension);
252 } 257 }
253 258
254 WebBlobRegistry* WorkerWebKitClientImpl::blobRegistry() { 259 WebBlobRegistry* WorkerWebKitClientImpl::blobRegistry() {
255 if (!blob_registry_.get()) 260 if (!blob_registry_.get())
256 blob_registry_.reset(new WebBlobRegistryImpl(WorkerThread::current())); 261 blob_registry_.reset(new WebBlobRegistryImpl(WorkerThread::current()));
257 return blob_registry_.get(); 262 return blob_registry_.get();
258 } 263 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698