OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/renderer/render_thread.h" | 5 #include "chrome/renderer/render_thread.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 927 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
938 WebRuntimeFeatures::enableSessionStorage( | 938 WebRuntimeFeatures::enableSessionStorage( |
939 !command_line.HasSwitch(switches::kDisableSessionStorage)); | 939 !command_line.HasSwitch(switches::kDisableSessionStorage)); |
940 | 940 |
941 WebRuntimeFeatures::enableIndexedDatabase( | 941 WebRuntimeFeatures::enableIndexedDatabase( |
942 command_line.HasSwitch(switches::kEnableIndexedDatabase)); | 942 command_line.HasSwitch(switches::kEnableIndexedDatabase)); |
943 | 943 |
944 WebRuntimeFeatures::enableGeolocation( | 944 WebRuntimeFeatures::enableGeolocation( |
945 !command_line.HasSwitch(switches::kDisableGeolocation)); | 945 !command_line.HasSwitch(switches::kDisableGeolocation)); |
946 | 946 |
947 WebRuntimeFeatures::enableWebGL( | 947 WebRuntimeFeatures::enableWebGL( |
948 command_line.HasSwitch(switches::kEnableExperimentalWebGL)); | 948 !command_line.HasSwitch(switches::kDisableExperimentalWebGL)); |
949 | 949 |
950 WebRuntimeFeatures::enablePushState(true); | 950 WebRuntimeFeatures::enablePushState(true); |
951 | 951 |
952 WebRuntimeFeatures::enableTouch( | 952 WebRuntimeFeatures::enableTouch( |
953 command_line.HasSwitch(switches::kEnableTouch)); | 953 command_line.HasSwitch(switches::kEnableTouch)); |
954 | 954 |
955 WebRuntimeFeatures::enableDeviceMotion( | 955 WebRuntimeFeatures::enableDeviceMotion( |
956 command_line.HasSwitch(switches::kEnableDeviceMotion)); | 956 command_line.HasSwitch(switches::kEnableDeviceMotion)); |
957 | 957 |
958 WebRuntimeFeatures::enableDeviceOrientation( | 958 WebRuntimeFeatures::enableDeviceOrientation( |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1101 | 1101 |
1102 scoped_refptr<base::MessageLoopProxy> | 1102 scoped_refptr<base::MessageLoopProxy> |
1103 RenderThread::GetFileThreadMessageLoopProxy() { | 1103 RenderThread::GetFileThreadMessageLoopProxy() { |
1104 DCHECK(message_loop() == MessageLoop::current()); | 1104 DCHECK(message_loop() == MessageLoop::current()); |
1105 if (!file_thread_.get()) { | 1105 if (!file_thread_.get()) { |
1106 file_thread_.reset(new base::Thread("Renderer::FILE")); | 1106 file_thread_.reset(new base::Thread("Renderer::FILE")); |
1107 file_thread_->Start(); | 1107 file_thread_->Start(); |
1108 } | 1108 } |
1109 return file_thread_->message_loop_proxy(); | 1109 return file_thread_->message_loop_proxy(); |
1110 } | 1110 } |
OLD | NEW |