| 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 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 555 | 555 |
| 556 WebKit::WebRuntimeFeatures::enableMediaStream(true); | 556 WebKit::WebRuntimeFeatures::enableMediaStream(true); |
| 557 | 557 |
| 558 WebKit::WebRuntimeFeatures::enablePeerConnection( | 558 WebKit::WebRuntimeFeatures::enablePeerConnection( |
| 559 command_line.HasSwitch(switches::kEnablePeerConnection)); | 559 command_line.HasSwitch(switches::kEnablePeerConnection)); |
| 560 | 560 |
| 561 WebKit::WebRuntimeFeatures::enableFullScreenAPI( | 561 WebKit::WebRuntimeFeatures::enableFullScreenAPI( |
| 562 !command_line.HasSwitch(switches::kDisableFullScreen)); | 562 !command_line.HasSwitch(switches::kDisableFullScreen)); |
| 563 | 563 |
| 564 WebKit::WebRuntimeFeatures::enablePointerLock( | 564 WebKit::WebRuntimeFeatures::enablePointerLock( |
| 565 command_line.HasSwitch(switches::kEnablePointerLock)); | 565 !command_line.HasSwitch(switches::kDisablePointerLock)); |
| 566 | 566 |
| 567 WebKit::WebRuntimeFeatures::enableVideoTrack( | 567 WebKit::WebRuntimeFeatures::enableVideoTrack( |
| 568 command_line.HasSwitch(switches::kEnableVideoTrack)); | 568 command_line.HasSwitch(switches::kEnableVideoTrack)); |
| 569 | 569 |
| 570 WebKit::WebRuntimeFeatures::enableEncryptedMedia( | 570 WebKit::WebRuntimeFeatures::enableEncryptedMedia( |
| 571 command_line.HasSwitch(switches::kEnableEncryptedMedia)); | 571 command_line.HasSwitch(switches::kEnableEncryptedMedia)); |
| 572 | 572 |
| 573 WebRuntimeFeatures::enableWebAudio( | 573 WebRuntimeFeatures::enableWebAudio( |
| 574 !command_line.HasSwitch(switches::kDisableWebAudio) && | 574 !command_line.HasSwitch(switches::kDisableWebAudio) && |
| 575 media::IsMediaLibraryInitialized()); | 575 media::IsMediaLibraryInitialized()); |
| (...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1020 | 1020 |
| 1021 scoped_refptr<base::MessageLoopProxy> | 1021 scoped_refptr<base::MessageLoopProxy> |
| 1022 RenderThreadImpl::GetFileThreadMessageLoopProxy() { | 1022 RenderThreadImpl::GetFileThreadMessageLoopProxy() { |
| 1023 DCHECK(message_loop() == MessageLoop::current()); | 1023 DCHECK(message_loop() == MessageLoop::current()); |
| 1024 if (!file_thread_.get()) { | 1024 if (!file_thread_.get()) { |
| 1025 file_thread_.reset(new base::Thread("Renderer::FILE")); | 1025 file_thread_.reset(new base::Thread("Renderer::FILE")); |
| 1026 file_thread_->Start(); | 1026 file_thread_->Start(); |
| 1027 } | 1027 } |
| 1028 return file_thread_->message_loop_proxy(); | 1028 return file_thread_->message_loop_proxy(); |
| 1029 } | 1029 } |
| OLD | NEW |