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 | 8 |
9 import java.io.IOException; | 9 import java.io.IOException; |
10 import java.io.PrintWriter; | 10 import java.io.PrintWriter; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 | 48 |
49 @Override | 49 @Override |
50 public HttpUrlRequest createRequest(String url, int requestPriority, | 50 public HttpUrlRequest createRequest(String url, int requestPriority, |
51 Map<String, String> headers, WritableByteChannel channel, | 51 Map<String, String> headers, WritableByteChannel channel, |
52 HttpUrlRequestListener listener) { | 52 HttpUrlRequestListener listener) { |
53 return new HttpUrlConnectionUrlRequest(mContext, mDefaultUserAgent, url, | 53 return new HttpUrlConnectionUrlRequest(mContext, mDefaultUserAgent, url, |
54 requestPriority, headers, channel, listener); | 54 requestPriority, headers, channel, listener); |
55 } | 55 } |
56 | 56 |
57 @Override | 57 @Override |
58 public void startNetLogToFile(String fileName) { | 58 public void startNetLogToFile(String fileName, boolean logAll) { |
59 try { | 59 try { |
60 PrintWriter out = new PrintWriter(fileName); | 60 PrintWriter out = new PrintWriter(fileName); |
61 out.println("NetLog is not supported by " + getName()); | 61 out.println("NetLog is not supported by " + getName()); |
62 out.close(); | 62 out.close(); |
63 } catch (IOException e) { | 63 } catch (IOException e) { |
64 // Ignore any exceptions. | 64 // Ignore any exceptions. |
65 } | 65 } |
66 } | 66 } |
67 | 67 |
68 @Override | 68 @Override |
69 public void stopNetLog() { | 69 public void stopNetLog() { |
70 } | 70 } |
71 } | 71 } |
OLD | NEW |