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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 virtual void dispatchDidFinishLoad() = 0; | 116 virtual void dispatchDidFinishLoad() = 0; |
117 | 117 |
118 virtual void dispatchDidLayout(LayoutMilestones) { } | 118 virtual void dispatchDidLayout(LayoutMilestones) { } |
119 | 119 |
120 virtual Frame* dispatchCreatePage(const NavigationAction&) = 0; | 120 virtual Frame* dispatchCreatePage(const NavigationAction&) = 0; |
121 virtual void dispatchShow() = 0; | 121 virtual void dispatchShow() = 0; |
122 | 122 |
123 virtual PolicyAction policyForNewWindowAction(const NavigationAction&, c
onst String& frameName) = 0; | 123 virtual PolicyAction policyForNewWindowAction(const NavigationAction&, c
onst String& frameName) = 0; |
124 virtual PolicyAction decidePolicyForNavigationAction(const NavigationAct
ion&, const ResourceRequest&) = 0; | 124 virtual PolicyAction decidePolicyForNavigationAction(const NavigationAct
ion&, const ResourceRequest&) = 0; |
125 | 125 |
| 126 virtual void dispatchUnableToImplementPolicy(const ResourceError&) = 0; |
| 127 |
126 virtual void dispatchWillRequestResource(CachedResourceRequest*) { } | 128 virtual void dispatchWillRequestResource(CachedResourceRequest*) { } |
127 | 129 |
128 virtual void dispatchWillSendSubmitEvent(PassRefPtr<FormState>) = 0; | 130 virtual void dispatchWillSendSubmitEvent(PassRefPtr<FormState>) = 0; |
129 virtual void dispatchWillSubmitForm(PassRefPtr<FormState>) = 0; | 131 virtual void dispatchWillSubmitForm(PassRefPtr<FormState>) = 0; |
130 | 132 |
131 virtual void setMainDocumentError(DocumentLoader*, const ResourceError&)
= 0; | 133 virtual void setMainDocumentError(DocumentLoader*, const ResourceError&)
= 0; |
132 | 134 |
133 // Maybe these should go into a ProgressTrackerClient some day | 135 // Maybe these should go into a ProgressTrackerClient some day |
134 virtual void postProgressStartedNotification() = 0; | 136 virtual void postProgressStartedNotification() = 0; |
135 virtual void postProgressEstimateChangedNotification() = 0; | 137 virtual void postProgressEstimateChangedNotification() = 0; |
(...skipping 20 matching lines...) Expand all Loading... |
156 // This frame has displayed inactive content (such as an image) from an | 158 // This frame has displayed inactive content (such as an image) from an |
157 // insecure source. Inactive content cannot spread to other frames. | 159 // insecure source. Inactive content cannot spread to other frames. |
158 virtual void didDisplayInsecureContent() = 0; | 160 virtual void didDisplayInsecureContent() = 0; |
159 | 161 |
160 // The indicated security origin has run active content (such as a | 162 // The indicated security origin has run active content (such as a |
161 // script) from an insecure source. Note that the insecure content can | 163 // script) from an insecure source. Note that the insecure content can |
162 // spread to other frames in the same origin. | 164 // spread to other frames in the same origin. |
163 virtual void didRunInsecureContent(SecurityOrigin*, const KURL&) = 0; | 165 virtual void didRunInsecureContent(SecurityOrigin*, const KURL&) = 0; |
164 virtual void didDetectXSS(const KURL&, bool didBlockEntirePage) = 0; | 166 virtual void didDetectXSS(const KURL&, bool didBlockEntirePage) = 0; |
165 | 167 |
| 168 virtual ResourceError cancelledError(const ResourceRequest&) = 0; |
| 169 virtual ResourceError cannotShowURLError(const ResourceRequest&) = 0; |
166 virtual ResourceError interruptedForPolicyChangeError(const ResourceRequ
est&) = 0; | 170 virtual ResourceError interruptedForPolicyChangeError(const ResourceRequ
est&) = 0; |
| 171 |
| 172 virtual ResourceError cannotShowMIMETypeError(const ResourceResponse&) =
0; |
| 173 virtual ResourceError fileDoesNotExistError(const ResourceResponse&) = 0
; |
| 174 virtual ResourceError pluginWillHandleLoadError(const ResourceResponse&)
= 0; |
| 175 |
| 176 virtual bool shouldFallBack(const ResourceError&) = 0; |
| 177 |
| 178 virtual bool canHandleRequest(const ResourceRequest&) const = 0; |
167 virtual bool canShowMIMEType(const String& MIMEType) const = 0; | 179 virtual bool canShowMIMEType(const String& MIMEType) const = 0; |
168 virtual String generatedMIMETypeForURLScheme(const String& URLScheme) co
nst = 0; | 180 virtual String generatedMIMETypeForURLScheme(const String& URLScheme) co
nst = 0; |
169 | 181 |
170 virtual void didFinishLoad() = 0; | 182 virtual void didFinishLoad() = 0; |
171 | 183 |
172 virtual PassRefPtr<DocumentLoader> createDocumentLoader(const ResourceRe
quest&, const SubstituteData&) = 0; | 184 virtual PassRefPtr<DocumentLoader> createDocumentLoader(const ResourceRe
quest&, const SubstituteData&) = 0; |
173 | 185 |
174 virtual String userAgent(const KURL&) = 0; | 186 virtual String userAgent(const KURL&) = 0; |
175 | 187 |
176 virtual String doNotTrackValue() = 0; | 188 virtual String doNotTrackValue() = 0; |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 | 246 |
235 // If an HTML document is being loaded, informs the embedder that the do
cument will have its <body> attached soon. | 247 // If an HTML document is being loaded, informs the embedder that the do
cument will have its <body> attached soon. |
236 virtual void dispatchWillInsertBody() { } | 248 virtual void dispatchWillInsertBody() { } |
237 | 249 |
238 virtual void dispatchDidChangeResourcePriority(unsigned long /*identifie
r*/, ResourceLoadPriority) { } | 250 virtual void dispatchDidChangeResourcePriority(unsigned long /*identifie
r*/, ResourceLoadPriority) { } |
239 }; | 251 }; |
240 | 252 |
241 } // namespace WebCore | 253 } // namespace WebCore |
242 | 254 |
243 #endif // FrameLoaderClient_h | 255 #endif // FrameLoaderClient_h |
OLD | NEW |