OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 package org.chromium.components.offline_items_collection; |
| 6 |
| 7 import android.support.annotation.Nullable; |
| 8 |
| 9 /** |
| 10 * This interface is a Java counterpart to the C++ base::Callback meant to be us
ed in response |
| 11 * to {@link OfflineItemVisuals} requests. |
| 12 */ |
| 13 public interface VisualsCallback { |
| 14 /** |
| 15 * @param id The {@link ContentId} that {@code visuals} is associated w
ith. |
| 16 * @param visuals The {@link OfflineItemVisuals}, if any, associated with {@
code id}. |
| 17 */ |
| 18 void onVisualsAvailable(ContentId id, @Nullable OfflineItemVisuals visuals); |
| 19 } |
OLD | NEW |