OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 package org.chromium.content_public.browser; | 5 package org.chromium.content_public.browser; |
6 | 6 |
7 import android.graphics.Bitmap; | 7 import android.graphics.Bitmap; |
8 import android.graphics.Rect; | 8 import android.graphics.Rect; |
9 import android.os.Handler; | 9 import android.os.Handler; |
10 import android.os.Parcelable; | 10 import android.os.Parcelable; |
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 public int downloadImage(String url, boolean isFavicon, int maxBitmapSize, | 365 public int downloadImage(String url, boolean isFavicon, int maxBitmapSize, |
366 boolean bypassCache, ImageDownloadCallback callback); | 366 boolean bypassCache, ImageDownloadCallback callback); |
367 | 367 |
368 /** | 368 /** |
369 * Issues a fake notification about the renderer being killed. | 369 * Issues a fake notification about the renderer being killed. |
370 * | 370 * |
371 * @param wasOomProtected True if the renderer was protected from the OS out
-of-memory killer | 371 * @param wasOomProtected True if the renderer was protected from the OS out
-of-memory killer |
372 * (e.g. renderer for the currently selected tab) | 372 * (e.g. renderer for the currently selected tab) |
373 */ | 373 */ |
374 public void simulateRendererKilledForTesting(boolean wasOomProtected); | 374 public void simulateRendererKilledForTesting(boolean wasOomProtected); |
| 375 |
| 376 /** |
| 377 * Notifies the WebContents about the new persistent video status. It should
be called whenever |
| 378 * the value changes. |
| 379 * |
| 380 * @param value Whether there is a persistent video associated with this Web
Contents. |
| 381 */ |
| 382 public void setHasPersistentVideo(boolean value); |
375 } | 383 } |
OLD | NEW |