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

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

Issue 2204533002: Move Cronet metrics-related classes into their own files (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix javadoc Created 4 years, 4 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 static android.os.Process.THREAD_PRIORITY_BACKGROUND; 7 import static android.os.Process.THREAD_PRIORITY_BACKGROUND;
8 import static android.os.Process.THREAD_PRIORITY_MORE_FAVORABLE; 8 import static android.os.Process.THREAD_PRIORITY_MORE_FAVORABLE;
9 9
10 import java.io.IOException; 10 import java.io.IOException;
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 @Override 113 @Override
114 public void removeRttListener(NetworkQualityRttListener listener) {} 114 public void removeRttListener(NetworkQualityRttListener listener) {}
115 115
116 @Override 116 @Override
117 public void addThroughputListener(NetworkQualityThroughputListener listener) {} 117 public void addThroughputListener(NetworkQualityThroughputListener listener) {}
118 118
119 @Override 119 @Override
120 public void removeThroughputListener(NetworkQualityThroughputListener listen er) {} 120 public void removeThroughputListener(NetworkQualityThroughputListener listen er) {}
121 121
122 @Override 122 @Override
123 public void addRequestFinishedListener(RequestFinishedListener listener) {} 123 public void addRequestFinishedListener(RequestFinishedInfo.Listener listener ) {}
124 124
125 @Override 125 @Override
126 public void removeRequestFinishedListener(RequestFinishedListener listener) {} 126 public void removeRequestFinishedListener(RequestFinishedInfo.Listener liste ner) {}
127 127
128 @Override 128 @Override
129 public URLConnection openConnection(URL url) throws IOException { 129 public URLConnection openConnection(URL url) throws IOException {
130 return url.openConnection(); 130 return url.openConnection();
131 } 131 }
132 132
133 @Override 133 @Override
134 public URLConnection openConnection(URL url, Proxy proxy) throws IOException { 134 public URLConnection openConnection(URL url, Proxy proxy) throws IOException {
135 return url.openConnection(proxy); 135 return url.openConnection(proxy);
136 } 136 }
137 137
138 @Override 138 @Override
139 public URLStreamHandlerFactory createURLStreamHandlerFactory() { 139 public URLStreamHandlerFactory createURLStreamHandlerFactory() {
140 // Returning null causes this factory to pass though, which ends up usin g the platform's 140 // Returning null causes this factory to pass though, which ends up usin g the platform's
141 // implementation. 141 // implementation.
142 return new URLStreamHandlerFactory() { 142 return new URLStreamHandlerFactory() {
143 @Override 143 @Override
144 public URLStreamHandler createURLStreamHandler(String protocol) { 144 public URLStreamHandler createURLStreamHandler(String protocol) {
145 return null; 145 return null;
146 } 146 }
147 }; 147 };
148 } 148 }
149 } 149 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698