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

Side by Side Diff: runtime/bin/http_impl.dart

Issue 10883071: - Change "static final" to "static const" in the runtime/ directory. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « runtime/bin/http.dart ('k') | runtime/bin/http_parser.dart » ('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 (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 class _HttpHeaders implements HttpHeaders { 5 class _HttpHeaders implements HttpHeaders {
6 _HttpHeaders() : _headers = new Map<String, List<String>>(); 6 _HttpHeaders() : _headers = new Map<String, List<String>>();
7 7
8 List<String> operator[](String name) { 8 List<String> operator[](String name) {
9 name = name.toLowerCase(); 9 name = name.toLowerCase();
10 return _headers[name]; 10 return _headers[name];
(...skipping 1919 matching lines...) Expand 10 before | Expand all | Expand 10 after
1930 int hashCode() => _socket.hashCode(); 1930 int hashCode() => _socket.hashCode();
1931 1931
1932 String _host; 1932 String _host;
1933 int _port; 1933 int _port;
1934 Socket _socket; 1934 Socket _socket;
1935 Date _returnTime; 1935 Date _returnTime;
1936 } 1936 }
1937 1937
1938 1938
1939 class _HttpClient implements HttpClient { 1939 class _HttpClient implements HttpClient {
1940 static final int DEFAULT_EVICTION_TIMEOUT = 60000; 1940 static const int DEFAULT_EVICTION_TIMEOUT = 60000;
1941 1941
1942 _HttpClient() : _openSockets = new Map(), 1942 _HttpClient() : _openSockets = new Map(),
1943 _activeSockets = new Set(), 1943 _activeSockets = new Set(),
1944 _shutdown = false; 1944 _shutdown = false;
1945 1945
1946 HttpClientConnection open( 1946 HttpClientConnection open(
1947 String method, String host, int port, String path) { 1947 String method, String host, int port, String path) {
1948 return _open(method, host, port, path); 1948 return _open(method, host, port, path);
1949 } 1949 }
1950 1950
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
2166 2166
2167 2167
2168 class _RedirectInfo implements RedirectInfo { 2168 class _RedirectInfo implements RedirectInfo {
2169 const _RedirectInfo(int this.statusCode, 2169 const _RedirectInfo(int this.statusCode,
2170 String this.method, 2170 String this.method,
2171 Uri this.location); 2171 Uri this.location);
2172 final int statusCode; 2172 final int statusCode;
2173 final String method; 2173 final String method;
2174 final Uri location; 2174 final Uri location;
2175 } 2175 }
OLDNEW
« no previous file with comments | « runtime/bin/http.dart ('k') | runtime/bin/http_parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698