| 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.app.Activity; | 7 import android.app.Activity; |
| 8 import android.content.Intent; | 8 import android.content.Intent; |
| 9 import android.os.Bundle; | 9 import android.os.Bundle; |
| 10 import android.os.Environment; | 10 import android.os.Environment; |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 public boolean isLoading() { | 182 public boolean isLoading() { |
| 183 return mLoading; | 183 return mLoading; |
| 184 } | 184 } |
| 185 | 185 |
| 186 public int getHttpStatusCode() { | 186 public int getHttpStatusCode() { |
| 187 return mHttpStatusCode; | 187 return mHttpStatusCode; |
| 188 } | 188 } |
| 189 | 189 |
| 190 public void startNetLog() { | 190 public void startNetLog() { |
| 191 mRequestFactory.startNetLogToFile(Environment.getExternalStorageDirector
y().getPath() | 191 mRequestFactory.startNetLogToFile(Environment.getExternalStorageDirector
y().getPath() |
| 192 + "/cronet_sample_netlog_old_api.json"); | 192 + "/cronet_sample_netlog_old_api.json", |
| 193 false); |
| 193 mUrlRequestContext.startNetLogToFile(Environment.getExternalStorageDirec
tory().getPath() | 194 mUrlRequestContext.startNetLogToFile(Environment.getExternalStorageDirec
tory().getPath() |
| 194 + "/cronet_sample_netlog_new_api.json"); | 195 + "/cronet_sample_netlog_new_api.json", |
| 196 false); |
| 195 } | 197 } |
| 196 | 198 |
| 197 public void stopNetLog() { | 199 public void stopNetLog() { |
| 198 mRequestFactory.stopNetLog(); | 200 mRequestFactory.stopNetLog(); |
| 199 mUrlRequestContext.stopNetLog(); | 201 mUrlRequestContext.stopNetLog(); |
| 200 } | 202 } |
| 201 } | 203 } |
| OLD | NEW |