Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Side by Side Diff: Source/web/FrameLoaderClientImpl.cpp

Issue 18371008: Add a WebDocument::watchCssSelectors(selectors) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@pinned
Patch Set: Sync Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/web/FrameLoaderClientImpl.h ('k') | Source/web/WebDocument.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/web/FrameLoaderClientImpl.h ('k') | Source/web/WebDocument.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698