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

Side by Side Diff: Source/WebKit/chromium/src/FrameLoaderClientImpl.cpp

Issue 18371008: Add a WebDocument::watchCssSelectors(selectors) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@pinned
Patch Set: Initial Created 7 years, 5 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 #include "bindings/v8/ScriptController.h" 77 #include "bindings/v8/ScriptController.h"
78 #include "core/dom/UserGestureIndicator.h" 78 #include "core/dom/UserGestureIndicator.h"
79 #include "core/page/Settings.h" 79 #include "core/page/Settings.h"
80 #include "core/page/WindowFeatures.h" 80 #include "core/page/WindowFeatures.h"
81 #include "core/platform/chromium/support/WrappedResourceRequest.h" 81 #include "core/platform/chromium/support/WrappedResourceRequest.h"
82 #include "core/platform/chromium/support/WrappedResourceResponse.h" 82 #include "core/platform/chromium/support/WrappedResourceResponse.h"
83 #include "core/platform/network/SocketStreamHandleInternal.h" 83 #include "core/platform/network/SocketStreamHandleInternal.h"
84 #include "public/platform/Platform.h" 84 #include "public/platform/Platform.h"
85 #include "public/platform/WebMimeRegistry.h" 85 #include "public/platform/WebMimeRegistry.h"
86 #include "public/platform/WebSocketStreamHandle.h" 86 #include "public/platform/WebSocketStreamHandle.h"
87 #include "public/platform/WebThread.h"
87 #include "public/platform/WebURL.h" 88 #include "public/platform/WebURL.h"
88 #include "public/platform/WebURLError.h" 89 #include "public/platform/WebURLError.h"
89 #include "public/platform/WebVector.h" 90 #include "public/platform/WebVector.h"
90 #include "wtf/StringExtras.h" 91 #include "wtf/StringExtras.h"
91 #include "wtf/text/CString.h" 92 #include "wtf/text/CString.h"
92 #include "wtf/text/WTFString.h" 93 #include "wtf/text/WTFString.h"
93 94
94 using namespace WebCore; 95 using namespace WebCore;
95 96
96 namespace WebKit { 97 namespace WebKit {
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after
609 if (m_webFrame->client()) 610 if (m_webFrame->client())
610 m_webFrame->client()->didRunInsecureContent(m_webFrame, WebSecurityOrigi n(origin), insecureURL); 611 m_webFrame->client()->didRunInsecureContent(m_webFrame, WebSecurityOrigi n(origin), insecureURL);
611 } 612 }
612 613
613 void FrameLoaderClientImpl::didDetectXSS(const KURL& insecureURL, bool didBlockE ntirePage) 614 void FrameLoaderClientImpl::didDetectXSS(const KURL& insecureURL, bool didBlockE ntirePage)
614 { 615 {
615 if (m_webFrame->client()) 616 if (m_webFrame->client())
616 m_webFrame->client()->didDetectXSS(m_webFrame, insecureURL, didBlockEnti rePage); 617 m_webFrame->client()->didDetectXSS(m_webFrame, insecureURL, didBlockEnti rePage);
617 } 618 }
618 619
620 void FrameLoaderClientImpl::selectorMatchChanged(const Vector<String>& addedSele ctors, const Vector<String>& removedSelectors)
621 {
622 if (m_webFrame->client()) {
623 m_webFrame->client()->didMatchCss(m_webFrame, WebVector<WebString>(added Selectors), WebVector<WebString>(removedSelectors));
624 }
625 }
626
619 ResourceError FrameLoaderClientImpl::cancelledError(const ResourceRequest& reque st) 627 ResourceError FrameLoaderClientImpl::cancelledError(const ResourceRequest& reque st)
620 { 628 {
621 if (!m_webFrame->client()) 629 if (!m_webFrame->client())
622 return ResourceError(); 630 return ResourceError();
623 631
624 return m_webFrame->client()->cancelledError( 632 return m_webFrame->client()->cancelledError(
625 m_webFrame, WrappedResourceRequest(request)); 633 m_webFrame, WrappedResourceRequest(request));
626 } 634 }
627 635
628 ResourceError FrameLoaderClientImpl::cannotShowURLError(const ResourceRequest& r equest) 636 ResourceError FrameLoaderClientImpl::cannotShowURLError(const ResourceRequest& r equest)
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
920 m_webFrame->client()->didLoseWebGLContext(m_webFrame, arbRobustnessConte xtLostReason); 928 m_webFrame->client()->didLoseWebGLContext(m_webFrame, arbRobustnessConte xtLostReason);
921 } 929 }
922 930
923 void FrameLoaderClientImpl::dispatchWillInsertBody() 931 void FrameLoaderClientImpl::dispatchWillInsertBody()
924 { 932 {
925 if (m_webFrame->client()) 933 if (m_webFrame->client())
926 m_webFrame->client()->willInsertBody(m_webFrame); 934 m_webFrame->client()->willInsertBody(m_webFrame);
927 } 935 }
928 936
929 } // namespace WebKit 937 } // namespace WebKit
OLDNEW
« no previous file with comments | « Source/WebKit/chromium/src/FrameLoaderClientImpl.h ('k') | Source/WebKit/chromium/src/WebDocument.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698