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

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
« no previous file with comments | « content/worker/worker_webkitclient_impl.h ('k') | webkit/database/database_tracker.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 const WebKit::WebURL& url, bool is_local_storage) { 171 const WebKit::WebURL& url, bool is_local_storage) {
172 NOTREACHED(); 172 NOTREACHED();
173 } 173 }
174 174
175 WebSharedWorkerRepository* WorkerWebKitClientImpl::sharedWorkerRepository() { 175 WebSharedWorkerRepository* WorkerWebKitClientImpl::sharedWorkerRepository() {
176 return 0; 176 return 0;
177 } 177 }
178 178
179 WebKitClient::FileHandle WorkerWebKitClientImpl::databaseOpenFile( 179 WebKitClient::FileHandle WorkerWebKitClientImpl::databaseOpenFile(
180 const WebString& vfs_file_name, int desired_flags) { 180 const WebString& vfs_file_name, int desired_flags) {
181 return DatabaseUtil::databaseOpenFile(vfs_file_name, desired_flags); 181 return DatabaseUtil::DatabaseOpenFile(vfs_file_name, desired_flags);
182 } 182 }
183 183
184 int WorkerWebKitClientImpl::databaseDeleteFile( 184 int WorkerWebKitClientImpl::databaseDeleteFile(
185 const WebString& vfs_file_name, bool sync_dir) { 185 const WebString& vfs_file_name, bool sync_dir) {
186 return DatabaseUtil::databaseDeleteFile(vfs_file_name, sync_dir); 186 return DatabaseUtil::DatabaseDeleteFile(vfs_file_name, sync_dir);
187 } 187 }
188 188
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 }
198
199 long long WorkerWebKitClientImpl::databaseGetSpaceAvailableForOrigin(
200 const WebString& origin_identifier) {
201 return DatabaseUtil::DatabaseGetSpaceAvailable(origin_identifier);
197 } 202 }
198 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();
(...skipping 42 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
« no previous file with comments | « content/worker/worker_webkitclient_impl.h ('k') | webkit/database/database_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698