| 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::kDisableExperimentalWebGL)); | 948 command_line.HasSwitch(switches::kEnableExperimentalWebGL)); |
| 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1099 | 1099 |
| 1100 scoped_refptr<base::MessageLoopProxy> | 1100 scoped_refptr<base::MessageLoopProxy> |
| 1101 RenderThread::GetFileThreadMessageLoopProxy() { | 1101 RenderThread::GetFileThreadMessageLoopProxy() { |
| 1102 DCHECK(message_loop() == MessageLoop::current()); | 1102 DCHECK(message_loop() == MessageLoop::current()); |
| 1103 if (!file_thread_.get()) { | 1103 if (!file_thread_.get()) { |
| 1104 file_thread_.reset(new base::Thread("Renderer::FILE")); | 1104 file_thread_.reset(new base::Thread("Renderer::FILE")); |
| 1105 file_thread_->Start(); | 1105 file_thread_->Start(); |
| 1106 } | 1106 } |
| 1107 return file_thread_->message_loop_proxy(); | 1107 return file_thread_->message_loop_proxy(); |
| 1108 } | 1108 } |
| OLD | NEW |