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

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

Issue 2528433004: [RemotePlayback] Don't expose Remote Playback API for WebView. (Closed)
Patch Set: Created 4 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
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 <memory> 7 #include <memory>
8 8
9 #include "android_webview/browser/aw_content_browser_client.h" 9 #include "android_webview/browser/aw_content_browser_client.h"
10 #include "android_webview/browser/browser_view_renderer.h" 10 #include "android_webview/browser/browser_view_renderer.h"
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 100
101 // WebView does not (yet) save Chromium data during shutdown, so add setting 101 // WebView does not (yet) save Chromium data during shutdown, so add setting
102 // for Chrome to aggressively persist DOM Storage to minimize data loss. 102 // for Chrome to aggressively persist DOM Storage to minimize data loss.
103 // http://crbug.com/479767 103 // http://crbug.com/479767
104 cl->AppendSwitch(switches::kEnableAggressiveDOMStorageFlushing); 104 cl->AppendSwitch(switches::kEnableAggressiveDOMStorageFlushing);
105 105
106 // Webview does not currently support the Presentation API, see 106 // Webview does not currently support the Presentation API, see
107 // https://crbug.com/521319 107 // https://crbug.com/521319
108 cl->AppendSwitch(switches::kDisablePresentationAPI); 108 cl->AppendSwitch(switches::kDisablePresentationAPI);
109 109
110 // WebView doesn't support Remote Playback API for the same reason as the
111 // Presentation API, see https://crbug.com/521319.
112 cl->AppendSwitch(switches::kDisableRemotePlaybackAPI);
113
110 #if defined(V8_USE_EXTERNAL_STARTUP_DATA) 114 #if defined(V8_USE_EXTERNAL_STARTUP_DATA)
111 if (cl->GetSwitchValueASCII(switches::kProcessType).empty()) { 115 if (cl->GetSwitchValueASCII(switches::kProcessType).empty()) {
112 // Browser process (no type specified). 116 // Browser process (no type specified).
113 117
114 content::RegisterMediaUrlInterceptor(new AwMediaUrlInterceptor()); 118 content::RegisterMediaUrlInterceptor(new AwMediaUrlInterceptor());
115 BrowserViewRenderer::CalculateTileMemoryPolicy(); 119 BrowserViewRenderer::CalculateTileMemoryPolicy();
116 // WebView apps can override WebView#computeScroll to achieve custom 120 // WebView apps can override WebView#computeScroll to achieve custom
117 // scroll/fling. As a result, fling animations may not be ticked, 121 // scroll/fling. As a result, fling animations may not be ticked,
118 // potentially 122 // potentially
119 // confusing the tap suppression controller. Simply disable it for WebView 123 // confusing the tap suppression controller. Simply disable it for WebView
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 263
260 AwWebPreferencesPopulater* AwMainDelegate::CreateWebPreferencesPopulater() { 264 AwWebPreferencesPopulater* AwMainDelegate::CreateWebPreferencesPopulater() {
261 return new AwWebPreferencesPopulaterImpl(); 265 return new AwWebPreferencesPopulaterImpl();
262 } 266 }
263 267
264 AwLocaleManager* AwMainDelegate::CreateAwLocaleManager() { 268 AwLocaleManager* AwMainDelegate::CreateAwLocaleManager() {
265 return new AwLocaleManagerImpl(); 269 return new AwLocaleManagerImpl();
266 } 270 }
267 271
268 } // namespace android_webview 272 } // namespace android_webview
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698