Chromium Code Reviews| 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.UsedByReflection; | 10 import org.chromium.base.UsedByReflection; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 48 } | 48 } |
| 49 | 49 |
| 50 @Override | 50 @Override |
| 51 public ChromiumUrlRequest createRequest(String url, int requestPriority, | 51 public ChromiumUrlRequest createRequest(String url, int requestPriority, |
| 52 Map<String, String> headers, WritableByteChannel channel, | 52 Map<String, String> headers, WritableByteChannel channel, |
| 53 HttpUrlRequestListener listener) { | 53 HttpUrlRequestListener listener) { |
| 54 return new ChromiumUrlRequest(mRequestContext, url, requestPriority, | 54 return new ChromiumUrlRequest(mRequestContext, url, requestPriority, |
| 55 headers, channel, listener); | 55 headers, channel, listener); |
| 56 } | 56 } |
| 57 | 57 |
| 58 @Override | |
| 59 public void startNetLogToFile(String fileName) { | |
|
Charles
2014/09/26 18:23:13
Do we need to worry about thread safety?
mef
2014/09/26 18:33:49
You should not have to as long as context is not d
| |
| 60 mRequestContext.startNetLogToFile(fileName); | |
| 61 } | |
| 62 | |
| 63 @Override | |
| 64 public void stopNetLog() { | |
| 65 mRequestContext.stopNetLog(); | |
| 66 } | |
| 67 | |
| 58 public ChromiumUrlRequestContext getRequestContext() { | 68 public ChromiumUrlRequestContext getRequestContext() { |
| 59 return mRequestContext; | 69 return mRequestContext; |
| 60 } | 70 } |
| 61 } | 71 } |
| OLD | NEW |