OLD | NEW |
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 Loading... |
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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 // This frame has displayed inactive content (such as an image) from an | 152 // This frame has displayed inactive content (such as an image) from an |
152 // insecure source. Inactive content cannot spread to other frames. | 153 // insecure source. Inactive content cannot spread to other frames. |
153 virtual void didDisplayInsecureContent() = 0; | 154 virtual void didDisplayInsecureContent() = 0; |
154 | 155 |
155 // The indicated security origin has run active content (such as a | 156 // The indicated security origin has run active content (such as a |
156 // script) from an insecure source. Note that the insecure content can | 157 // script) from an insecure source. Note that the insecure content can |
157 // spread to other frames in the same origin. | 158 // spread to other frames in the same origin. |
158 virtual void didRunInsecureContent(SecurityOrigin*, const KURL&) = 0; | 159 virtual void didRunInsecureContent(SecurityOrigin*, const KURL&) = 0; |
159 virtual void didDetectXSS(const KURL&, bool didBlockEntirePage) = 0; | 160 virtual void didDetectXSS(const KURL&, bool didBlockEntirePage) = 0; |
160 | 161 |
| 162 // Transmits the change in the set of watched CSS selectors property |
| 163 // that match any element on the frame. |
| 164 virtual void selectorMatchChanged(const Vector<String>& addedSelectors,
const Vector<String>& removedSelectors) = 0; |
| 165 |
161 virtual ResourceError cancelledError(const ResourceRequest&) = 0; | 166 virtual ResourceError cancelledError(const ResourceRequest&) = 0; |
162 virtual ResourceError cannotShowURLError(const ResourceRequest&) = 0; | 167 virtual ResourceError cannotShowURLError(const ResourceRequest&) = 0; |
163 virtual ResourceError interruptedForPolicyChangeError(const ResourceRequ
est&) = 0; | 168 virtual ResourceError interruptedForPolicyChangeError(const ResourceRequ
est&) = 0; |
164 | 169 |
165 virtual ResourceError cannotShowMIMETypeError(const ResourceResponse&) =
0; | 170 virtual ResourceError cannotShowMIMETypeError(const ResourceResponse&) =
0; |
166 virtual ResourceError fileDoesNotExistError(const ResourceResponse&) = 0
; | 171 virtual ResourceError fileDoesNotExistError(const ResourceResponse&) = 0
; |
167 virtual ResourceError pluginWillHandleLoadError(const ResourceResponse&)
= 0; | 172 virtual ResourceError pluginWillHandleLoadError(const ResourceResponse&)
= 0; |
168 | 173 |
169 virtual bool shouldFallBack(const ResourceError&) = 0; | 174 virtual bool shouldFallBack(const ResourceError&) = 0; |
170 | 175 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 | 240 |
236 // If an HTML document is being loaded, informs the embedder that the do
cument will have its <body> attached soon. | 241 // If an HTML document is being loaded, informs the embedder that the do
cument will have its <body> attached soon. |
237 virtual void dispatchWillInsertBody() { } | 242 virtual void dispatchWillInsertBody() { } |
238 | 243 |
239 virtual void dispatchDidChangeResourcePriority(unsigned long /*identifie
r*/, ResourceLoadPriority) { } | 244 virtual void dispatchDidChangeResourcePriority(unsigned long /*identifie
r*/, ResourceLoadPriority) { } |
240 }; | 245 }; |
241 | 246 |
242 } // namespace WebCore | 247 } // namespace WebCore |
243 | 248 |
244 #endif // FrameLoaderClient_h | 249 #endif // FrameLoaderClient_h |
OLD | NEW |