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 com.android.webview.chromium; | |
|
Torne
2017/03/20 13:35:49
Let's introduce a new package for this since I sus
Nate Fischer
2017/03/20 19:57:48
done
| |
| 6 | |
| 7 import org.chromium.android_webview.AwContentsStatics; | |
| 8 import org.chromium.base.annotations.UsedByReflection; | |
| 9 | |
| 10 /** | |
| 11 * Entry points for reflection into Android WebView internals. | |
| 12 * | |
| 13 * Methods in this class are not guaranteed to remain, and may be removed when w e no longer wish to | |
|
Torne
2017/03/20 13:35:49
Might want to be a bit more explicit in the commen
Nate Fischer
2017/03/20 19:57:48
done
| |
| 14 * expose the functionality. | |
| 15 */ | |
| 16 @UsedByReflection("") | |
|
Torne
2017/03/20 13:35:49
Since we want to keep everything here, it might be
Nate Fischer
2017/03/20 19:57:48
While I see the advantages to that, I'd still like
| |
| 17 public class ReflectionEndPoint { | |
|
Torne
2017/03/20 13:35:49
If we introduce a dedicated package for this then
Nate Fischer
2017/03/20 19:57:48
WebViewConfig SGTM. I'm open to other suggestions
| |
| 18 @UsedByReflection("") | |
| 19 public static void disableSafeBrowsing() { | |
| 20 AwContentsStatics.setSafeBrowsingEnabled(false); | |
| 21 } | |
| 22 } | |
| OLD | NEW |