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

Side by Side Diff: Source/core/loader/FrameLoaderClient.h

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
« no previous file with comments | « Source/core/loader/EmptyClients.h ('k') | Source/core/page/UseCounter.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) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
3 * Copyright (C) 2012 Google Inc. All rights reserved. 3 * Copyright (C) 2012 Google 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 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. 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 17 matching lines...) Expand all
28 */ 28 */
29 29
30 #ifndef FrameLoaderClient_h 30 #ifndef FrameLoaderClient_h
31 #define FrameLoaderClient_h 31 #define FrameLoaderClient_h
32 32
33 #include "core/dom/IconURL.h" 33 #include "core/dom/IconURL.h"
34 #include "core/loader/FrameLoaderTypes.h" 34 #include "core/loader/FrameLoaderTypes.h"
35 #include "core/loader/NavigationPolicy.h" 35 #include "core/loader/NavigationPolicy.h"
36 #include "core/page/LayoutMilestones.h" 36 #include "core/page/LayoutMilestones.h"
37 #include "core/platform/network/ResourceLoadPriority.h" 37 #include "core/platform/network/ResourceLoadPriority.h"
38 #include <wtf/Forward.h> 38 #include "wtf/Forward.h"
39 #include <wtf/Vector.h> 39 #include "wtf/HashSet.h"
40 #include "wtf/Vector.h"
40 41
41 typedef class _jobject* jobject; 42 typedef class _jobject* jobject;
42 43
43 namespace v8 { 44 namespace v8 {
44 class Context; 45 class Context;
45 template<class T> class Handle; 46 template<class T> class Handle;
46 } 47 }
47 48
48 namespace WebKit { 49 namespace WebKit {
49 class WebCookieJar; 50 class WebCookieJar;
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 // This frame has displayed inactive content (such as an image) from an 151 // This frame has displayed inactive content (such as an image) from an
151 // insecure source. Inactive content cannot spread to other frames. 152 // insecure source. Inactive content cannot spread to other frames.
152 virtual void didDisplayInsecureContent() = 0; 153 virtual void didDisplayInsecureContent() = 0;
153 154
154 // The indicated security origin has run active content (such as a 155 // The indicated security origin has run active content (such as a
155 // script) from an insecure source. Note that the insecure content can 156 // script) from an insecure source. Note that the insecure content can
156 // spread to other frames in the same origin. 157 // spread to other frames in the same origin.
157 virtual void didRunInsecureContent(SecurityOrigin*, const KURL&) = 0; 158 virtual void didRunInsecureContent(SecurityOrigin*, const KURL&) = 0;
158 virtual void didDetectXSS(const KURL&, bool didBlockEntirePage) = 0; 159 virtual void didDetectXSS(const KURL&, bool didBlockEntirePage) = 0;
159 160
161 #if ENABLE(CSS_CALLBACKS)
162 // Transmits the change in the set of CSS selectors with the
163 // -webkit-callback property that match any element on the frame.
164 virtual void selectorMatchChanged(const Vector<String>& addedSelectors, const Vector<String>& removedSelectors) = 0;
165 #endif
166
160 virtual ResourceError cancelledError(const ResourceRequest&) = 0; 167 virtual ResourceError cancelledError(const ResourceRequest&) = 0;
161 virtual ResourceError cannotShowURLError(const ResourceRequest&) = 0; 168 virtual ResourceError cannotShowURLError(const ResourceRequest&) = 0;
162 virtual ResourceError interruptedForPolicyChangeError(const ResourceRequ est&) = 0; 169 virtual ResourceError interruptedForPolicyChangeError(const ResourceRequ est&) = 0;
163 170
164 virtual ResourceError cannotShowMIMETypeError(const ResourceResponse&) = 0; 171 virtual ResourceError cannotShowMIMETypeError(const ResourceResponse&) = 0;
165 virtual ResourceError fileDoesNotExistError(const ResourceResponse&) = 0 ; 172 virtual ResourceError fileDoesNotExistError(const ResourceResponse&) = 0 ;
166 virtual ResourceError pluginWillHandleLoadError(const ResourceResponse&) = 0; 173 virtual ResourceError pluginWillHandleLoadError(const ResourceResponse&) = 0;
167 174
168 virtual bool shouldFallBack(const ResourceError&) = 0; 175 virtual bool shouldFallBack(const ResourceError&) = 0;
169 176
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 241
235 // If an HTML document is being loaded, informs the embedder that the do cument will have its <body> attached soon. 242 // If an HTML document is being loaded, informs the embedder that the do cument will have its <body> attached soon.
236 virtual void dispatchWillInsertBody() { } 243 virtual void dispatchWillInsertBody() { }
237 244
238 virtual void dispatchDidChangeResourcePriority(unsigned long /*identifie r*/, ResourceLoadPriority) { } 245 virtual void dispatchDidChangeResourcePriority(unsigned long /*identifie r*/, ResourceLoadPriority) { }
239 }; 246 };
240 247
241 } // namespace WebCore 248 } // namespace WebCore
242 249
243 #endif // FrameLoaderClient_h 250 #endif // FrameLoaderClient_h
OLDNEW
« no previous file with comments | « Source/core/loader/EmptyClients.h ('k') | Source/core/page/UseCounter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698