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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 virtual void dispatchDidFinishLoad() = 0; | 122 virtual void dispatchDidFinishLoad() = 0; |
123 | 123 |
124 virtual void dispatchDidLayout(LayoutMilestones) { } | 124 virtual void dispatchDidLayout(LayoutMilestones) { } |
125 | 125 |
126 virtual Frame* dispatchCreatePage(const NavigationAction&) = 0; | 126 virtual Frame* dispatchCreatePage(const NavigationAction&) = 0; |
127 virtual void dispatchShow() = 0; | 127 virtual void dispatchShow() = 0; |
128 | 128 |
129 virtual void dispatchDecidePolicyForNewWindowAction(FramePolicyFunction,
const NavigationAction&, const ResourceRequest&, PassRefPtr<FormState>, const S
tring& frameName) = 0; | 129 virtual void dispatchDecidePolicyForNewWindowAction(FramePolicyFunction,
const NavigationAction&, const ResourceRequest&, PassRefPtr<FormState>, const S
tring& frameName) = 0; |
130 virtual void dispatchDecidePolicyForNavigationAction(FramePolicyFunction
, const NavigationAction&, const ResourceRequest&, PassRefPtr<FormState>) = 0; | 130 virtual void dispatchDecidePolicyForNavigationAction(FramePolicyFunction
, const NavigationAction&, const ResourceRequest&, PassRefPtr<FormState>) = 0; |
131 | 131 |
132 virtual void dispatchUnableToImplementPolicy(const ResourceError&) = 0; | |
133 | |
134 virtual void dispatchWillRequestResource(CachedResourceRequest*) { } | 132 virtual void dispatchWillRequestResource(CachedResourceRequest*) { } |
135 | 133 |
136 virtual void dispatchWillSendSubmitEvent(PassRefPtr<FormState>) = 0; | 134 virtual void dispatchWillSendSubmitEvent(PassRefPtr<FormState>) = 0; |
137 virtual void dispatchWillSubmitForm(PassRefPtr<FormState>) = 0; | 135 virtual void dispatchWillSubmitForm(PassRefPtr<FormState>) = 0; |
138 | 136 |
139 virtual void setMainDocumentError(DocumentLoader*, const ResourceError&)
= 0; | 137 virtual void setMainDocumentError(DocumentLoader*, const ResourceError&)
= 0; |
140 | 138 |
141 // Maybe these should go into a ProgressTrackerClient some day | 139 // Maybe these should go into a ProgressTrackerClient some day |
142 virtual void postProgressStartedNotification() = 0; | 140 virtual void postProgressStartedNotification() = 0; |
143 virtual void postProgressEstimateChangedNotification() = 0; | 141 virtual void postProgressEstimateChangedNotification() = 0; |
(...skipping 20 matching lines...) Expand all Loading... |
164 // This frame has displayed inactive content (such as an image) from an | 162 // This frame has displayed inactive content (such as an image) from an |
165 // insecure source. Inactive content cannot spread to other frames. | 163 // insecure source. Inactive content cannot spread to other frames. |
166 virtual void didDisplayInsecureContent() = 0; | 164 virtual void didDisplayInsecureContent() = 0; |
167 | 165 |
168 // The indicated security origin has run active content (such as a | 166 // The indicated security origin has run active content (such as a |
169 // script) from an insecure source. Note that the insecure content can | 167 // script) from an insecure source. Note that the insecure content can |
170 // spread to other frames in the same origin. | 168 // spread to other frames in the same origin. |
171 virtual void didRunInsecureContent(SecurityOrigin*, const KURL&) = 0; | 169 virtual void didRunInsecureContent(SecurityOrigin*, const KURL&) = 0; |
172 virtual void didDetectXSS(const KURL&, bool didBlockEntirePage) = 0; | 170 virtual void didDetectXSS(const KURL&, bool didBlockEntirePage) = 0; |
173 | 171 |
174 virtual ResourceError cancelledError(const ResourceRequest&) = 0; | |
175 virtual ResourceError cannotShowURLError(const ResourceRequest&) = 0; | |
176 virtual ResourceError interruptedForPolicyChangeError(const ResourceRequ
est&) = 0; | 172 virtual ResourceError interruptedForPolicyChangeError(const ResourceRequ
est&) = 0; |
177 | |
178 virtual ResourceError cannotShowMIMETypeError(const ResourceResponse&) =
0; | |
179 virtual ResourceError fileDoesNotExistError(const ResourceResponse&) = 0
; | |
180 virtual ResourceError pluginWillHandleLoadError(const ResourceResponse&)
= 0; | |
181 | |
182 virtual bool shouldFallBack(const ResourceError&) = 0; | |
183 | |
184 virtual bool canHandleRequest(const ResourceRequest&) const = 0; | |
185 virtual bool canShowMIMEType(const String& MIMEType) const = 0; | 173 virtual bool canShowMIMEType(const String& MIMEType) const = 0; |
186 virtual String generatedMIMETypeForURLScheme(const String& URLScheme) co
nst = 0; | 174 virtual String generatedMIMETypeForURLScheme(const String& URLScheme) co
nst = 0; |
187 | 175 |
188 virtual void didFinishLoad() = 0; | 176 virtual void didFinishLoad() = 0; |
189 | 177 |
190 virtual PassRefPtr<DocumentLoader> createDocumentLoader(const ResourceRe
quest&, const SubstituteData&) = 0; | 178 virtual PassRefPtr<DocumentLoader> createDocumentLoader(const ResourceRe
quest&, const SubstituteData&) = 0; |
191 | 179 |
192 virtual String userAgent(const KURL&) = 0; | 180 virtual String userAgent(const KURL&) = 0; |
193 | 181 |
194 virtual String doNotTrackValue() = 0; | 182 virtual String doNotTrackValue() = 0; |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 | 240 |
253 // 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. |
254 virtual void dispatchWillInsertBody() { } | 242 virtual void dispatchWillInsertBody() { } |
255 | 243 |
256 virtual void dispatchDidChangeResourcePriority(unsigned long /*identifie
r*/, ResourceLoadPriority) { } | 244 virtual void dispatchDidChangeResourcePriority(unsigned long /*identifie
r*/, ResourceLoadPriority) { } |
257 }; | 245 }; |
258 | 246 |
259 } // namespace WebCore | 247 } // namespace WebCore |
260 | 248 |
261 #endif // FrameLoaderClient_h | 249 #endif // FrameLoaderClient_h |
OLD | NEW |