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 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 if (sudden_termination_disables_ != 1) | 370 if (sudden_termination_disables_ != 1) |
371 return; | 371 return; |
372 } | 372 } |
373 | 373 |
374 RenderThread* thread = RenderThread::Get(); | 374 RenderThread* thread = RenderThread::Get(); |
375 if (thread) // NULL in unittests. | 375 if (thread) // NULL in unittests. |
376 thread->Send(new ViewHostMsg_SuddenTerminationChanged(enabled)); | 376 thread->Send(new ViewHostMsg_SuddenTerminationChanged(enabled)); |
377 } | 377 } |
378 | 378 |
379 WebStorageNamespace* | 379 WebStorageNamespace* |
380 RendererWebKitPlatformSupportImpl::createLocalStorageNamespace( | 380 RendererWebKitPlatformSupportImpl::createLocalStorageNamespace() { |
381 const WebString& path, unsigned quota) { | |
382 return new WebStorageNamespaceImpl(); | 381 return new WebStorageNamespaceImpl(); |
383 } | 382 } |
384 | 383 |
385 | 384 |
386 //------------------------------------------------------------------------------ | 385 //------------------------------------------------------------------------------ |
387 | 386 |
388 WebIDBFactory* RendererWebKitPlatformSupportImpl::idbFactory() { | 387 WebIDBFactory* RendererWebKitPlatformSupportImpl::idbFactory() { |
389 if (!web_idb_factory_) | 388 if (!web_idb_factory_) |
390 web_idb_factory_.reset(new RendererWebIDBFactoryImpl(thread_safe_sender_)); | 389 web_idb_factory_.reset(new RendererWebIDBFactoryImpl(thread_safe_sender_)); |
391 return web_idb_factory_.get(); | 390 return web_idb_factory_.get(); |
(...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1050 | 1049 |
1051 //------------------------------------------------------------------------------ | 1050 //------------------------------------------------------------------------------ |
1052 | 1051 |
1053 WebKit::WebString RendererWebKitPlatformSupportImpl::convertIDNToUnicode( | 1052 WebKit::WebString RendererWebKitPlatformSupportImpl::convertIDNToUnicode( |
1054 const WebKit::WebString& host, | 1053 const WebKit::WebString& host, |
1055 const WebKit::WebString& languages) { | 1054 const WebKit::WebString& languages) { |
1056 return net::IDNToUnicode(host.utf8(), languages.utf8()); | 1055 return net::IDNToUnicode(host.utf8(), languages.utf8()); |
1057 } | 1056 } |
1058 | 1057 |
1059 } // namespace content | 1058 } // namespace content |
OLD | NEW |