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 26 matching lines...) Expand all Loading... |
37 #include "core/loader/DocumentWriter.h" | 37 #include "core/loader/DocumentWriter.h" |
38 #include "core/loader/NavigationAction.h" | 38 #include "core/loader/NavigationAction.h" |
39 #include "core/loader/SubstituteData.h" | 39 #include "core/loader/SubstituteData.h" |
40 #include "platform/Timer.h" | 40 #include "platform/Timer.h" |
41 #include "platform/network/ResourceError.h" | 41 #include "platform/network/ResourceError.h" |
42 #include "platform/network/ResourceRequest.h" | 42 #include "platform/network/ResourceRequest.h" |
43 #include "platform/network/ResourceResponse.h" | 43 #include "platform/network/ResourceResponse.h" |
44 #include "wtf/HashSet.h" | 44 #include "wtf/HashSet.h" |
45 #include "wtf/RefPtr.h" | 45 #include "wtf/RefPtr.h" |
46 | 46 |
| 47 namespace blink { |
| 48 class WebParserResourceBridge; |
| 49 } |
| 50 |
47 namespace WTF { | 51 namespace WTF { |
48 class SchedulePair; | 52 class SchedulePair; |
49 } | 53 } |
50 | 54 |
51 namespace WebCore { | 55 namespace WebCore { |
52 class ApplicationCacheHost; | 56 class ApplicationCacheHost; |
53 class ArchiveResource; | 57 class ArchiveResource; |
54 class ArchiveResourceCollection; | 58 class ArchiveResourceCollection; |
55 class ResourceFetcher; | 59 class ResourceFetcher; |
56 class ContentFilter; | 60 class ContentFilter; |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 void setTriggeringAction(const NavigationAction& action) { m_triggeringA
ction = action; } | 137 void setTriggeringAction(const NavigationAction& action) { m_triggeringA
ction = action; } |
134 | 138 |
135 void setOverrideEncoding(const AtomicString& encoding) { m_overrideEncod
ing = encoding; } | 139 void setOverrideEncoding(const AtomicString& encoding) { m_overrideEncod
ing = encoding; } |
136 | 140 |
137 void setDefersLoading(bool); | 141 void setDefersLoading(bool); |
138 | 142 |
139 void startLoadingMainResource(); | 143 void startLoadingMainResource(); |
140 void cancelMainResourceLoad(const ResourceError&); | 144 void cancelMainResourceLoad(const ResourceError&); |
141 | 145 |
142 bool isLoadingMainResource() const { return m_loadingMainResource; } | 146 bool isLoadingMainResource() const { return m_loadingMainResource; } |
| 147 PassOwnPtr<blink::WebParserResourceBridge> constructParserResourceBridge
(); |
143 | 148 |
144 void stopLoadingSubresources(); | 149 void stopLoadingSubresources(); |
145 | 150 |
146 void subresourceLoaderFinishedLoadingOnePart(ResourceLoader*); | 151 void subresourceLoaderFinishedLoadingOnePart(ResourceLoader*); |
147 | 152 |
148 void setDeferMainResourceDataLoad(bool defer) { m_deferMainResourceDataL
oad = defer; } | 153 void setDeferMainResourceDataLoad(bool defer) { m_deferMainResourceDataL
oad = defer; } |
149 | 154 |
150 DocumentLoadTiming* timing() { return &m_documentLoadTiming; } | 155 DocumentLoadTiming* timing() { return &m_documentLoadTiming; } |
151 void resetTiming() { m_documentLoadTiming = DocumentLoadTiming(); } | 156 void resetTiming() { m_documentLoadTiming = DocumentLoadTiming(); } |
152 | 157 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 void prepareSubframeArchiveLoadIfNeeded(); | 193 void prepareSubframeArchiveLoadIfNeeded(); |
189 void addAllArchiveResources(MHTMLArchive*); | 194 void addAllArchiveResources(MHTMLArchive*); |
190 | 195 |
191 void willSendRequest(ResourceRequest&, const ResourceResponse&); | 196 void willSendRequest(ResourceRequest&, const ResourceResponse&); |
192 void finishedLoading(double finishTime); | 197 void finishedLoading(double finishTime); |
193 void mainReceivedError(const ResourceError&); | 198 void mainReceivedError(const ResourceError&); |
194 virtual void redirectReceived(Resource*, ResourceRequest&, const Resourc
eResponse&) OVERRIDE; | 199 virtual void redirectReceived(Resource*, ResourceRequest&, const Resourc
eResponse&) OVERRIDE; |
195 virtual void responseReceived(Resource*, const ResourceResponse&) OVERRI
DE; | 200 virtual void responseReceived(Resource*, const ResourceResponse&) OVERRI
DE; |
196 virtual void dataReceived(Resource*, const char* data, int length) OVERR
IDE; | 201 virtual void dataReceived(Resource*, const char* data, int length) OVERR
IDE; |
197 virtual void notifyFinished(Resource*) OVERRIDE; | 202 virtual void notifyFinished(Resource*) OVERRIDE; |
| 203 virtual void parserResourceMessageFilterAdded(Resource*) OVERRIDE; |
198 | 204 |
199 bool maybeLoadEmpty(); | 205 bool maybeLoadEmpty(); |
200 | 206 |
201 bool isRedirectAfterPost(const ResourceRequest&, const ResourceResponse&
); | 207 bool isRedirectAfterPost(const ResourceRequest&, const ResourceResponse&
); |
202 | 208 |
203 bool shouldContinueForResponse() const; | 209 bool shouldContinueForResponse() const; |
204 | 210 |
205 typedef Timer<DocumentLoader> DocumentLoaderTimer; | 211 typedef Timer<DocumentLoader> DocumentLoaderTimer; |
206 | 212 |
207 void handleSubstituteDataLoadSoon(); | 213 void handleSubstituteDataLoadSoon(); |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 unsigned long m_identifierForLoadWithoutResourceLoader; | 262 unsigned long m_identifierForLoadWithoutResourceLoader; |
257 | 263 |
258 DocumentLoaderTimer m_dataLoadTimer; | 264 DocumentLoaderTimer m_dataLoadTimer; |
259 | 265 |
260 friend class ApplicationCacheHost; // for substitute resource delivery | 266 friend class ApplicationCacheHost; // for substitute resource delivery |
261 OwnPtr<ApplicationCacheHost> m_applicationCacheHost; | 267 OwnPtr<ApplicationCacheHost> m_applicationCacheHost; |
262 }; | 268 }; |
263 } | 269 } |
264 | 270 |
265 #endif // DocumentLoader_h | 271 #endif // DocumentLoader_h |
OLD | NEW |