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..2e53504ad29d99742a8f05bcee0acbc299098df0 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,22 @@ 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. |
| + * If actively logging the call is ignored. |
| + */ |
| + public void startNetLogToFile(String fileName) { |
|
xunjieli
2014/09/26 18:22:45
Empty functions here look a little weird. Can we m
mef
2014/09/26 18:33:49
Done.
|
| + } |
| + |
| + /** |
| + * Stops NetLog logging and flushes file to disk. If a logging session is |
| + * not in progress this call is ignored. |
| + */ |
| + public void stopNetLog() { |
| + } |
| + |
| private static HttpUrlRequestFactory createChromiumFactory( |
| Context context, HttpUrlRequestFactoryConfig config) { |
| HttpUrlRequestFactory factory = null; |