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

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, 3 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
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 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 if (m_webFrame->client()) 535 if (m_webFrame->client())
536 m_webFrame->client()->didDetectXSS(m_webFrame, insecureURL, didBlockEnti rePage); 536 m_webFrame->client()->didDetectXSS(m_webFrame, insecureURL, didBlockEnti rePage);
537 } 537 }
538 538
539 void FrameLoaderClientImpl::didDispatchPingLoader(const KURL& url) 539 void FrameLoaderClientImpl::didDispatchPingLoader(const KURL& url)
540 { 540 {
541 if (m_webFrame->client()) 541 if (m_webFrame->client())
542 m_webFrame->client()->didDispatchPingLoader(m_webFrame, url); 542 m_webFrame->client()->didDispatchPingLoader(m_webFrame, url);
543 } 543 }
544 544
545 void FrameLoaderClientImpl::selectorMatchChanged(const Vector<String>& addedSele ctors, const Vector<String>& removedSelectors)
546 {
547 if (m_webFrame->client()) {
esprehn 2013/09/04 06:08:28 no braces and we'd probably write it as: if (Clie
Jeffrey Yasskin 2013/09/12 22:09:59 Done, but I haven't updated all of the other funct
548 m_webFrame->client()->didMatchCSS(m_webFrame, WebVector<WebString>(added Selectors), WebVector<WebString>(removedSelectors));
549 }
550 }
551
545 PassRefPtr<DocumentLoader> FrameLoaderClientImpl::createDocumentLoader( 552 PassRefPtr<DocumentLoader> FrameLoaderClientImpl::createDocumentLoader(
546 const ResourceRequest& request, 553 const ResourceRequest& request,
547 const SubstituteData& data) 554 const SubstituteData& data)
548 { 555 {
549 RefPtr<WebDataSourceImpl> ds = WebDataSourceImpl::create(request, data); 556 RefPtr<WebDataSourceImpl> ds = WebDataSourceImpl::create(request, data);
550 if (m_webFrame->client()) 557 if (m_webFrame->client())
551 m_webFrame->client()->didCreateDataSource(m_webFrame, ds.get()); 558 m_webFrame->client()->didCreateDataSource(m_webFrame, ds.get());
552 return ds.release(); 559 return ds.release();
553 } 560 }
554 561
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 m_webFrame->client()->didLoseWebGLContext(m_webFrame, arbRobustnessConte xtLostReason); 755 m_webFrame->client()->didLoseWebGLContext(m_webFrame, arbRobustnessConte xtLostReason);
749 } 756 }
750 757
751 void FrameLoaderClientImpl::dispatchWillInsertBody() 758 void FrameLoaderClientImpl::dispatchWillInsertBody()
752 { 759 {
753 if (m_webFrame->client()) 760 if (m_webFrame->client())
754 m_webFrame->client()->willInsertBody(m_webFrame); 761 m_webFrame->client()->willInsertBody(m_webFrame);
755 } 762 }
756 763
757 } // namespace WebKit 764 } // namespace WebKit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698