| OLD | NEW |
| 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/hardware_renderer.h" | 9 #include "android_webview/browser/hardware_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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 cl->AppendSwitch(switches::kDisableExperimentalWebGL); | 66 cl->AppendSwitch(switches::kDisableExperimentalWebGL); |
| 67 cl->AppendSwitch(switches::kDisableSharedWorkers); | 67 cl->AppendSwitch(switches::kDisableSharedWorkers); |
| 68 | 68 |
| 69 | 69 |
| 70 // File system API not supported (requires some new API; internal bug 6930981) | 70 // File system API not supported (requires some new API; internal bug 6930981) |
| 71 cl->AppendSwitch(switches::kDisableFileSystem); | 71 cl->AppendSwitch(switches::kDisableFileSystem); |
| 72 | 72 |
| 73 // Fullscreen video with subtitle is not yet supported. | 73 // Fullscreen video with subtitle is not yet supported. |
| 74 cl->AppendSwitch(switches::kDisableOverlayFullscreenVideoSubtitle); | 74 cl->AppendSwitch(switches::kDisableOverlayFullscreenVideoSubtitle); |
| 75 | 75 |
| 76 // Disable WebRTC. |
| 77 cl->AppendSwitch(switches::kDisableWebRTC); |
| 78 |
| 76 #if defined(VIDEO_HOLE) | 79 #if defined(VIDEO_HOLE) |
| 77 // Support EME/L1 with hole-punching. | 80 // Support EME/L1 with hole-punching. |
| 78 cl->AppendSwitch(switches::kMediaDrmEnableNonCompositing); | 81 cl->AppendSwitch(switches::kMediaDrmEnableNonCompositing); |
| 79 #endif | 82 #endif |
| 83 |
| 80 return false; | 84 return false; |
| 81 } | 85 } |
| 82 | 86 |
| 83 void AwMainDelegate::PreSandboxStartup() { | 87 void AwMainDelegate::PreSandboxStartup() { |
| 84 // TODO(torne): When we have a separate renderer process, we need to handle | 88 // TODO(torne): When we have a separate renderer process, we need to handle |
| 85 // being passed open FDs for the resource paks here. | 89 // being passed open FDs for the resource paks here. |
| 86 } | 90 } |
| 87 | 91 |
| 88 void AwMainDelegate::SandboxInitialized(const std::string& process_type) { | 92 void AwMainDelegate::SandboxInitialized(const std::string& process_type) { |
| 89 // TODO(torne): Adjust linux OOM score here. | 93 // TODO(torne): Adjust linux OOM score here. |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 content::WebContentsViewDelegate* AwMainDelegate::CreateViewDelegate( | 146 content::WebContentsViewDelegate* AwMainDelegate::CreateViewDelegate( |
| 143 content::WebContents* web_contents) { | 147 content::WebContents* web_contents) { |
| 144 return AwWebContentsViewDelegate::Create(web_contents); | 148 return AwWebContentsViewDelegate::Create(web_contents); |
| 145 } | 149 } |
| 146 | 150 |
| 147 AwWebPreferencesPopulater* AwMainDelegate::CreateWebPreferencesPopulater() { | 151 AwWebPreferencesPopulater* AwMainDelegate::CreateWebPreferencesPopulater() { |
| 148 return new AwWebPreferencesPopulaterImpl(); | 152 return new AwWebPreferencesPopulaterImpl(); |
| 149 } | 153 } |
| 150 | 154 |
| 151 } // namespace android_webview | 155 } // namespace android_webview |
| OLD | NEW |