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 632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
643 if (m_webFrame->client()) | 643 if (m_webFrame->client()) |
644 m_webFrame->client()->didDispatchPingLoader(m_webFrame, url); | 644 m_webFrame->client()->didDispatchPingLoader(m_webFrame, url); |
645 } | 645 } |
646 | 646 |
647 void FrameLoaderClientImpl::selectorMatchChanged(const Vector<String>& addedSele
ctors, const Vector<String>& removedSelectors) | 647 void FrameLoaderClientImpl::selectorMatchChanged(const Vector<String>& addedSele
ctors, const Vector<String>& removedSelectors) |
648 { | 648 { |
649 if (WebFrameClient* client = m_webFrame->client()) | 649 if (WebFrameClient* client = m_webFrame->client()) |
650 client->didMatchCSS(m_webFrame, WebVector<WebString>(addedSelectors), We
bVector<WebString>(removedSelectors)); | 650 client->didMatchCSS(m_webFrame, WebVector<WebString>(addedSelectors), We
bVector<WebString>(removedSelectors)); |
651 } | 651 } |
652 | 652 |
653 PassRefPtr<DocumentLoader> FrameLoaderClientImpl::createDocumentLoader(LocalFram
e* frame, const ResourceRequest& request, const SubstituteData& data) | 653 PassRefPtrWillBeRawPtr<DocumentLoader> FrameLoaderClientImpl::createDocumentLoad
er(LocalFrame* frame, const ResourceRequest& request, const SubstituteData& data
) |
654 { | 654 { |
655 RefPtr<WebDataSourceImpl> ds = WebDataSourceImpl::create(frame, request, dat
a); | 655 RefPtrWillBeRawPtr<WebDataSourceImpl> ds = WebDataSourceImpl::create(frame,
request, data); |
656 if (m_webFrame->client()) | 656 if (m_webFrame->client()) |
657 m_webFrame->client()->didCreateDataSource(m_webFrame, ds.get()); | 657 m_webFrame->client()->didCreateDataSource(m_webFrame, ds.get()); |
658 return ds.release(); | 658 return ds.release(); |
659 } | 659 } |
660 | 660 |
661 String FrameLoaderClientImpl::userAgent(const KURL& url) | 661 String FrameLoaderClientImpl::userAgent(const KURL& url) |
662 { | 662 { |
663 WebString override = m_webFrame->client()->userAgentOverride(m_webFrame, Web
URL(url)); | 663 WebString override = m_webFrame->client()->userAgentOverride(m_webFrame, Web
URL(url)); |
664 if (!override.isEmpty()) | 664 if (!override.isEmpty()) |
665 return override; | 665 return override; |
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
959 | 959 |
960 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde
nTerminationDisablerType type) | 960 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde
nTerminationDisablerType type) |
961 { | 961 { |
962 if (m_webFrame->client()) { | 962 if (m_webFrame->client()) { |
963 m_webFrame->client()->suddenTerminationDisablerChanged( | 963 m_webFrame->client()->suddenTerminationDisablerChanged( |
964 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>(
type)); | 964 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>(
type)); |
965 } | 965 } |
966 } | 966 } |
967 | 967 |
968 } // namespace blink | 968 } // namespace blink |
OLD | NEW |