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

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

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

Powered by Google App Engine
This is Rietveld 408576698