Chromium Code Reviews| Index: components/cronet/android/java/src/org/chromium/net/HttpUrlRequestFactory.java |
| diff --git a/components/cronet/android/java/src/org/chromium/net/HttpUrlRequestFactory.java b/components/cronet/android/java/src/org/chromium/net/HttpUrlRequestFactory.java |
| index a500fd7f3510781bda33ec093190f29d01ed104a..bebd87288b3e3d912e66106052dd9a69a1117546 100644 |
| --- a/components/cronet/android/java/src/org/chromium/net/HttpUrlRequestFactory.java |
| +++ b/components/cronet/android/java/src/org/chromium/net/HttpUrlRequestFactory.java |
| @@ -59,6 +59,20 @@ public abstract class HttpUrlRequestFactory { |
| int requestPriority, Map<String, String> headers, |
| WritableByteChannel channel, HttpUrlRequestListener listener); |
| + /** |
| + * Starts NetLog logging to a file named |fileName| in the |
| + * application temporary directory. |fileName| must not be empty. Log level |
| + * is LOG_ALL_BUT_BYTES. If the file exists it is truncated before starting. |
|
mmenke
2014/09/29 18:53:19
If we're going to document the log level, we shoul
mef
2014/09/29 21:21:24
I'm fine with not documenting the log level, altho
mmenke
2014/09/29 21:24:30
Great, let's do that for now, then.
I wonder if i
mef
2014/09/29 22:25:09
Done.
|
| + * If actively logging the call is ignored. |
| + */ |
| + public abstract void startNetLogToFile(String fileName); |
| + |
| + /** |
| + * Stops NetLog logging and flushes file to disk. If a logging session is |
| + * not in progress this call is ignored. |
| + */ |
| + public abstract void stopNetLog(); |
| + |
| private static HttpUrlRequestFactory createChromiumFactory( |
| Context context, HttpUrlRequestFactoryConfig config) { |
| HttpUrlRequestFactory factory = null; |