Chromium Code Reviews| 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 118 void updateForSameDocumentNavigation(const KURL&, | 118 void updateForSameDocumentNavigation(const KURL&, |
| 119 SameDocumentNavigationSource); | 119 SameDocumentNavigationSource); |
| 120 const ResourceResponse& response() const { return m_response; } | 120 const ResourceResponse& response() const { return m_response; } |
| 121 bool isClientRedirect() const { return m_isClientRedirect; } | 121 bool isClientRedirect() const { return m_isClientRedirect; } |
| 122 void setIsClientRedirect(bool isClientRedirect) { | 122 void setIsClientRedirect(bool isClientRedirect) { |
| 123 m_isClientRedirect = isClientRedirect; | 123 m_isClientRedirect = isClientRedirect; |
| 124 } | 124 } |
| 125 bool replacesCurrentHistoryItem() const { | 125 bool replacesCurrentHistoryItem() const { |
| 126 return m_replacesCurrentHistoryItem; | 126 return m_replacesCurrentHistoryItem; |
| 127 } | 127 } |
| 128 void setReplacesCurrentHistoryItem(bool replacesCurrentHistoryItem) { | 128 void setReplacesCurrentHistoryItem(bool replacesCurrentHistoryItem) { |
|
yhirano
2017/01/27 08:34:12
Is it possible to remove this function by computin
Nate Chapin
2017/01/27 17:57:55
Yes, removing m_replacesCurrentHistoryItem and usi
| |
| 129 m_replacesCurrentHistoryItem = replacesCurrentHistoryItem; | 129 m_replacesCurrentHistoryItem = replacesCurrentHistoryItem; |
| 130 } | 130 } |
| 131 | 131 |
| 132 bool isCommittedButEmpty() const { | 132 bool isCommittedButEmpty() const { |
| 133 return m_state >= Committed && !m_dataReceived; | 133 return m_state >= Committed && !m_dataReceived; |
| 134 } | 134 } |
| 135 | 135 |
| 136 void setSentDidFinishLoad() { m_state = SentDidFinishLoad; } | 136 void setSentDidFinishLoad() { m_state = SentDidFinishLoad; } |
| 137 bool sentDidFinishLoad() const { return m_state == SentDidFinishLoad; } | 137 bool sentDidFinishLoad() const { return m_state == SentDidFinishLoad; } |
| 138 | 138 |
| 139 FrameLoadType loadType() const { return m_loadType; } | |
| 140 void setLoadType(FrameLoadType loadType) { m_loadType = loadType; } | |
| 141 | |
| 139 NavigationType getNavigationType() const { return m_navigationType; } | 142 NavigationType getNavigationType() const { return m_navigationType; } |
| 140 void setNavigationType(NavigationType navigationType) { | 143 void setNavigationType(NavigationType navigationType) { |
| 141 m_navigationType = navigationType; | 144 m_navigationType = navigationType; |
| 142 } | 145 } |
| 143 | 146 |
| 144 void startLoadingMainResource(); | 147 void startLoadingMainResource(); |
| 145 | 148 |
| 146 DocumentLoadTiming& timing() { return m_documentLoadTiming; } | 149 DocumentLoadTiming& timing() { return m_documentLoadTiming; } |
| 147 const DocumentLoadTiming& timing() const { return m_documentLoadTiming; } | 150 const DocumentLoadTiming& timing() const { return m_documentLoadTiming; } |
| 148 | 151 |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 253 | 256 |
| 254 SubstituteData m_substituteData; | 257 SubstituteData m_substituteData; |
| 255 | 258 |
| 256 // The 'working' request. It may be mutated | 259 // The 'working' request. It may be mutated |
| 257 // several times from the original request to include additional | 260 // several times from the original request to include additional |
| 258 // headers, cookie information, canonicalization and redirects. | 261 // headers, cookie information, canonicalization and redirects. |
| 259 ResourceRequest m_request; | 262 ResourceRequest m_request; |
| 260 | 263 |
| 261 ResourceResponse m_response; | 264 ResourceResponse m_response; |
| 262 | 265 |
| 266 FrameLoadType m_loadType; | |
| 267 | |
| 263 bool m_isClientRedirect; | 268 bool m_isClientRedirect; |
| 264 bool m_replacesCurrentHistoryItem; | 269 bool m_replacesCurrentHistoryItem; |
| 265 bool m_dataReceived; | 270 bool m_dataReceived; |
| 266 | 271 |
| 267 NavigationType m_navigationType; | 272 NavigationType m_navigationType; |
| 268 | 273 |
| 269 DocumentLoadTiming m_documentLoadTiming; | 274 DocumentLoadTiming m_documentLoadTiming; |
| 270 | 275 |
| 271 double m_timeOfLastDataReceived; | 276 double m_timeOfLastDataReceived; |
| 272 | 277 |
| (...skipping 16 matching lines...) Expand all Loading... | |
| 289 // Used to protect against reentrancy into dataReceived(). | 294 // Used to protect against reentrancy into dataReceived(). |
| 290 bool m_inDataReceived; | 295 bool m_inDataReceived; |
| 291 RefPtr<SharedBuffer> m_dataBuffer; | 296 RefPtr<SharedBuffer> m_dataBuffer; |
| 292 }; | 297 }; |
| 293 | 298 |
| 294 DECLARE_WEAK_IDENTIFIER_MAP(DocumentLoader); | 299 DECLARE_WEAK_IDENTIFIER_MAP(DocumentLoader); |
| 295 | 300 |
| 296 } // namespace blink | 301 } // namespace blink |
| 297 | 302 |
| 298 #endif // DocumentLoader_h | 303 #endif // DocumentLoader_h |
| OLD | NEW |