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 684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
695 WebRuntimeFeatures::enableFileSystem( | 695 WebRuntimeFeatures::enableFileSystem( |
696 !command_line.HasSwitch(switches::kDisableFileSystem)); | 696 !command_line.HasSwitch(switches::kDisableFileSystem)); |
697 | 697 |
698 WebRuntimeFeatures::enableJavaScriptI18NAPI( | 698 WebRuntimeFeatures::enableJavaScriptI18NAPI( |
699 !command_line.HasSwitch(switches::kDisableJavaScriptI18NAPI)); | 699 !command_line.HasSwitch(switches::kDisableJavaScriptI18NAPI)); |
700 | 700 |
701 WebRuntimeFeatures::enableGamepad(true); | 701 WebRuntimeFeatures::enableGamepad(true); |
702 | 702 |
703 WebRuntimeFeatures::enableQuota(true); | 703 WebRuntimeFeatures::enableQuota(true); |
704 | 704 |
705 WebRuntimeFeatures::enableShadowDOM( | 705 WebRuntimeFeatures::enableShadowDOM(true); |
706 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures)); | |
707 | 706 |
708 WebRuntimeFeatures::enableStyleScoped( | 707 WebRuntimeFeatures::enableStyleScoped( |
709 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures)); | 708 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures)); |
710 | 709 |
711 WebRuntimeFeatures::enableCSSExclusions( | 710 WebRuntimeFeatures::enableCSSExclusions( |
712 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures)); | 711 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures)); |
713 | 712 |
714 FOR_EACH_OBSERVER(RenderProcessObserver, observers_, WebKitInitialized()); | 713 FOR_EACH_OBSERVER(RenderProcessObserver, observers_, WebKitInitialized()); |
715 | 714 |
716 devtools_agent_message_filter_ = new DevToolsAgentFilter(); | 715 devtools_agent_message_filter_ = new DevToolsAgentFilter(); |
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1150 | 1149 |
1151 scoped_refptr<base::MessageLoopProxy> | 1150 scoped_refptr<base::MessageLoopProxy> |
1152 RenderThreadImpl::GetFileThreadMessageLoopProxy() { | 1151 RenderThreadImpl::GetFileThreadMessageLoopProxy() { |
1153 DCHECK(message_loop() == MessageLoop::current()); | 1152 DCHECK(message_loop() == MessageLoop::current()); |
1154 if (!file_thread_.get()) { | 1153 if (!file_thread_.get()) { |
1155 file_thread_.reset(new base::Thread("Renderer::FILE")); | 1154 file_thread_.reset(new base::Thread("Renderer::FILE")); |
1156 file_thread_->Start(); | 1155 file_thread_->Start(); |
1157 } | 1156 } |
1158 return file_thread_->message_loop_proxy(); | 1157 return file_thread_->message_loop_proxy(); |
1159 } | 1158 } |
OLD | NEW |