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

Side by Side Diff: content/public/browser/web_contents_delegate.cc

Issue 1372203002: Throttle media decoding after excessive Android media server crashes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: new infobar text per UI review Created 5 years, 2 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 "content/public/browser/web_contents_delegate.h" 5 #include "content/public/browser/web_contents_delegate.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/memory/singleton.h" 9 #include "base/memory/singleton.h"
10 #include "content/public/browser/render_view_host.h" 10 #include "content/public/browser/render_view_host.h"
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 188
189 bool WebContentsDelegate::CheckMediaAccessPermission( 189 bool WebContentsDelegate::CheckMediaAccessPermission(
190 WebContents* web_contents, 190 WebContents* web_contents,
191 const GURL& security_origin, 191 const GURL& security_origin,
192 MediaStreamType type) { 192 MediaStreamType type) {
193 LOG(ERROR) << "WebContentsDelegate::CheckMediaAccessPermission: " 193 LOG(ERROR) << "WebContentsDelegate::CheckMediaAccessPermission: "
194 << "Not supported."; 194 << "Not supported.";
195 return false; 195 return false;
196 } 196 }
197 197
198 #if defined(OS_ANDROID)
199 void WebContentsDelegate::RequestMediaDecodePermission(
200 WebContents* web_contents,
201 const base::Callback<void(bool)>& callback) {
202 callback.Run(false);
203 }
204 #endif
205
198 bool WebContentsDelegate::RequestPpapiBrokerPermission( 206 bool WebContentsDelegate::RequestPpapiBrokerPermission(
199 WebContents* web_contents, 207 WebContents* web_contents,
200 const GURL& url, 208 const GURL& url,
201 const base::FilePath& plugin_path, 209 const base::FilePath& plugin_path,
202 const base::Callback<void(bool)>& callback) { 210 const base::Callback<void(bool)>& callback) {
203 return false; 211 return false;
204 } 212 }
205 213
206 WebContentsDelegate::~WebContentsDelegate() { 214 WebContentsDelegate::~WebContentsDelegate() {
207 while (!attached_contents_.empty()) { 215 while (!attached_contents_.empty()) {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 SecurityStyleExplanations* security_style_explanations) { 247 SecurityStyleExplanations* security_style_explanations) {
240 return content::SECURITY_STYLE_UNKNOWN; 248 return content::SECURITY_STYLE_UNKNOWN;
241 } 249 }
242 250
243 void WebContentsDelegate::ShowCertificateViewerInDevTools( 251 void WebContentsDelegate::ShowCertificateViewerInDevTools(
244 WebContents* web_contents, 252 WebContents* web_contents,
245 int cert_id) { 253 int cert_id) {
246 } 254 }
247 255
248 } // namespace content 256 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698