| 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/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 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 591 WebKit::WebRuntimeFeatures::enablePeerConnection( | 591 WebKit::WebRuntimeFeatures::enablePeerConnection( |
| 592 command_line.HasSwitch(switches::kEnablePeerConnection)); | 592 command_line.HasSwitch(switches::kEnablePeerConnection)); |
| 593 | 593 |
| 594 WebKit::WebRuntimeFeatures::enableFullScreenAPI( | 594 WebKit::WebRuntimeFeatures::enableFullScreenAPI( |
| 595 !command_line.HasSwitch(switches::kDisableFullScreen)); | 595 !command_line.HasSwitch(switches::kDisableFullScreen)); |
| 596 | 596 |
| 597 WebKit::WebRuntimeFeatures::enablePointerLock( | 597 WebKit::WebRuntimeFeatures::enablePointerLock( |
| 598 !command_line.HasSwitch(switches::kDisablePointerLock)); | 598 !command_line.HasSwitch(switches::kDisablePointerLock)); |
| 599 | 599 |
| 600 WebKit::WebRuntimeFeatures::enableVideoTrack( | 600 WebKit::WebRuntimeFeatures::enableVideoTrack( |
| 601 command_line.HasSwitch(switches::kEnableVideoTrack)); | 601 !command_line.HasSwitch(switches::kDisableVideoTrack)); |
| 602 | 602 |
| 603 WebKit::WebRuntimeFeatures::enableEncryptedMedia( | 603 WebKit::WebRuntimeFeatures::enableEncryptedMedia( |
| 604 command_line.HasSwitch(switches::kEnableEncryptedMedia)); | 604 command_line.HasSwitch(switches::kEnableEncryptedMedia)); |
| 605 | 605 |
| 606 #if defined(OS_ANDROID) | 606 #if defined(OS_ANDROID) |
| 607 WebRuntimeFeatures::enableWebAudio( | 607 WebRuntimeFeatures::enableWebAudio( |
| 608 command_line.HasSwitch(switches::kEnableWebAudio) && | 608 command_line.HasSwitch(switches::kEnableWebAudio) && |
| 609 media::IsMediaLibraryInitialized()); | 609 media::IsMediaLibraryInitialized()); |
| 610 #else | 610 #else |
| 611 WebRuntimeFeatures::enableWebAudio( | 611 WebRuntimeFeatures::enableWebAudio( |
| (...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1073 | 1073 |
| 1074 scoped_refptr<base::MessageLoopProxy> | 1074 scoped_refptr<base::MessageLoopProxy> |
| 1075 RenderThreadImpl::GetFileThreadMessageLoopProxy() { | 1075 RenderThreadImpl::GetFileThreadMessageLoopProxy() { |
| 1076 DCHECK(message_loop() == MessageLoop::current()); | 1076 DCHECK(message_loop() == MessageLoop::current()); |
| 1077 if (!file_thread_.get()) { | 1077 if (!file_thread_.get()) { |
| 1078 file_thread_.reset(new base::Thread("Renderer::FILE")); | 1078 file_thread_.reset(new base::Thread("Renderer::FILE")); |
| 1079 file_thread_->Start(); | 1079 file_thread_->Start(); |
| 1080 } | 1080 } |
| 1081 return file_thread_->message_loop_proxy(); | 1081 return file_thread_->message_loop_proxy(); |
| 1082 } | 1082 } |
| OLD | NEW |