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 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
527 if (m_webFrame->client()) | 527 if (m_webFrame->client()) |
528 m_webFrame->client()->didDetectXSS(m_webFrame, insecureURL, didBlockEnti
rePage); | 528 m_webFrame->client()->didDetectXSS(m_webFrame, insecureURL, didBlockEnti
rePage); |
529 } | 529 } |
530 | 530 |
531 void FrameLoaderClientImpl::didDispatchPingLoader(const KURL& url) | 531 void FrameLoaderClientImpl::didDispatchPingLoader(const KURL& url) |
532 { | 532 { |
533 if (m_webFrame->client()) | 533 if (m_webFrame->client()) |
534 m_webFrame->client()->didDispatchPingLoader(m_webFrame, url); | 534 m_webFrame->client()->didDispatchPingLoader(m_webFrame, url); |
535 } | 535 } |
536 | 536 |
| 537 void FrameLoaderClientImpl::selectorMatchChanged(const Vector<String>& addedSele
ctors, const Vector<String>& removedSelectors) |
| 538 { |
| 539 if (WebFrameClient* client = m_webFrame->client()) |
| 540 client->didMatchCSS(m_webFrame, WebVector<WebString>(addedSelectors), We
bVector<WebString>(removedSelectors)); |
| 541 } |
| 542 |
537 PassRefPtr<DocumentLoader> FrameLoaderClientImpl::createDocumentLoader( | 543 PassRefPtr<DocumentLoader> FrameLoaderClientImpl::createDocumentLoader( |
538 const ResourceRequest& request, | 544 const ResourceRequest& request, |
539 const SubstituteData& data) | 545 const SubstituteData& data) |
540 { | 546 { |
541 RefPtr<WebDataSourceImpl> ds = WebDataSourceImpl::create(request, data); | 547 RefPtr<WebDataSourceImpl> ds = WebDataSourceImpl::create(request, data); |
542 if (m_webFrame->client()) | 548 if (m_webFrame->client()) |
543 m_webFrame->client()->didCreateDataSource(m_webFrame, ds.get()); | 549 m_webFrame->client()->didCreateDataSource(m_webFrame, ds.get()); |
544 return ds.release(); | 550 return ds.release(); |
545 } | 551 } |
546 | 552 |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
753 return m_webFrame->client()->serviceWorkerRegistry(m_webFrame); | 759 return m_webFrame->client()->serviceWorkerRegistry(m_webFrame); |
754 } | 760 } |
755 | 761 |
756 void FrameLoaderClientImpl::didStopAllLoaders() | 762 void FrameLoaderClientImpl::didStopAllLoaders() |
757 { | 763 { |
758 if (m_webFrame->client()) | 764 if (m_webFrame->client()) |
759 m_webFrame->client()->didAbortLoading(m_webFrame); | 765 m_webFrame->client()->didAbortLoading(m_webFrame); |
760 } | 766 } |
761 | 767 |
762 } // namespace WebKit | 768 } // namespace WebKit |
OLD | NEW |