OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 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.chrome.browser.gsa; |
| 6 |
| 7 import android.support.annotation.Nullable; |
| 8 |
| 9 /** |
| 10 * The interface that allows the current browsing context to be reported to GSA. |
| 11 */ |
| 12 public interface GSAContextReportDelegate { |
| 13 |
| 14 /** |
| 15 * Report the current url and title (i.e. the context) to GSA. This method m
arks the start of a |
| 16 * context, and it should be used in pair with {@link #reportContextUsageEnd
ed()}. |
| 17 * @param url The url for the current context. |
| 18 * @param title The page title for the current context. |
| 19 * @param displaySelection The {@code SsbContextDisplaySelection} or {@code
null}. |
| 20 */ |
| 21 void reportContext(String url, String title, |
| 22 @Nullable GSAContextDisplaySelection displaySelection); |
| 23 |
| 24 /** |
| 25 * Report the end of usage for the previously reported context. |
| 26 */ |
| 27 void reportContextUsageEnded(); |
| 28 } |
OLD | NEW |