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

Side by Side Diff: android_webview/lib/main/aw_main_delegate.cc

Issue 171463002: Enable webrtc for webview. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync Created 6 years, 10 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
« no previous file with comments | « no previous file | build/common.gypi » ('j') | 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 "android_webview/lib/main/aw_main_delegate.h" 5 #include "android_webview/lib/main/aw_main_delegate.h"
6 6
7 #include "android_webview/browser/aw_content_browser_client.h" 7 #include "android_webview/browser/aw_content_browser_client.h"
8 #include "android_webview/browser/gpu_memory_buffer_factory_impl.h" 8 #include "android_webview/browser/gpu_memory_buffer_factory_impl.h"
9 #include "android_webview/browser/in_process_view_renderer.h" 9 #include "android_webview/browser/in_process_view_renderer.h"
10 #include "android_webview/browser/scoped_allow_wait_for_legacy_web_view_api.h" 10 #include "android_webview/browser/scoped_allow_wait_for_legacy_web_view_api.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 // be turned on by default yet. 71 // be turned on by default yet.
72 if (!cl->HasSwitch(switches::kEnableAccelerated2dCanvas)) 72 if (!cl->HasSwitch(switches::kEnableAccelerated2dCanvas))
73 cl->AppendSwitch(switches::kDisableAccelerated2dCanvas); 73 cl->AppendSwitch(switches::kDisableAccelerated2dCanvas);
74 74
75 // File system API not supported (requires some new API; internal bug 6930981) 75 // File system API not supported (requires some new API; internal bug 6930981)
76 cl->AppendSwitch(switches::kDisableFileSystem); 76 cl->AppendSwitch(switches::kDisableFileSystem);
77 77
78 // Disable compositor touch hit testing for now to mitigate risk of bugs. 78 // Disable compositor touch hit testing for now to mitigate risk of bugs.
79 cl->AppendSwitch(cc::switches::kDisableCompositorTouchHitTesting); 79 cl->AppendSwitch(cc::switches::kDisableCompositorTouchHitTesting);
80 80
81 // Disable WebRTC.
82 cl->AppendSwitch(switches::kDisableWebRTC);
83
84 #if defined(VIDEO_HOLE) 81 #if defined(VIDEO_HOLE)
85 // Support EME/L1 with hole-punching. 82 // Support EME/L1 with hole-punching.
86 cl->AppendSwitch(switches::kMediaDrmEnableNonCompositing); 83 cl->AppendSwitch(switches::kMediaDrmEnableNonCompositing);
87 #endif 84 #endif
88
89 return false; 85 return false;
90 } 86 }
91 87
92 void AwMainDelegate::PreSandboxStartup() { 88 void AwMainDelegate::PreSandboxStartup() {
93 // TODO(torne): When we have a separate renderer process, we need to handle 89 // TODO(torne): When we have a separate renderer process, we need to handle
94 // being passed open FDs for the resource paks here. 90 // being passed open FDs for the resource paks here.
95 } 91 }
96 92
97 void AwMainDelegate::SandboxInitialized(const std::string& process_type) { 93 void AwMainDelegate::SandboxInitialized(const std::string& process_type) {
98 // TODO(torne): Adjust linux OOM score here. 94 // TODO(torne): Adjust linux OOM score here.
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 content::WebContentsViewDelegate* AwMainDelegate::CreateViewDelegate( 147 content::WebContentsViewDelegate* AwMainDelegate::CreateViewDelegate(
152 content::WebContents* web_contents) { 148 content::WebContents* web_contents) {
153 return AwWebContentsViewDelegate::Create(web_contents); 149 return AwWebContentsViewDelegate::Create(web_contents);
154 } 150 }
155 151
156 AwWebPreferencesPopulater* AwMainDelegate::CreateWebPreferencesPopulater() { 152 AwWebPreferencesPopulater* AwMainDelegate::CreateWebPreferencesPopulater() {
157 return new AwWebPreferencesPopulaterImpl(); 153 return new AwWebPreferencesPopulaterImpl();
158 } 154 }
159 155
160 } // namespace android_webview 156 } // namespace android_webview
OLDNEW
« no previous file with comments | « no previous file | build/common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698