OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 package org.chromium.net; | 5 package org.chromium.net; |
6 | 6 |
7 import android.content.Context; | 7 import android.content.Context; |
8 import android.os.Build; | 8 import android.os.Build; |
9 | 9 |
10 import org.chromium.base.annotations.UsedByReflection; | 10 import org.chromium.base.annotations.UsedByReflection; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 | 51 |
52 @Override | 52 @Override |
53 public ChromiumUrlRequest createRequest(String url, int requestPriority, | 53 public ChromiumUrlRequest createRequest(String url, int requestPriority, |
54 Map<String, String> headers, WritableByteChannel channel, | 54 Map<String, String> headers, WritableByteChannel channel, |
55 HttpUrlRequestListener listener) { | 55 HttpUrlRequestListener listener) { |
56 return new ChromiumUrlRequest(mRequestContext, url, requestPriority, | 56 return new ChromiumUrlRequest(mRequestContext, url, requestPriority, |
57 headers, channel, listener); | 57 headers, channel, listener); |
58 } | 58 } |
59 | 59 |
60 @Override | 60 @Override |
61 public void startNetLogToFile(String fileName) { | 61 public void startNetLogToFile(String fileName, boolean logAll) { |
62 mRequestContext.startNetLogToFile(fileName); | 62 mRequestContext.startNetLogToFile(fileName, logAll); |
63 } | 63 } |
64 | 64 |
65 @Override | 65 @Override |
66 public void stopNetLog() { | 66 public void stopNetLog() { |
67 mRequestContext.stopNetLog(); | 67 mRequestContext.stopNetLog(); |
68 } | 68 } |
69 | 69 |
70 public ChromiumUrlRequestContext getRequestContext() { | 70 public ChromiumUrlRequestContext getRequestContext() { |
71 return mRequestContext; | 71 return mRequestContext; |
72 } | 72 } |
73 } | 73 } |
OLD | NEW |