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

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

Issue 914373003: Exceptions for Web Notifications and the Push API by default. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix the AndroidWebViewTest assert Created 5 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
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/browser_view_renderer.h" 8 #include "android_webview/browser/browser_view_renderer.h"
9 #include "android_webview/browser/scoped_allow_wait_for_legacy_web_view_api.h" 9 #include "android_webview/browser/scoped_allow_wait_for_legacy_web_view_api.h"
10 #include "android_webview/crash_reporter/aw_microdump_crash_reporter.h" 10 #include "android_webview/crash_reporter/aw_microdump_crash_reporter.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 // Pull-to-refresh should never be a default WebView action. 69 // Pull-to-refresh should never be a default WebView action.
70 cl->AppendSwitch(switches::kDisablePullToRefreshEffect); 70 cl->AppendSwitch(switches::kDisablePullToRefreshEffect);
71 71
72 // Not yet supported in single-process mode. 72 // Not yet supported in single-process mode.
73 cl->AppendSwitch(switches::kDisableSharedWorkers); 73 cl->AppendSwitch(switches::kDisableSharedWorkers);
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 // Web Notification API and the Push API are not supported (crbug.com/434712)
79 cl->AppendSwitch(switches::kDisableNotifications);
80
78 #if defined(VIDEO_HOLE) 81 #if defined(VIDEO_HOLE)
79 // Support EME/L1 with hole-punching. 82 // Support EME/L1 with hole-punching.
80 cl->AppendSwitch(switches::kMediaDrmEnableNonCompositing); 83 cl->AppendSwitch(switches::kMediaDrmEnableNonCompositing);
81 #endif 84 #endif
82 85
83 // WebRTC hardware decoding is not supported, internal bug 15075307 86 // WebRTC hardware decoding is not supported, internal bug 15075307
84 cl->AppendSwitch(switches::kDisableWebRtcHWDecoding); 87 cl->AppendSwitch(switches::kDisableWebRtcHWDecoding);
85 88
86 // This is needed for sharing textures across the different GL threads. 89 // This is needed for sharing textures across the different GL threads.
87 cl->AppendSwitch(switches::kEnableThreadedTextureMailboxes); 90 cl->AppendSwitch(switches::kEnableThreadedTextureMailboxes);
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 194
192 #if defined(VIDEO_HOLE) 195 #if defined(VIDEO_HOLE)
193 content::ExternalVideoSurfaceContainer* 196 content::ExternalVideoSurfaceContainer*
194 AwMainDelegate::CreateExternalVideoSurfaceContainer( 197 AwMainDelegate::CreateExternalVideoSurfaceContainer(
195 content::WebContents* web_contents) { 198 content::WebContents* web_contents) {
196 return new ExternalVideoSurfaceContainerImpl(web_contents); 199 return new ExternalVideoSurfaceContainerImpl(web_contents);
197 } 200 }
198 #endif 201 #endif
199 202
200 } // namespace android_webview 203 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/javatests/src/org/chromium/android_webview/test/AwContentsTest.java ('k') | base/android/build_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698