| 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 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 954 | 954 |
| 955 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde
nTerminationDisablerType type) | 955 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde
nTerminationDisablerType type) |
| 956 { | 956 { |
| 957 if (m_webFrame->client()) { | 957 if (m_webFrame->client()) { |
| 958 m_webFrame->client()->suddenTerminationDisablerChanged( | 958 m_webFrame->client()->suddenTerminationDisablerChanged( |
| 959 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>(
type)); | 959 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>(
type)); |
| 960 } | 960 } |
| 961 } | 961 } |
| 962 | 962 |
| 963 } // namespace blink | 963 } // namespace blink |
| OLD | NEW |