| OLD | NEW |
| 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/renderer/renderer_webkitplatformsupport_impl.h" | 5 #include "content/renderer/renderer_webkitplatformsupport_impl.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
| 10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
| (...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 RendererWebKitPlatformSupportImpl::createLocalStorageNamespace( | 351 RendererWebKitPlatformSupportImpl::createLocalStorageNamespace( |
| 352 const WebString& path, unsigned quota) { | 352 const WebString& path, unsigned quota) { |
| 353 return new WebStorageNamespaceImpl(); | 353 return new WebStorageNamespaceImpl(); |
| 354 } | 354 } |
| 355 | 355 |
| 356 | 356 |
| 357 //------------------------------------------------------------------------------ | 357 //------------------------------------------------------------------------------ |
| 358 | 358 |
| 359 WebIDBFactory* RendererWebKitPlatformSupportImpl::idbFactory() { | 359 WebIDBFactory* RendererWebKitPlatformSupportImpl::idbFactory() { |
| 360 if (!web_idb_factory_) { | 360 if (!web_idb_factory_) { |
| 361 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess) && | 361 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess)) |
| 362 !CommandLine::ForCurrentProcess()->HasSwitch(switches::kNewIndexedDB)) | 362 web_idb_factory_.reset(WebIDBFactory::create()); |
| 363 web_idb_factory_.reset(WebIDBFactory::create()); | |
| 364 else | 363 else |
| 365 web_idb_factory_.reset(new RendererWebIDBFactoryImpl()); | 364 web_idb_factory_.reset(new RendererWebIDBFactoryImpl()); |
| 366 } | 365 } |
| 367 return web_idb_factory_.get(); | 366 return web_idb_factory_.get(); |
| 368 } | 367 } |
| 369 | 368 |
| 370 //------------------------------------------------------------------------------ | 369 //------------------------------------------------------------------------------ |
| 371 | 370 |
| 372 WebFileSystem* RendererWebKitPlatformSupportImpl::fileSystem() { | 371 WebFileSystem* RendererWebKitPlatformSupportImpl::fileSystem() { |
| 373 if (!web_file_system_) | 372 if (!web_file_system_) |
| (...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 898 } | 897 } |
| 899 | 898 |
| 900 //------------------------------------------------------------------------------ | 899 //------------------------------------------------------------------------------ |
| 901 | 900 |
| 902 WebKit::WebCompositorSupport* | 901 WebKit::WebCompositorSupport* |
| 903 RendererWebKitPlatformSupportImpl::compositorSupport() { | 902 RendererWebKitPlatformSupportImpl::compositorSupport() { |
| 904 return &compositor_support_; | 903 return &compositor_support_; |
| 905 } | 904 } |
| 906 | 905 |
| 907 } // namespace content | 906 } // namespace content |
| OLD | NEW |