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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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( | 191 mRequestFactory.startNetLogToFile( |
192 Environment.getExternalStorageDirectory().getPath() | 192 Environment.getExternalStorageDirectory().getPath() |
193 + "/cronet_sample_netlog.json"); | 193 + "/cronet_sample_netlog.json", |
| 194 false); |
194 } | 195 } |
195 | 196 |
196 public void stopNetLog() { | 197 public void stopNetLog() { |
197 mRequestFactory.stopNetLog(); | 198 mRequestFactory.stopNetLog(); |
198 } | 199 } |
199 } | 200 } |
OLD | NEW |