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 25 matching lines...) Expand all Loading... |
36 #include "core/loader/DocumentLoadTiming.h" | 36 #include "core/loader/DocumentLoadTiming.h" |
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/network/ResourceError.h" | 40 #include "platform/network/ResourceError.h" |
41 #include "platform/network/ResourceRequest.h" | 41 #include "platform/network/ResourceRequest.h" |
42 #include "platform/network/ResourceResponse.h" | 42 #include "platform/network/ResourceResponse.h" |
43 #include "wtf/HashSet.h" | 43 #include "wtf/HashSet.h" |
44 #include "wtf/RefPtr.h" | 44 #include "wtf/RefPtr.h" |
45 | 45 |
| 46 namespace blink { |
| 47 class WebThreadedDataReceiver; |
| 48 } |
| 49 |
46 namespace WTF { | 50 namespace WTF { |
47 class SchedulePair; | 51 class SchedulePair; |
48 } | 52 } |
49 | 53 |
50 namespace WebCore { | 54 namespace WebCore { |
51 class ApplicationCacheHost; | 55 class ApplicationCacheHost; |
52 class ArchiveResource; | 56 class ArchiveResource; |
53 class ArchiveResourceCollection; | 57 class ArchiveResourceCollection; |
54 class ResourceFetcher; | 58 class ResourceFetcher; |
55 class ContentFilter; | 59 class ContentFilter; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 const NavigationAction& triggeringAction() const { return m_triggeringAc
tion; } | 119 const NavigationAction& triggeringAction() const { return m_triggeringAc
tion; } |
116 void setTriggeringAction(const NavigationAction& action) { m_triggeringA
ction = action; } | 120 void setTriggeringAction(const NavigationAction& action) { m_triggeringA
ction = action; } |
117 | 121 |
118 void setOverrideEncoding(const AtomicString& encoding) { m_overrideEncod
ing = encoding; } | 122 void setOverrideEncoding(const AtomicString& encoding) { m_overrideEncod
ing = encoding; } |
119 | 123 |
120 void setDefersLoading(bool); | 124 void setDefersLoading(bool); |
121 | 125 |
122 void startLoadingMainResource(); | 126 void startLoadingMainResource(); |
123 void cancelMainResourceLoad(const ResourceError&); | 127 void cancelMainResourceLoad(const ResourceError&); |
124 | 128 |
| 129 void attachThreadedDataReceiver(PassOwnPtr<blink::WebThreadedDataReceive
r>); |
125 DocumentLoadTiming* timing() { return &m_documentLoadTiming; } | 130 DocumentLoadTiming* timing() { return &m_documentLoadTiming; } |
126 | 131 |
127 ApplicationCacheHost* applicationCacheHost() const { return m_applicatio
nCacheHost.get(); } | 132 ApplicationCacheHost* applicationCacheHost() const { return m_applicatio
nCacheHost.get(); } |
128 | 133 |
129 void checkLoadComplete(); | 134 void checkLoadComplete(); |
130 | 135 |
131 bool isRedirect() const { return m_redirectChain.size() > 1; } | 136 bool isRedirect() const { return m_redirectChain.size() > 1; } |
132 void clearRedirectChain(); | 137 void clearRedirectChain(); |
133 void appendRedirect(const KURL&); | 138 void appendRedirect(const KURL&); |
134 | 139 |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 DocumentLoadTiming m_documentLoadTiming; | 218 DocumentLoadTiming m_documentLoadTiming; |
214 | 219 |
215 double m_timeOfLastDataReceived; | 220 double m_timeOfLastDataReceived; |
216 | 221 |
217 friend class ApplicationCacheHost; // for substitute resource delivery | 222 friend class ApplicationCacheHost; // for substitute resource delivery |
218 OwnPtr<ApplicationCacheHost> m_applicationCacheHost; | 223 OwnPtr<ApplicationCacheHost> m_applicationCacheHost; |
219 }; | 224 }; |
220 } | 225 } |
221 | 226 |
222 #endif // DocumentLoader_h | 227 #endif // DocumentLoader_h |
OLD | NEW |