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

Side by Side Diff: content/browser/android/content_view_core_impl.h

Issue 52463004: Block media loading when AwSettings.setBlockNetworkLoads is true. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: disable failed test Created 7 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 #ifndef CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 5 #ifndef CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/android/jni_android.h" 10 #include "base/android/jni_android.h"
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 // necessary. 297 // necessary.
298 void NotifyExternalSurface( 298 void NotifyExternalSurface(
299 int player_id, bool is_request, const gfx::RectF& rect); 299 int player_id, bool is_request, const gfx::RectF& rect);
300 300
301 base::android::ScopedJavaLocalRef<jobject> GetContentVideoViewClient(); 301 base::android::ScopedJavaLocalRef<jobject> GetContentVideoViewClient();
302 302
303 // Returns the context that the ContentViewCore was created with, it would 303 // Returns the context that the ContentViewCore was created with, it would
304 // typically be an Activity context for an on screen view. 304 // typically be an Activity context for an on screen view.
305 base::android::ScopedJavaLocalRef<jobject> GetContext(); 305 base::android::ScopedJavaLocalRef<jobject> GetContext();
306 306
307 // Returns True if the given media should be blocked to load.
308 bool ShouldBlockMediaRequest(const GURL& url);
309
307 // -------------------------------------------------------------------------- 310 // --------------------------------------------------------------------------
308 // Methods called from native code 311 // Methods called from native code
309 // -------------------------------------------------------------------------- 312 // --------------------------------------------------------------------------
310 313
311 gfx::Size GetPhysicalBackingSize() const; 314 gfx::Size GetPhysicalBackingSize() const;
312 gfx::Size GetViewportSizeDip() const; 315 gfx::Size GetViewportSizeDip() const;
313 gfx::Size GetViewportSizeOffsetDip() const; 316 gfx::Size GetViewportSizeOffsetDip() const;
314 float GetOverdrawBottomHeightDip() const; 317 float GetOverdrawBottomHeightDip() const;
315 318
316 void AttachLayer(scoped_refptr<cc::Layer> layer); 319 void AttachLayer(scoped_refptr<cc::Layer> layer);
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 int device_orientation_; 395 int device_orientation_;
393 396
394 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); 397 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl);
395 }; 398 };
396 399
397 bool RegisterContentViewCore(JNIEnv* env); 400 bool RegisterContentViewCore(JNIEnv* env);
398 401
399 } // namespace content 402 } // namespace content
400 403
401 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 404 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698