| 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 return m_replacesCurrentHistoryItem; | 127 return m_replacesCurrentHistoryItem; |
| 128 } | 128 } |
| 129 void setReplacesCurrentHistoryItem(bool replacesCurrentHistoryItem) { | 129 void setReplacesCurrentHistoryItem(bool replacesCurrentHistoryItem) { |
| 130 m_replacesCurrentHistoryItem = replacesCurrentHistoryItem; | 130 m_replacesCurrentHistoryItem = replacesCurrentHistoryItem; |
| 131 } | 131 } |
| 132 | 132 |
| 133 bool isCommittedButEmpty() const { | 133 bool isCommittedButEmpty() const { |
| 134 return m_state >= Committed && !m_dataReceived; | 134 return m_state >= Committed && !m_dataReceived; |
| 135 } | 135 } |
| 136 | 136 |
| 137 // Without PlzNavigate, this is only false for a narrow window during |
| 138 // navigation start. For PlzNavigate, a navigation sent to the browser will |
| 139 // leave a dummy DocumentLoader in the NotStarted state until the navigation |
| 140 // is actually handled in the renderer. |
| 141 bool didStart() const { return m_state != NotStarted; } |
| 142 |
| 137 void setSentDidFinishLoad() { m_state = SentDidFinishLoad; } | 143 void setSentDidFinishLoad() { m_state = SentDidFinishLoad; } |
| 138 bool sentDidFinishLoad() const { return m_state == SentDidFinishLoad; } | 144 bool sentDidFinishLoad() const { return m_state == SentDidFinishLoad; } |
| 139 | 145 |
| 140 FrameLoadType loadType() const { return m_loadType; } | 146 FrameLoadType loadType() const { return m_loadType; } |
| 141 void setLoadType(FrameLoadType loadType) { m_loadType = loadType; } | 147 void setLoadType(FrameLoadType loadType) { m_loadType = loadType; } |
| 142 | 148 |
| 143 NavigationType getNavigationType() const { return m_navigationType; } | 149 NavigationType getNavigationType() const { return m_navigationType; } |
| 144 void setNavigationType(NavigationType navigationType) { | 150 void setNavigationType(NavigationType navigationType) { |
| 145 m_navigationType = navigationType; | 151 m_navigationType = navigationType; |
| 146 } | 152 } |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 // Used to protect against reentrancy into dataReceived(). | 300 // Used to protect against reentrancy into dataReceived(). |
| 295 bool m_inDataReceived; | 301 bool m_inDataReceived; |
| 296 RefPtr<SharedBuffer> m_dataBuffer; | 302 RefPtr<SharedBuffer> m_dataBuffer; |
| 297 }; | 303 }; |
| 298 | 304 |
| 299 DECLARE_WEAK_IDENTIFIER_MAP(DocumentLoader); | 305 DECLARE_WEAK_IDENTIFIER_MAP(DocumentLoader); |
| 300 | 306 |
| 301 } // namespace blink | 307 } // namespace blink |
| 302 | 308 |
| 303 #endif // DocumentLoader_h | 309 #endif // DocumentLoader_h |
| OLD | NEW |