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

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

Issue 17955002: Fix IndexedDB after r208777. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix unittests Created 7 years, 5 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_thread.cc ('k') | no next file » | 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) 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 "content/worker/worker_webkitplatformsupport_impl.h" 5 #include "content/worker/worker_webkitplatformsupport_impl.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop/message_loop_proxy.h" 9 #include "base/message_loop/message_loop_proxy.h"
10 #include "base/platform_file.h" 10 #include "base/platform_file.h"
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 } 198 }
199 199
200 long long WorkerWebKitPlatformSupportImpl::databaseGetSpaceAvailableForOrigin( 200 long long WorkerWebKitPlatformSupportImpl::databaseGetSpaceAvailableForOrigin(
201 const WebString& origin_identifier) { 201 const WebString& origin_identifier) {
202 return DatabaseUtil::DatabaseGetSpaceAvailable( 202 return DatabaseUtil::DatabaseGetSpaceAvailable(
203 origin_identifier, sync_message_filter_); 203 origin_identifier, sync_message_filter_);
204 } 204 }
205 205
206 WebKit::WebIDBFactory* WorkerWebKitPlatformSupportImpl::idbFactory() { 206 WebKit::WebIDBFactory* WorkerWebKitPlatformSupportImpl::idbFactory() {
207 if (!web_idb_factory_) 207 if (!web_idb_factory_)
208 web_idb_factory_.reset(new RendererWebIDBFactoryImpl()); 208 web_idb_factory_.reset(new RendererWebIDBFactoryImpl(thread_safe_sender_));
209 return web_idb_factory_.get(); 209 return web_idb_factory_.get();
210 } 210 }
211 211
212 WebMimeRegistry::SupportsType 212 WebMimeRegistry::SupportsType
213 WorkerWebKitPlatformSupportImpl::supportsMIMEType( 213 WorkerWebKitPlatformSupportImpl::supportsMIMEType(
214 const WebString&) { 214 const WebString&) {
215 return WebMimeRegistry::IsSupported; 215 return WebMimeRegistry::IsSupported;
216 } 216 }
217 217
218 WebMimeRegistry::SupportsType 218 WebMimeRegistry::SupportsType
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 return base::FilePath(file_extension).AsUTF16Unsafe(); 290 return base::FilePath(file_extension).AsUTF16Unsafe();
291 } 291 }
292 292
293 WebBlobRegistry* WorkerWebKitPlatformSupportImpl::blobRegistry() { 293 WebBlobRegistry* WorkerWebKitPlatformSupportImpl::blobRegistry() {
294 if (!blob_registry_.get() && thread_safe_sender_.get()) 294 if (!blob_registry_.get() && thread_safe_sender_.get())
295 blob_registry_.reset(new WebBlobRegistryImpl(thread_safe_sender_.get())); 295 blob_registry_.reset(new WebBlobRegistryImpl(thread_safe_sender_.get()));
296 return blob_registry_.get(); 296 return blob_registry_.get();
297 } 297 }
298 298
299 } // namespace content 299 } // namespace content
OLDNEW
« no previous file with comments | « content/worker/worker_thread.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698