| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2011 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. | 3 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
| 4 * (http://www.torchmobile.com/) | 4 * (http://www.torchmobile.com/) |
| 5 * Copyright (C) Research In Motion Limited 2009. All rights reserved. | 5 * Copyright (C) Research In Motion Limited 2009. All rights reserved. |
| 6 * Copyright (C) 2011 Google Inc. All rights reserved. | 6 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 7 * | 7 * |
| 8 * Redistribution and use in source and binary forms, with or without | 8 * Redistribution and use in source and binary forms, with or without |
| 9 * modification, are permitted provided that the following conditions | 9 * modification, are permitted provided that the following conditions |
| 10 * are met: | 10 * are met: |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 // Starts a load. It will eventually call startLoad() or loadInSameDocument(). | 90 // Starts a load. It will eventually call startLoad() or loadInSameDocument(). |
| 91 // For history navigations or reloads, an appropriate FrameLoadType should be | 91 // For history navigations or reloads, an appropriate FrameLoadType should be |
| 92 // given. Otherwise, FrameLoadTypeStandard should be used (and the final | 92 // given. Otherwise, FrameLoadTypeStandard should be used (and the final |
| 93 // FrameLoadType will be computed). For history navigations, a history item | 93 // FrameLoadType will be computed). For history navigations, a history item |
| 94 // and a HistoryLoadType should also be provided. | 94 // and a HistoryLoadType should also be provided. |
| 95 void Load(const FrameLoadRequest&, | 95 void Load(const FrameLoadRequest&, |
| 96 FrameLoadType = kFrameLoadTypeStandard, | 96 FrameLoadType = kFrameLoadTypeStandard, |
| 97 HistoryItem* = nullptr, | 97 HistoryItem* = nullptr, |
| 98 HistoryLoadType = kHistoryDifferentDocumentLoad); | 98 HistoryLoadType = kHistoryDifferentDocumentLoad); |
| 99 | 99 |
| 100 static void ReportLocalLoadFailed(LocalFrame*, const String& url); | |
| 101 | |
| 102 // Warning: stopAllLoaders can and will detach the LocalFrame out from under | 100 // Warning: stopAllLoaders can and will detach the LocalFrame out from under |
| 103 // you. All callers need to either protect the LocalFrame or guarantee they | 101 // you. All callers need to either protect the LocalFrame or guarantee they |
| 104 // won't in any way access the LocalFrame after stopAllLoaders returns. | 102 // won't in any way access the LocalFrame after stopAllLoaders returns. |
| 105 void StopAllLoaders(); | 103 void StopAllLoaders(); |
| 106 | 104 |
| 107 // FIXME: clear() is trying to do too many things. We should break it down | 105 // FIXME: clear() is trying to do too many things. We should break it down |
| 108 // into smaller functions. | 106 // into smaller functions. |
| 109 void Clear(); | 107 void Clear(); |
| 110 | 108 |
| 111 void ReplaceDocumentWhileExecutingJavaScriptURL(const String& source, | 109 void ReplaceDocumentWhileExecutingJavaScriptURL(const String& source, |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 SandboxFlags forced_sandbox_flags_; | 294 SandboxFlags forced_sandbox_flags_; |
| 297 | 295 |
| 298 bool dispatching_did_clear_window_object_in_main_world_; | 296 bool dispatching_did_clear_window_object_in_main_world_; |
| 299 bool protect_provisional_loader_; | 297 bool protect_provisional_loader_; |
| 300 bool detached_; | 298 bool detached_; |
| 301 }; | 299 }; |
| 302 | 300 |
| 303 } // namespace blink | 301 } // namespace blink |
| 304 | 302 |
| 305 #endif // FrameLoader_h | 303 #endif // FrameLoader_h |
| OLD | NEW |