| 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/message_loop/message_loop_proxy.h" | 10 #include "base/message_loop/message_loop_proxy.h" |
| (...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 WebStorageNamespace* | 379 WebStorageNamespace* |
| 380 RendererWebKitPlatformSupportImpl::createLocalStorageNamespace() { | 380 RendererWebKitPlatformSupportImpl::createLocalStorageNamespace() { |
| 381 return new WebStorageNamespaceImpl(); | 381 return new WebStorageNamespaceImpl(); |
| 382 } | 382 } |
| 383 | 383 |
| 384 | 384 |
| 385 //------------------------------------------------------------------------------ | 385 //------------------------------------------------------------------------------ |
| 386 | 386 |
| 387 WebIDBFactory* RendererWebKitPlatformSupportImpl::idbFactory() { | 387 WebIDBFactory* RendererWebKitPlatformSupportImpl::idbFactory() { |
| 388 if (!web_idb_factory_) | 388 if (!web_idb_factory_) |
| 389 web_idb_factory_.reset(new RendererWebIDBFactoryImpl(thread_safe_sender_)); | 389 web_idb_factory_.reset( |
| 390 new RendererWebIDBFactoryImpl(thread_safe_sender_.get())); |
| 390 return web_idb_factory_.get(); | 391 return web_idb_factory_.get(); |
| 391 } | 392 } |
| 392 | 393 |
| 393 //------------------------------------------------------------------------------ | 394 //------------------------------------------------------------------------------ |
| 394 | 395 |
| 395 WebFileSystem* RendererWebKitPlatformSupportImpl::fileSystem() { | 396 WebFileSystem* RendererWebKitPlatformSupportImpl::fileSystem() { |
| 396 if (!web_file_system_) | 397 if (!web_file_system_) |
| 397 web_file_system_.reset(new WebFileSystemImpl()); | 398 web_file_system_.reset(new WebFileSystemImpl()); |
| 398 return web_file_system_.get(); | 399 return web_file_system_.get(); |
| 399 } | 400 } |
| (...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1049 | 1050 |
| 1050 //------------------------------------------------------------------------------ | 1051 //------------------------------------------------------------------------------ |
| 1051 | 1052 |
| 1052 WebKit::WebString RendererWebKitPlatformSupportImpl::convertIDNToUnicode( | 1053 WebKit::WebString RendererWebKitPlatformSupportImpl::convertIDNToUnicode( |
| 1053 const WebKit::WebString& host, | 1054 const WebKit::WebString& host, |
| 1054 const WebKit::WebString& languages) { | 1055 const WebKit::WebString& languages) { |
| 1055 return net::IDNToUnicode(host.utf8(), languages.utf8()); | 1056 return net::IDNToUnicode(host.utf8(), languages.utf8()); |
| 1056 } | 1057 } |
| 1057 | 1058 |
| 1058 } // namespace content | 1059 } // namespace content |
| OLD | NEW |