Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(398)

Side by Side Diff: content/renderer/render_thread_impl.cc

Issue 10915117: Enable Media Source API by default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix chrome_frame test Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/public/common/content_switches.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « content/public/common/content_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698