Chromium Code Reviews| 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.android_webview; | |
| 6 | |
| 7 import android.webkit.ValueCallback; | |
| 8 | |
| 9 /** | |
| 10 * Interface for checking user consent for Minidump uploading. | |
| 11 */ | |
| 12 public interface UserConsentInterface { | |
|
sgurun-gerrit only
2017/01/13 08:14:21
Is this class really necessary?
gsennton
2017/01/13 19:01:55
Its only use is to allow me to mock PlatformServic
gsennton
2017/01/23 17:50:39
Removed this now.
| |
| 13 /** | |
| 14 * Returns whether this interface is available for querying. | |
| 15 */ | |
| 16 boolean userConsentInterfaceAvailable(); | |
| 17 | |
| 18 /** | |
| 19 * Must be called on UI thread, returns whether we have user consent. The re sult is posted to | |
| 20 * the UI thread as {@param callback}. | |
| 21 */ | |
| 22 void userConsents(ValueCallback<Boolean> callback); | |
| 23 } | |
| OLD | NEW |