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 636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
647 !command_line.HasSwitch(switches::kDisableLocalStorage)); | 647 !command_line.HasSwitch(switches::kDisableLocalStorage)); |
648 WebRuntimeFeatures::enableSessionStorage( | 648 WebRuntimeFeatures::enableSessionStorage( |
649 !command_line.HasSwitch(switches::kDisableSessionStorage)); | 649 !command_line.HasSwitch(switches::kDisableSessionStorage)); |
650 | 650 |
651 WebRuntimeFeatures::enableIndexedDatabase(true); | 651 WebRuntimeFeatures::enableIndexedDatabase(true); |
652 | 652 |
653 WebRuntimeFeatures::enableGeolocation( | 653 WebRuntimeFeatures::enableGeolocation( |
654 !command_line.HasSwitch(switches::kDisableGeolocation)); | 654 !command_line.HasSwitch(switches::kDisableGeolocation)); |
655 | 655 |
656 WebKit::WebRuntimeFeatures::enableMediaSource( | 656 WebKit::WebRuntimeFeatures::enableMediaSource( |
657 command_line.HasSwitch(switches::kEnableMediaSource)); | 657 !command_line.HasSwitch(switches::kDisableMediaSource)); |
658 | 658 |
659 WebRuntimeFeatures::enableMediaPlayer( | 659 WebRuntimeFeatures::enableMediaPlayer( |
660 media::IsMediaLibraryInitialized()); | 660 media::IsMediaLibraryInitialized()); |
661 | 661 |
662 WebKit::WebRuntimeFeatures::enableMediaStream(true); | 662 WebKit::WebRuntimeFeatures::enableMediaStream(true); |
663 WebKit::WebRuntimeFeatures::enablePeerConnection(true); | 663 WebKit::WebRuntimeFeatures::enablePeerConnection(true); |
664 | 664 |
665 WebKit::WebRuntimeFeatures::enableFullScreenAPI( | 665 WebKit::WebRuntimeFeatures::enableFullScreenAPI( |
666 !command_line.HasSwitch(switches::kDisableFullScreen)); | 666 !command_line.HasSwitch(switches::kDisableFullScreen)); |
667 | 667 |
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1144 | 1144 |
1145 scoped_refptr<base::MessageLoopProxy> | 1145 scoped_refptr<base::MessageLoopProxy> |
1146 RenderThreadImpl::GetFileThreadMessageLoopProxy() { | 1146 RenderThreadImpl::GetFileThreadMessageLoopProxy() { |
1147 DCHECK(message_loop() == MessageLoop::current()); | 1147 DCHECK(message_loop() == MessageLoop::current()); |
1148 if (!file_thread_.get()) { | 1148 if (!file_thread_.get()) { |
1149 file_thread_.reset(new base::Thread("Renderer::FILE")); | 1149 file_thread_.reset(new base::Thread("Renderer::FILE")); |
1150 file_thread_->Start(); | 1150 file_thread_->Start(); |
1151 } | 1151 } |
1152 return file_thread_->message_loop_proxy(); | 1152 return file_thread_->message_loop_proxy(); |
1153 } | 1153 } |
OLD | NEW |