OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003, 2006 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2003, 2006 Apple Computer, Inc. All rights reserved. |
3 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. | 3 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 void ResourceRequest::setHTTPMethod(const AtomicString& httpMethod) | 146 void ResourceRequest::setHTTPMethod(const AtomicString& httpMethod) |
147 { | 147 { |
148 m_httpMethod = httpMethod; | 148 m_httpMethod = httpMethod; |
149 } | 149 } |
150 | 150 |
151 const HTTPHeaderMap& ResourceRequest::httpHeaderFields() const | 151 const HTTPHeaderMap& ResourceRequest::httpHeaderFields() const |
152 { | 152 { |
153 return m_httpHeaderFields; | 153 return m_httpHeaderFields; |
154 } | 154 } |
155 | 155 |
156 AtomicString ResourceRequest::httpHeaderField(const AtomicString& name) const | 156 const AtomicString& ResourceRequest::httpHeaderField(const AtomicString& name) c
onst |
157 { | 157 { |
158 return m_httpHeaderFields.get(name); | 158 return m_httpHeaderFields.get(name); |
159 } | 159 } |
160 | 160 |
161 const AtomicString& ResourceRequest::httpHeaderField(const char* name) const | 161 const AtomicString& ResourceRequest::httpHeaderField(const char* name) const |
162 { | 162 { |
163 return m_httpHeaderFields.get(name); | 163 return m_httpHeaderFields.get(name); |
164 } | 164 } |
165 | 165 |
166 void ResourceRequest::setHTTPHeaderField(const AtomicString& name, const AtomicS
tring& value) | 166 void ResourceRequest::setHTTPHeaderField(const AtomicString& name, const AtomicS
tring& value) |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 // This is used by the loader to control the number of issued parallel load requ
ests. | 341 // This is used by the loader to control the number of issued parallel load requ
ests. |
342 unsigned initializeMaximumHTTPConnectionCountPerHost() | 342 unsigned initializeMaximumHTTPConnectionCountPerHost() |
343 { | 343 { |
344 // The chromium network stack already handles limiting the number of | 344 // The chromium network stack already handles limiting the number of |
345 // parallel requests per host, so there's no need to do it here. Therefore, | 345 // parallel requests per host, so there's no need to do it here. Therefore, |
346 // this is set to a high value that should never be hit in practice. | 346 // this is set to a high value that should never be hit in practice. |
347 return 10000; | 347 return 10000; |
348 } | 348 } |
349 | 349 |
350 } | 350 } |
OLD | NEW |