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

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

Issue 2353063005: Refactor ContentViewClient (1/6) (Closed)
Patch Set: cast to activity 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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 << "Not supported."; 202 << "Not supported.";
203 return false; 203 return false;
204 } 204 }
205 205
206 #if defined(OS_ANDROID) 206 #if defined(OS_ANDROID)
207 void WebContentsDelegate::RequestMediaDecodePermission( 207 void WebContentsDelegate::RequestMediaDecodePermission(
208 WebContents* web_contents, 208 WebContents* web_contents,
209 const base::Callback<void(bool)>& callback) { 209 const base::Callback<void(bool)>& callback) {
210 callback.Run(false); 210 callback.Run(false);
211 } 211 }
212
213 base::android::ScopedJavaLocalRef<jobject>
214 WebContentsDelegate::GetContentVideoViewEmbedder() {
215 return base::android::ScopedJavaLocalRef<jobject>();
216 }
217
218 bool WebContentsDelegate::ShouldBlockMediaRequest(const GURL& url) {
219 return false;
220 }
212 #endif 221 #endif
213 222
214 bool WebContentsDelegate::RequestPpapiBrokerPermission( 223 bool WebContentsDelegate::RequestPpapiBrokerPermission(
215 WebContents* web_contents, 224 WebContents* web_contents,
216 const GURL& url, 225 const GURL& url,
217 const base::FilePath& plugin_path, 226 const base::FilePath& plugin_path,
218 const base::Callback<void(bool)>& callback) { 227 const base::Callback<void(bool)>& callback) {
219 return false; 228 return false;
220 } 229 }
221 230
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 void WebContentsDelegate::ShowCertificateViewerInDevTools( 268 void WebContentsDelegate::ShowCertificateViewerInDevTools(
260 WebContents* web_contents, 269 WebContents* web_contents,
261 scoped_refptr<net::X509Certificate> certificate) { 270 scoped_refptr<net::X509Certificate> certificate) {
262 } 271 }
263 272
264 void WebContentsDelegate::RequestAppBannerFromDevTools( 273 void WebContentsDelegate::RequestAppBannerFromDevTools(
265 content::WebContents* web_contents) { 274 content::WebContents* web_contents) {
266 } 275 }
267 276
268 } // namespace content 277 } // namespace content
OLDNEW
« no previous file with comments | « content/public/browser/web_contents_delegate.h ('k') | content/shell/android/java/src/org/chromium/content_shell/Shell.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698