OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
483 | 483 |
484 WebRuntimeFeatures::enableNotifications( | 484 WebRuntimeFeatures::enableNotifications( |
485 !command_line.HasSwitch(switches::kDisableDesktopNotifications)); | 485 !command_line.HasSwitch(switches::kDisableDesktopNotifications)); |
486 | 486 |
487 WebRuntimeFeatures::enableLocalStorage( | 487 WebRuntimeFeatures::enableLocalStorage( |
488 !command_line.HasSwitch(switches::kDisableLocalStorage)); | 488 !command_line.HasSwitch(switches::kDisableLocalStorage)); |
489 WebRuntimeFeatures::enableSessionStorage( | 489 WebRuntimeFeatures::enableSessionStorage( |
490 !command_line.HasSwitch(switches::kDisableSessionStorage)); | 490 !command_line.HasSwitch(switches::kDisableSessionStorage)); |
491 | 491 |
492 WebRuntimeFeatures::enableIndexedDatabase( | 492 WebRuntimeFeatures::enableIndexedDatabase( |
493 !command_line.HasSwitch(switches::kDisableIndexedDatabase)); | 493 command_line.HasSwitch(switches::kEnableIndexedDBForWorkers)); |
494 | 494 |
495 WebRuntimeFeatures::enableGeolocation( | 495 WebRuntimeFeatures::enableGeolocation( |
496 !command_line.HasSwitch(switches::kDisableGeolocation)); | 496 !command_line.HasSwitch(switches::kDisableGeolocation)); |
497 | 497 |
498 WebKit::WebRuntimeFeatures::enableMediaSource( | 498 WebKit::WebRuntimeFeatures::enableMediaSource( |
499 command_line.HasSwitch(switches::kEnableMediaSource)); | 499 command_line.HasSwitch(switches::kEnableMediaSource)); |
500 | 500 |
501 WebKit::WebRuntimeFeatures::enableMediaStream( | 501 WebKit::WebRuntimeFeatures::enableMediaStream( |
502 command_line.HasSwitch(switches::kEnableMediaStream)); | 502 command_line.HasSwitch(switches::kEnableMediaStream)); |
503 | 503 |
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
857 | 857 |
858 scoped_refptr<base::MessageLoopProxy> | 858 scoped_refptr<base::MessageLoopProxy> |
859 RenderThreadImpl::GetFileThreadMessageLoopProxy() { | 859 RenderThreadImpl::GetFileThreadMessageLoopProxy() { |
860 DCHECK(message_loop() == MessageLoop::current()); | 860 DCHECK(message_loop() == MessageLoop::current()); |
861 if (!file_thread_.get()) { | 861 if (!file_thread_.get()) { |
862 file_thread_.reset(new base::Thread("Renderer::FILE")); | 862 file_thread_.reset(new base::Thread("Renderer::FILE")); |
863 file_thread_->Start(); | 863 file_thread_->Start(); |
864 } | 864 } |
865 return file_thread_->message_loop_proxy(); | 865 return file_thread_->message_loop_proxy(); |
866 } | 866 } |
OLD | NEW |