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

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

Issue 8395053: Adding flag for turning on the Media Source API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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
OLDNEW
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 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 !command_line.HasSwitch(switches::kDisableLocalStorage)); 472 !command_line.HasSwitch(switches::kDisableLocalStorage));
473 WebRuntimeFeatures::enableSessionStorage( 473 WebRuntimeFeatures::enableSessionStorage(
474 !command_line.HasSwitch(switches::kDisableSessionStorage)); 474 !command_line.HasSwitch(switches::kDisableSessionStorage));
475 475
476 WebRuntimeFeatures::enableIndexedDatabase( 476 WebRuntimeFeatures::enableIndexedDatabase(
477 !command_line.HasSwitch(switches::kDisableIndexedDatabase)); 477 !command_line.HasSwitch(switches::kDisableIndexedDatabase));
478 478
479 WebRuntimeFeatures::enableGeolocation( 479 WebRuntimeFeatures::enableGeolocation(
480 !command_line.HasSwitch(switches::kDisableGeolocation)); 480 !command_line.HasSwitch(switches::kDisableGeolocation));
481 481
482 WebKit::WebRuntimeFeatures::enableMediaSource(
483 command_line.HasSwitch(switches::kEnableMediaSource));
484
482 WebKit::WebRuntimeFeatures::enableMediaStream( 485 WebKit::WebRuntimeFeatures::enableMediaStream(
483 command_line.HasSwitch(switches::kEnableMediaStream)); 486 command_line.HasSwitch(switches::kEnableMediaStream));
484 487
485 WebKit::WebRuntimeFeatures::enableFullScreenAPI( 488 WebKit::WebRuntimeFeatures::enableFullScreenAPI(
486 !command_line.HasSwitch(switches::kDisableFullScreen)); 489 !command_line.HasSwitch(switches::kDisableFullScreen));
487 490
488 WebKit::WebRuntimeFeatures::enableVideoTrack( 491 WebKit::WebRuntimeFeatures::enableVideoTrack(
489 command_line.HasSwitch(switches::kEnableVideoTrack)); 492 command_line.HasSwitch(switches::kEnableVideoTrack));
490 493
491 #if defined(OS_CHROMEOS) 494 #if defined(OS_CHROMEOS)
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
775 778
776 scoped_refptr<base::MessageLoopProxy> 779 scoped_refptr<base::MessageLoopProxy>
777 RenderThreadImpl::GetFileThreadMessageLoopProxy() { 780 RenderThreadImpl::GetFileThreadMessageLoopProxy() {
778 DCHECK(message_loop() == MessageLoop::current()); 781 DCHECK(message_loop() == MessageLoop::current());
779 if (!file_thread_.get()) { 782 if (!file_thread_.get()) {
780 file_thread_.reset(new base::Thread("Renderer::FILE")); 783 file_thread_.reset(new base::Thread("Renderer::FILE"));
781 file_thread_->Start(); 784 file_thread_->Start();
782 } 785 }
783 return file_thread_->message_loop_proxy(); 786 return file_thread_->message_loop_proxy();
784 } 787 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698