| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 #include "core/dom/ExecutionContext.h" | 31 #include "core/dom/ExecutionContext.h" |
| 32 #include "core/frame/LocalFrame.h" | 32 #include "core/frame/LocalFrame.h" |
| 33 #include "core/frame/LocalFrameClient.h" | 33 #include "core/frame/LocalFrameClient.h" |
| 34 #include "core/loader/DocumentLoader.h" | 34 #include "core/loader/DocumentLoader.h" |
| 35 #include "core/loader/FrameLoader.h" | 35 #include "core/loader/FrameLoader.h" |
| 36 #include "core/loader/HistoryItem.h" | 36 #include "core/loader/HistoryItem.h" |
| 37 #include "core/loader/NavigationScheduler.h" | 37 #include "core/loader/NavigationScheduler.h" |
| 38 #include "core/page/Page.h" | 38 #include "core/page/Page.h" |
| 39 #include "platform/weborigin/KURL.h" | 39 #include "platform/weborigin/KURL.h" |
| 40 #include "platform/weborigin/SecurityOrigin.h" | 40 #include "platform/weborigin/SecurityOrigin.h" |
| 41 #include "wtf/text/StringView.h" | 41 #include "platform/wtf/text/StringView.h" |
| 42 | 42 |
| 43 namespace blink { | 43 namespace blink { |
| 44 | 44 |
| 45 namespace { | 45 namespace { |
| 46 | 46 |
| 47 bool EqualIgnoringPathQueryAndFragment(const KURL& a, const KURL& b) { | 47 bool EqualIgnoringPathQueryAndFragment(const KURL& a, const KURL& b) { |
| 48 return StringView(a.GetString(), 0, a.PathStart()) == | 48 return StringView(a.GetString(), 0, a.PathStart()) == |
| 49 StringView(b.GetString(), 0, b.PathStart()); | 49 StringView(b.GetString(), 0, b.PathStart()); |
| 50 } | 50 } |
| 51 | 51 |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 "' and URL '" + GetFrame()->GetDocument()->Url().ElidedString() + "'."); | 229 "' and URL '" + GetFrame()->GetDocument()->Url().ElidedString() + "'."); |
| 230 return; | 230 return; |
| 231 } | 231 } |
| 232 | 232 |
| 233 GetFrame()->Loader().UpdateForSameDocumentNavigation( | 233 GetFrame()->Loader().UpdateForSameDocumentNavigation( |
| 234 full_url, kSameDocumentNavigationHistoryApi, std::move(data), | 234 full_url, kSameDocumentNavigationHistoryApi, std::move(data), |
| 235 restoration_type, type, GetFrame()->GetDocument()); | 235 restoration_type, type, GetFrame()->GetDocument()); |
| 236 } | 236 } |
| 237 | 237 |
| 238 } // namespace blink | 238 } // namespace blink |
| OLD | NEW |