| OLD | NEW |
| 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/renderer/render_thread_impl.h" | 5 #include "content/renderer/render_thread_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <limits> | 8 #include <limits> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 533 | 533 |
| 534 WebRuntimeFeatures::enableSpeechInput( | 534 WebRuntimeFeatures::enableSpeechInput( |
| 535 !command_line.HasSwitch(switches::kDisableSpeechInput)); | 535 !command_line.HasSwitch(switches::kDisableSpeechInput)); |
| 536 | 536 |
| 537 WebRuntimeFeatures::enableFileSystem( | 537 WebRuntimeFeatures::enableFileSystem( |
| 538 !command_line.HasSwitch(switches::kDisableFileSystem)); | 538 !command_line.HasSwitch(switches::kDisableFileSystem)); |
| 539 | 539 |
| 540 WebRuntimeFeatures::enableJavaScriptI18NAPI( | 540 WebRuntimeFeatures::enableJavaScriptI18NAPI( |
| 541 !command_line.HasSwitch(switches::kDisableJavaScriptI18NAPI)); | 541 !command_line.HasSwitch(switches::kDisableJavaScriptI18NAPI)); |
| 542 | 542 |
| 543 WebRuntimeFeatures::enableGamepad( |
| 544 command_line.HasSwitch(switches::kEnableGamepad)); |
| 545 |
| 543 WebRuntimeFeatures::enableQuota(true); | 546 WebRuntimeFeatures::enableQuota(true); |
| 544 | 547 |
| 545 FOR_EACH_OBSERVER(RenderProcessObserver, observers_, WebKitInitialized()); | 548 FOR_EACH_OBSERVER(RenderProcessObserver, observers_, WebKitInitialized()); |
| 546 | 549 |
| 547 if (content::GetContentClient()->renderer()-> | 550 if (content::GetContentClient()->renderer()-> |
| 548 RunIdleHandlerWhenWidgetsHidden()) { | 551 RunIdleHandlerWhenWidgetsHidden()) { |
| 549 ScheduleIdleHandler(kLongIdleHandlerDelayMs); | 552 ScheduleIdleHandler(kLongIdleHandlerDelayMs); |
| 550 } | 553 } |
| 551 } | 554 } |
| 552 | 555 |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 847 | 850 |
| 848 scoped_refptr<base::MessageLoopProxy> | 851 scoped_refptr<base::MessageLoopProxy> |
| 849 RenderThreadImpl::GetFileThreadMessageLoopProxy() { | 852 RenderThreadImpl::GetFileThreadMessageLoopProxy() { |
| 850 DCHECK(message_loop() == MessageLoop::current()); | 853 DCHECK(message_loop() == MessageLoop::current()); |
| 851 if (!file_thread_.get()) { | 854 if (!file_thread_.get()) { |
| 852 file_thread_.reset(new base::Thread("Renderer::FILE")); | 855 file_thread_.reset(new base::Thread("Renderer::FILE")); |
| 853 file_thread_->Start(); | 856 file_thread_->Start(); |
| 854 } | 857 } |
| 855 return file_thread_->message_loop_proxy(); | 858 return file_thread_->message_loop_proxy(); |
| 856 } | 859 } |
| OLD | NEW |