OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2005, 2006, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2005, 2006, 2011 Apple 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 private: | 86 private: |
87 ResourceLoader(ResourceLoaderHost*, Resource*, const ResourceLoaderOptions&)
; | 87 ResourceLoader(ResourceLoaderHost*, Resource*, const ResourceLoaderOptions&)
; |
88 | 88 |
89 void init(const ResourceRequest&); | 89 void init(const ResourceRequest&); |
90 void requestSynchronously(); | 90 void requestSynchronously(); |
91 | 91 |
92 void didFinishLoadingOnePart(double finishTime, int64_t encodedDataLength); | 92 void didFinishLoadingOnePart(double finishTime, int64_t encodedDataLength); |
93 | 93 |
94 bool responseNeedsAccessControlCheck() const; | 94 bool responseNeedsAccessControlCheck() const; |
95 | 95 |
| 96 ResourceRequest& applyOptions(ResourceRequest&) const; |
| 97 |
96 OwnPtr<blink::WebURLLoader> m_loader; | 98 OwnPtr<blink::WebURLLoader> m_loader; |
97 RefPtr<ResourceLoaderHost> m_host; | 99 RefPtr<ResourceLoaderHost> m_host; |
98 | 100 |
99 ResourceRequest m_request; | 101 ResourceRequest m_request; |
100 ResourceRequest m_originalRequest; // Before redirects. | 102 ResourceRequest m_originalRequest; // Before redirects. |
101 | 103 |
102 bool m_notifiedLoadComplete; | 104 bool m_notifiedLoadComplete; |
103 | 105 |
104 bool m_defersLoading; | 106 bool m_defersLoading; |
105 ResourceRequest m_deferredRequest; | 107 ResourceRequest m_deferredRequest; |
(...skipping 30 matching lines...) Expand all Loading... |
136 // Used for sanity checking to make sure we don't experience illegal state | 138 // Used for sanity checking to make sure we don't experience illegal state |
137 // transitions. | 139 // transitions. |
138 ConnectionState m_connectionState; | 140 ConnectionState m_connectionState; |
139 | 141 |
140 OwnPtr<RequestCountTracker> m_requestCountTracker; | 142 OwnPtr<RequestCountTracker> m_requestCountTracker; |
141 }; | 143 }; |
142 | 144 |
143 } | 145 } |
144 | 146 |
145 #endif | 147 #endif |
OLD | NEW |