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 28 matching lines...) Expand all Loading... |
39 #include "core/fetch/SubstituteData.h" | 39 #include "core/fetch/SubstituteData.h" |
40 #include "core/frame/csp/ContentSecurityPolicy.h" | 40 #include "core/frame/csp/ContentSecurityPolicy.h" |
41 #include "core/loader/DocumentLoadTiming.h" | 41 #include "core/loader/DocumentLoadTiming.h" |
42 #include "core/loader/DocumentWriter.h" | 42 #include "core/loader/DocumentWriter.h" |
43 #include "core/loader/FrameLoaderTypes.h" | 43 #include "core/loader/FrameLoaderTypes.h" |
44 #include "core/loader/NavigationPolicy.h" | 44 #include "core/loader/NavigationPolicy.h" |
45 #include "platform/SharedBuffer.h" | 45 #include "platform/SharedBuffer.h" |
46 #include "platform/network/ResourceError.h" | 46 #include "platform/network/ResourceError.h" |
47 #include "platform/network/ResourceRequest.h" | 47 #include "platform/network/ResourceRequest.h" |
48 #include "platform/network/ResourceResponse.h" | 48 #include "platform/network/ResourceResponse.h" |
| 49 #include "public/platform/WebLoadingBehaviorFlag.h" |
49 #include "wtf/HashSet.h" | 50 #include "wtf/HashSet.h" |
50 #include "wtf/RefPtr.h" | 51 #include "wtf/RefPtr.h" |
51 | 52 |
52 namespace blink { | 53 namespace blink { |
53 | 54 |
54 class ApplicationCacheHost; | 55 class ApplicationCacheHost; |
55 class ResourceFetcher; | 56 class ResourceFetcher; |
56 class DocumentInit; | 57 class DocumentInit; |
57 class LocalFrame; | 58 class LocalFrame; |
58 class FrameLoader; | 59 class FrameLoader; |
(...skipping 25 matching lines...) Expand all Loading... |
84 | 85 |
85 const SubstituteData& substituteData() const { return m_substituteData; } | 86 const SubstituteData& substituteData() const { return m_substituteData; } |
86 | 87 |
87 const KURL& url() const; | 88 const KURL& url() const; |
88 const KURL& unreachableURL() const; | 89 const KURL& unreachableURL() const; |
89 const KURL& urlForHistory() const; | 90 const KURL& urlForHistory() const; |
90 | 91 |
91 const AtomicString& responseMIMEType() const; | 92 const AtomicString& responseMIMEType() const; |
92 | 93 |
93 void didChangePerformanceTiming(); | 94 void didChangePerformanceTiming(); |
| 95 void didObserveLoadingBehavior(WebLoadingBehaviorFlag); |
94 void updateForSameDocumentNavigation(const KURL&, SameDocumentNavigationSour
ce); | 96 void updateForSameDocumentNavigation(const KURL&, SameDocumentNavigationSour
ce); |
95 const ResourceResponse& response() const { return m_response; } | 97 const ResourceResponse& response() const { return m_response; } |
96 bool isClientRedirect() const { return m_isClientRedirect; } | 98 bool isClientRedirect() const { return m_isClientRedirect; } |
97 void setIsClientRedirect(bool isClientRedirect) { m_isClientRedirect = isCli
entRedirect; } | 99 void setIsClientRedirect(bool isClientRedirect) { m_isClientRedirect = isCli
entRedirect; } |
98 bool replacesCurrentHistoryItem() const { return m_replacesCurrentHistoryIte
m; } | 100 bool replacesCurrentHistoryItem() const { return m_replacesCurrentHistoryIte
m; } |
99 void setReplacesCurrentHistoryItem(bool replacesCurrentHistoryItem) { m_repl
acesCurrentHistoryItem = replacesCurrentHistoryItem; } | 101 void setReplacesCurrentHistoryItem(bool replacesCurrentHistoryItem) { m_repl
acesCurrentHistoryItem = replacesCurrentHistoryItem; } |
100 | 102 |
101 bool isCommittedButEmpty() const { return m_state == Committed; } | 103 bool isCommittedButEmpty() const { return m_state == Committed; } |
102 | 104 |
103 void setSentDidFinishLoad() { m_state = SentDidFinishLoad; } | 105 void setSentDidFinishLoad() { m_state = SentDidFinishLoad; } |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 // Used to protect against reentrancy into dataReceived(). | 229 // Used to protect against reentrancy into dataReceived(). |
228 bool m_inDataReceived; | 230 bool m_inDataReceived; |
229 RefPtr<SharedBuffer> m_dataBuffer; | 231 RefPtr<SharedBuffer> m_dataBuffer; |
230 }; | 232 }; |
231 | 233 |
232 DECLARE_WEAK_IDENTIFIER_MAP(DocumentLoader); | 234 DECLARE_WEAK_IDENTIFIER_MAP(DocumentLoader); |
233 | 235 |
234 } // namespace blink | 236 } // namespace blink |
235 | 237 |
236 #endif // DocumentLoader_h | 238 #endif // DocumentLoader_h |
OLD | NEW |