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

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

Issue 2353063005: Refactor ContentViewClient (1/6) (Closed)
Patch Set: fix tests Created 4 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 "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 << "Not supported."; 201 << "Not supported.";
202 return false; 202 return false;
203 } 203 }
204 204
205 #if defined(OS_ANDROID) 205 #if defined(OS_ANDROID)
206 void WebContentsDelegate::RequestMediaDecodePermission( 206 void WebContentsDelegate::RequestMediaDecodePermission(
207 WebContents* web_contents, 207 WebContents* web_contents,
208 const base::Callback<void(bool)>& callback) { 208 const base::Callback<void(bool)>& callback) {
209 callback.Run(false); 209 callback.Run(false);
210 } 210 }
211
212 base::android::ScopedJavaLocalRef<jobject>
213 WebContentsDelegate::GetContentVideoViewEmbedder() {
214 NOTREACHED() << "Implementation must be provided through subclass.";
boliu 2016/09/26 21:25:25 generally content allow embedders to selectivey ov
Jinsuk Kim 2016/09/27 10:08:59 Should have been removed. Done.
215 return base::android::ScopedJavaLocalRef<jobject>();
216 }
217
218 bool WebContentsDelegate::ShouldBlockMediaRequest(const GURL& url) {
219 return false;
220 }
211 #endif 221 #endif
212 222
213 bool WebContentsDelegate::RequestPpapiBrokerPermission( 223 bool WebContentsDelegate::RequestPpapiBrokerPermission(
214 WebContents* web_contents, 224 WebContents* web_contents,
215 const GURL& url, 225 const GURL& url,
216 const base::FilePath& plugin_path, 226 const base::FilePath& plugin_path,
217 const base::Callback<void(bool)>& callback) { 227 const base::Callback<void(bool)>& callback) {
218 return false; 228 return false;
219 } 229 }
220 230
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 void WebContentsDelegate::ShowCertificateViewerInDevTools( 268 void WebContentsDelegate::ShowCertificateViewerInDevTools(
259 WebContents* web_contents, 269 WebContents* web_contents,
260 scoped_refptr<net::X509Certificate> certificate) { 270 scoped_refptr<net::X509Certificate> certificate) {
261 } 271 }
262 272
263 void WebContentsDelegate::RequestAppBannerFromDevTools( 273 void WebContentsDelegate::RequestAppBannerFromDevTools(
264 content::WebContents* web_contents) { 274 content::WebContents* web_contents) {
265 } 275 }
266 276
267 } // namespace content 277 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698