OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv
ed. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv
ed. |
3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
4 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 4 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
5 * Copyright (C) 2008 Alp Toker <alp@atoker.com> | 5 * Copyright (C) 2008 Alp Toker <alp@atoker.com> |
6 * Copyright (C) Research In Motion Limited 2009. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 2009. All rights reserved. |
7 * Copyright (C) 2011 Kris Jordan <krisjordan@gmail.com> | 7 * Copyright (C) 2011 Kris Jordan <krisjordan@gmail.com> |
8 * Copyright (C) 2011 Google Inc. All rights reserved. | 8 * Copyright (C) 2011 Google Inc. All rights reserved. |
9 * | 9 * |
10 * Redistribution and use in source and binary forms, with or without | 10 * Redistribution and use in source and binary forms, with or without |
(...skipping 1002 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1013 setPolicyDocumentLoader(loader.get()); | 1013 setPolicyDocumentLoader(loader.get()); |
1014 checkNavigationPolicyAndContinueLoad(formState, type); | 1014 checkNavigationPolicyAndContinueLoad(formState, type); |
1015 } | 1015 } |
1016 | 1016 |
1017 void FrameLoader::reportLocalLoadFailed(Frame* frame, const String& url) | 1017 void FrameLoader::reportLocalLoadFailed(Frame* frame, const String& url) |
1018 { | 1018 { |
1019 ASSERT(!url.isEmpty()); | 1019 ASSERT(!url.isEmpty()); |
1020 if (!frame) | 1020 if (!frame) |
1021 return; | 1021 return; |
1022 | 1022 |
1023 frame->document()->addConsoleMessage(SecurityMessageSource, ErrorMessageLeve
l, "Not allowed to load local resource: " + url); | 1023 frame->document()->addConsoleMessage(SecurityMessageSource, ErrorMessageLeve
l, "Not allowed to load local resource: " + url, 0, ForceParserStateCollection); |
1024 } | 1024 } |
1025 | 1025 |
1026 bool FrameLoader::willLoadMediaElementURL(KURL& url) | 1026 bool FrameLoader::willLoadMediaElementURL(KURL& url) |
1027 { | 1027 { |
1028 ResourceRequest request(url); | 1028 ResourceRequest request(url); |
1029 | 1029 |
1030 unsigned long identifier; | 1030 unsigned long identifier; |
1031 ResourceError error; | 1031 ResourceError error; |
1032 requestFromDelegate(request, identifier, error); | 1032 requestFromDelegate(request, identifier, error); |
1033 notifier()->sendRemainingDelegateMessages(m_documentLoader.get(), identifier
, ResourceResponse(url, String(), -1, String(), String()), 0, -1, -1, error); | 1033 notifier()->sendRemainingDelegateMessages(m_documentLoader.get(), identifier
, ResourceResponse(url, String(), -1, String(), String()), 0, -1, -1, error); |
(...skipping 1180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2214 InspectorInstrumentation::didCommitLoad(m_frame, m_documentLoader.get()); | 2214 InspectorInstrumentation::didCommitLoad(m_frame, m_documentLoader.get()); |
2215 | 2215 |
2216 m_frame->page()->didCommitLoad(m_frame); | 2216 m_frame->page()->didCommitLoad(m_frame); |
2217 | 2217 |
2218 if (m_frame->page()->mainFrame() == m_frame) | 2218 if (m_frame->page()->mainFrame() == m_frame) |
2219 m_frame->page()->useCounter()->didCommitLoad(); | 2219 m_frame->page()->useCounter()->didCommitLoad(); |
2220 | 2220 |
2221 } | 2221 } |
2222 | 2222 |
2223 } // namespace WebCore | 2223 } // namespace WebCore |
OLD | NEW |