OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 16 matching lines...) Expand all Loading... |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef WebURLResponse_h | 31 #ifndef WebURLResponse_h |
32 #define WebURLResponse_h | 32 #define WebURLResponse_h |
33 | 33 |
34 #include "WebCommon.h" | 34 #include "WebCommon.h" |
35 #include "WebPrivateOwnPtr.h" | 35 #include "WebPrivateOwnPtr.h" |
36 | 36 |
37 #if INSIDE_BLINK | |
38 namespace blink { class ResourceResponse; } | |
39 #endif | |
40 | |
41 namespace blink { | 37 namespace blink { |
42 | 38 |
| 39 class ResourceResponse; |
43 class WebCString; | 40 class WebCString; |
44 class WebHTTPHeaderVisitor; | 41 class WebHTTPHeaderVisitor; |
45 class WebHTTPLoadInfo; | 42 class WebHTTPLoadInfo; |
46 class WebString; | 43 class WebString; |
47 class WebURL; | 44 class WebURL; |
48 class WebURLLoadTiming; | 45 class WebURLLoadTiming; |
49 class WebURLResponsePrivate; | 46 class WebURLResponsePrivate; |
50 | 47 |
51 class WebURLResponse { | 48 class WebURLResponse { |
52 public: | 49 public: |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 | 129 |
133 BLINK_PLATFORM_EXPORT WebURL appCacheManifestURL() const; | 130 BLINK_PLATFORM_EXPORT WebURL appCacheManifestURL() const; |
134 BLINK_PLATFORM_EXPORT void setAppCacheManifestURL(const WebURL&); | 131 BLINK_PLATFORM_EXPORT void setAppCacheManifestURL(const WebURL&); |
135 | 132 |
136 // A consumer controlled value intended to be used to record opaque | 133 // A consumer controlled value intended to be used to record opaque |
137 // security info related to this request. | 134 // security info related to this request. |
138 BLINK_PLATFORM_EXPORT WebCString securityInfo() const; | 135 BLINK_PLATFORM_EXPORT WebCString securityInfo() const; |
139 BLINK_PLATFORM_EXPORT void setSecurityInfo(const WebCString&); | 136 BLINK_PLATFORM_EXPORT void setSecurityInfo(const WebCString&); |
140 | 137 |
141 #if INSIDE_BLINK | 138 #if INSIDE_BLINK |
142 BLINK_PLATFORM_EXPORT blink::ResourceResponse& toMutableResourceResponse(); | 139 BLINK_PLATFORM_EXPORT ResourceResponse& toMutableResourceResponse(); |
143 BLINK_PLATFORM_EXPORT const blink::ResourceResponse& toResourceResponse() co
nst; | 140 BLINK_PLATFORM_EXPORT const ResourceResponse& toResourceResponse() const; |
144 #endif | 141 #endif |
145 | 142 |
146 // Flag whether this request was served from the disk cache entry. | 143 // Flag whether this request was served from the disk cache entry. |
147 BLINK_PLATFORM_EXPORT bool wasCached() const; | 144 BLINK_PLATFORM_EXPORT bool wasCached() const; |
148 BLINK_PLATFORM_EXPORT void setWasCached(bool); | 145 BLINK_PLATFORM_EXPORT void setWasCached(bool); |
149 | 146 |
150 // Flag whether this request was loaded via the SPDY protocol or not. | 147 // Flag whether this request was loaded via the SPDY protocol or not. |
151 // SPDY is an experimental web protocol, see http://dev.chromium.org/spdy | 148 // SPDY is an experimental web protocol, see http://dev.chromium.org/spdy |
152 BLINK_PLATFORM_EXPORT bool wasFetchedViaSPDY() const; | 149 BLINK_PLATFORM_EXPORT bool wasFetchedViaSPDY() const; |
153 BLINK_PLATFORM_EXPORT void setWasFetchedViaSPDY(bool); | 150 BLINK_PLATFORM_EXPORT void setWasFetchedViaSPDY(bool); |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 protected: | 197 protected: |
201 BLINK_PLATFORM_EXPORT void assign(WebURLResponsePrivate*); | 198 BLINK_PLATFORM_EXPORT void assign(WebURLResponsePrivate*); |
202 | 199 |
203 private: | 200 private: |
204 WebURLResponsePrivate* m_private; | 201 WebURLResponsePrivate* m_private; |
205 }; | 202 }; |
206 | 203 |
207 } // namespace blink | 204 } // namespace blink |
208 | 205 |
209 #endif | 206 #endif |
OLD | NEW |