Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(48)

Side by Side Diff: components/cronet/android/java/src/org/chromium/net/HttpUrlConnectionUrlRequestFactory.java

Issue 1093793002: Allow setting Cronet NetLog level to LOG_ALL (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix a doc comment that didn't get properly updated Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698