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

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

Issue 610673002: Expose startNetLog / stopNetLog from HttpUrlRequestFactory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments. Created 6 years, 2 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
« no previous file with comments | « no previous file | components/cronet/android/java/src/org/chromium/net/HttpUrlConnectionUrlRequestFactory.java » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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
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) {
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 }
OLDNEW
« no previous file with comments | « no previous file | components/cronet/android/java/src/org/chromium/net/HttpUrlConnectionUrlRequestFactory.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698