OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. |
3 * Copyright (C) 2011 Apple Inc. All rights reserved. | 3 * Copyright (C) 2011 Apple 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 are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * 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 597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
608 const KURL& url, | 608 const KURL& url, |
609 const AtomicString& name, | 609 const AtomicString& name, |
610 const Referrer& referrer, | 610 const Referrer& referrer, |
611 HTMLFrameOwnerElement* ownerElement) | 611 HTMLFrameOwnerElement* ownerElement) |
612 { | 612 { |
613 FrameLoadRequest frameRequest(m_webFrame->frame()->document(), | 613 FrameLoadRequest frameRequest(m_webFrame->frame()->document(), |
614 ResourceRequest(url, referrer), name); | 614 ResourceRequest(url, referrer), name); |
615 return m_webFrame->createChildFrame(frameRequest, ownerElement); | 615 return m_webFrame->createChildFrame(frameRequest, ownerElement); |
616 } | 616 } |
617 | 617 |
| 618 bool FrameLoaderClientImpl::canCreatePluginWithoutRenderer(const String& mimeTyp
e) const |
| 619 { |
| 620 if (!m_webFrame->client()) |
| 621 return false; |
| 622 |
| 623 return m_webFrame->client()->canCreatePluginWithoutRenderer(mimeType); |
| 624 } |
| 625 |
618 PassRefPtr<Widget> FrameLoaderClientImpl::createPlugin( | 626 PassRefPtr<Widget> FrameLoaderClientImpl::createPlugin( |
619 HTMLPlugInElement* element, | 627 HTMLPlugInElement* element, |
620 const KURL& url, | 628 const KURL& url, |
621 const Vector<String>& paramNames, | 629 const Vector<String>& paramNames, |
622 const Vector<String>& paramValues, | 630 const Vector<String>& paramValues, |
623 const String& mimeType, | 631 const String& mimeType, |
624 bool loadManually, | 632 bool loadManually, |
625 DetachedPluginPolicy policy) | 633 DetachedPluginPolicy policy) |
626 { | 634 { |
627 if (!m_webFrame->client()) | 635 if (!m_webFrame->client()) |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
794 return adoptPtr(m_webFrame->client()->createApplicationCacheHost(m_webFrame,
client)); | 802 return adoptPtr(m_webFrame->client()->createApplicationCacheHost(m_webFrame,
client)); |
795 } | 803 } |
796 | 804 |
797 void FrameLoaderClientImpl::didStopAllLoaders() | 805 void FrameLoaderClientImpl::didStopAllLoaders() |
798 { | 806 { |
799 if (m_webFrame->client()) | 807 if (m_webFrame->client()) |
800 m_webFrame->client()->didAbortLoading(m_webFrame); | 808 m_webFrame->client()->didAbortLoading(m_webFrame); |
801 } | 809 } |
802 | 810 |
803 } // namespace blink | 811 } // namespace blink |
OLD | NEW |