OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
3 * Copyright (C) 2011 Google Inc. All rights reserved. | 3 * Copyright (C) 2011 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 * | 8 * |
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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 void setDefersLoading(bool); | 124 void setDefersLoading(bool); |
125 | 125 |
126 void startLoadingMainResource(); | 126 void startLoadingMainResource(); |
127 void cancelMainResourceLoad(const ResourceError&); | 127 void cancelMainResourceLoad(const ResourceError&); |
128 | 128 |
129 void attachThreadedDataReceiver(PassOwnPtr<blink::WebThreadedDataReceive
r>); | 129 void attachThreadedDataReceiver(PassOwnPtr<blink::WebThreadedDataReceive
r>); |
130 DocumentLoadTiming* timing() { return &m_documentLoadTiming; } | 130 DocumentLoadTiming* timing() { return &m_documentLoadTiming; } |
131 | 131 |
132 ApplicationCacheHost* applicationCacheHost() const { return m_applicatio
nCacheHost.get(); } | 132 ApplicationCacheHost* applicationCacheHost() const { return m_applicatio
nCacheHost.get(); } |
133 | 133 |
134 void checkLoadComplete(); | |
135 | |
136 bool isRedirect() const { return m_redirectChain.size() > 1; } | 134 bool isRedirect() const { return m_redirectChain.size() > 1; } |
137 void clearRedirectChain(); | 135 void clearRedirectChain(); |
138 void appendRedirect(const KURL&); | 136 void appendRedirect(const KURL&); |
139 | 137 |
140 protected: | 138 protected: |
141 DocumentLoader(LocalFrame*, const ResourceRequest&, const SubstituteData
&); | 139 DocumentLoader(LocalFrame*, const ResourceRequest&, const SubstituteData
&); |
142 | 140 |
143 Vector<KURL> m_redirectChain; | 141 Vector<KURL> m_redirectChain; |
144 | 142 |
145 private: | 143 private: |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 DocumentLoadTiming m_documentLoadTiming; | 216 DocumentLoadTiming m_documentLoadTiming; |
219 | 217 |
220 double m_timeOfLastDataReceived; | 218 double m_timeOfLastDataReceived; |
221 | 219 |
222 friend class ApplicationCacheHost; // for substitute resource delivery | 220 friend class ApplicationCacheHost; // for substitute resource delivery |
223 OwnPtr<ApplicationCacheHost> m_applicationCacheHost; | 221 OwnPtr<ApplicationCacheHost> m_applicationCacheHost; |
224 }; | 222 }; |
225 } | 223 } |
226 | 224 |
227 #endif // DocumentLoader_h | 225 #endif // DocumentLoader_h |
OLD | NEW |