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) 2006 Samuel Weinig <sam.weinig@gmail.com> | 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> |
4 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. | 4 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 double timeoutInterval() const; // May return 0 when using platform default. | 115 double timeoutInterval() const; // May return 0 when using platform default. |
116 void setTimeoutInterval(double timeoutInterval); | 116 void setTimeoutInterval(double timeoutInterval); |
117 | 117 |
118 const KURL& firstPartyForCookies() const; | 118 const KURL& firstPartyForCookies() const; |
119 void setFirstPartyForCookies(const KURL& firstPartyForCookies); | 119 void setFirstPartyForCookies(const KURL& firstPartyForCookies); |
120 | 120 |
121 const AtomicString& httpMethod() const; | 121 const AtomicString& httpMethod() const; |
122 void setHTTPMethod(const AtomicString&); | 122 void setHTTPMethod(const AtomicString&); |
123 | 123 |
124 const HTTPHeaderMap& httpHeaderFields() const; | 124 const HTTPHeaderMap& httpHeaderFields() const; |
125 AtomicString httpHeaderField(const AtomicString& name) const; | 125 const AtomicString& httpHeaderField(const AtomicString& name) const; |
126 const AtomicString& httpHeaderField(const char* name) const; | 126 const AtomicString& httpHeaderField(const char* name) const; |
127 void setHTTPHeaderField(const AtomicString& name, const AtomicString& value)
; | 127 void setHTTPHeaderField(const AtomicString& name, const AtomicString& value)
; |
128 void setHTTPHeaderField(const char* name, const AtomicString& value); | 128 void setHTTPHeaderField(const char* name, const AtomicString& value); |
129 void addHTTPHeaderField(const AtomicString& name, const AtomicString& value)
; | 129 void addHTTPHeaderField(const AtomicString& name, const AtomicString& value)
; |
130 void addHTTPHeaderFields(const HTTPHeaderMap& headerFields); | 130 void addHTTPHeaderFields(const HTTPHeaderMap& headerFields); |
131 void clearHTTPHeaderField(const AtomicString& name); | 131 void clearHTTPHeaderField(const AtomicString& name); |
132 | 132 |
133 void clearHTTPAuthorization(); | 133 void clearHTTPAuthorization(); |
134 | 134 |
135 AtomicString httpContentType() const { return httpHeaderField("Content-Type"
); } | 135 const AtomicString& httpContentType() const { return httpHeaderField("Conten
t-Type"); } |
136 void setHTTPContentType(const AtomicString& httpContentType) { setHTTPHeader
Field("Content-Type", httpContentType); } | 136 void setHTTPContentType(const AtomicString& httpContentType) { setHTTPHeader
Field("Content-Type", httpContentType); } |
137 void clearHTTPContentType(); | 137 void clearHTTPContentType(); |
138 | 138 |
139 AtomicString httpReferrer() const { return httpHeaderField("Referer"); } | 139 const AtomicString& httpReferrer() const { return httpHeaderField("Referer")
; } |
140 void setHTTPReferrer(const AtomicString& httpReferrer) { setHTTPHeaderField(
"Referer", httpReferrer); } | 140 void setHTTPReferrer(const AtomicString& httpReferrer) { setHTTPHeaderField(
"Referer", httpReferrer); } |
141 void clearHTTPReferrer(); | 141 void clearHTTPReferrer(); |
142 | 142 |
143 AtomicString httpOrigin() const { return httpHeaderField("Origin"); } | 143 const AtomicString& httpOrigin() const { return httpHeaderField("Origin"); } |
144 void setHTTPOrigin(const AtomicString& httpOrigin) { setHTTPHeaderField("Ori
gin", httpOrigin); } | 144 void setHTTPOrigin(const AtomicString& httpOrigin) { setHTTPHeaderField("Ori
gin", httpOrigin); } |
145 void clearHTTPOrigin(); | 145 void clearHTTPOrigin(); |
146 | 146 |
147 AtomicString httpUserAgent() const { return httpHeaderField("User-Agent"); } | 147 const AtomicString& httpUserAgent() const { return httpHeaderField("User-Age
nt"); } |
148 void setHTTPUserAgent(const AtomicString& httpUserAgent) { setHTTPHeaderFiel
d("User-Agent", httpUserAgent); } | 148 void setHTTPUserAgent(const AtomicString& httpUserAgent) { setHTTPHeaderFiel
d("User-Agent", httpUserAgent); } |
149 void clearHTTPUserAgent(); | 149 void clearHTTPUserAgent(); |
150 | 150 |
151 AtomicString httpAccept() const { return httpHeaderField("Accept"); } | 151 const AtomicString& httpAccept() const { return httpHeaderField("Accept"); } |
152 void setHTTPAccept(const AtomicString& httpAccept) { setHTTPHeaderField("Acc
ept", httpAccept); } | 152 void setHTTPAccept(const AtomicString& httpAccept) { setHTTPHeaderField("Acc
ept", httpAccept); } |
153 void clearHTTPAccept(); | 153 void clearHTTPAccept(); |
154 | 154 |
155 FormData* httpBody() const; | 155 FormData* httpBody() const; |
156 void setHTTPBody(PassRefPtr<FormData> httpBody); | 156 void setHTTPBody(PassRefPtr<FormData> httpBody); |
157 | 157 |
158 bool allowCookies() const; | 158 bool allowCookies() const; |
159 void setAllowCookies(bool allowCookies); | 159 void setAllowCookies(bool allowCookies); |
160 | 160 |
161 ResourceLoadPriority priority() const; | 161 ResourceLoadPriority priority() const; |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 int m_requestorProcessID; | 265 int m_requestorProcessID; |
266 int m_appCacheHostID; | 266 int m_appCacheHostID; |
267 ResourceRequest::TargetType m_targetType; | 267 ResourceRequest::TargetType m_targetType; |
268 }; | 268 }; |
269 | 269 |
270 unsigned initializeMaximumHTTPConnectionCountPerHost(); | 270 unsigned initializeMaximumHTTPConnectionCountPerHost(); |
271 | 271 |
272 } // namespace WebCore | 272 } // namespace WebCore |
273 | 273 |
274 #endif // ResourceRequest_h | 274 #endif // ResourceRequest_h |
OLD | NEW |