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

Side by Side Diff: Source/WebCore/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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 129
130 virtual void dispatchDidLayout(LayoutMilestones) { } 130 virtual void dispatchDidLayout(LayoutMilestones) { }
131 131
132 virtual Frame* dispatchCreatePage(const NavigationAction&) = 0; 132 virtual Frame* dispatchCreatePage(const NavigationAction&) = 0;
133 virtual void dispatchShow() = 0; 133 virtual void dispatchShow() = 0;
134 134
135 virtual void dispatchDecidePolicyForResponse(FramePolicyFunction, const ResourceResponse&, const ResourceRequest&) = 0; 135 virtual void dispatchDecidePolicyForResponse(FramePolicyFunction, const ResourceResponse&, const ResourceRequest&) = 0;
136 virtual void dispatchDecidePolicyForNewWindowAction(FramePolicyFunction, const NavigationAction&, const ResourceRequest&, PassRefPtr<FormState>, const S tring& frameName) = 0; 136 virtual void dispatchDecidePolicyForNewWindowAction(FramePolicyFunction, const NavigationAction&, const ResourceRequest&, PassRefPtr<FormState>, const S tring& frameName) = 0;
137 virtual void dispatchDecidePolicyForNavigationAction(FramePolicyFunction , const NavigationAction&, const ResourceRequest&, PassRefPtr<FormState>) = 0; 137 virtual void dispatchDecidePolicyForNavigationAction(FramePolicyFunction , const NavigationAction&, const ResourceRequest&, PassRefPtr<FormState>) = 0;
138 138
139 virtual void dispatchUnableToImplementPolicy(const ResourceError&) = 0;
140
141 virtual void dispatchWillRequestResource(CachedResourceRequest*) { } 139 virtual void dispatchWillRequestResource(CachedResourceRequest*) { }
142 140
143 virtual void dispatchWillSendSubmitEvent(PassRefPtr<FormState>) = 0; 141 virtual void dispatchWillSendSubmitEvent(PassRefPtr<FormState>) = 0;
144 virtual void dispatchWillSubmitForm(FramePolicyFunction, PassRefPtr<Form State>) = 0; 142 virtual void dispatchWillSubmitForm(FramePolicyFunction, PassRefPtr<Form State>) = 0;
145 143
146 virtual void setMainDocumentError(DocumentLoader*, const ResourceError&) = 0; 144 virtual void setMainDocumentError(DocumentLoader*, const ResourceError&) = 0;
147 145
148 // Maybe these should go into a ProgressTrackerClient some day 146 // Maybe these should go into a ProgressTrackerClient some day
149 virtual void postProgressStartedNotification() = 0; 147 virtual void postProgressStartedNotification() = 0;
150 virtual void postProgressEstimateChangedNotification() = 0; 148 virtual void postProgressEstimateChangedNotification() = 0;
(...skipping 20 matching lines...) Expand all
171 // This frame has displayed inactive content (such as an image) from an 169 // This frame has displayed inactive content (such as an image) from an
172 // insecure source. Inactive content cannot spread to other frames. 170 // insecure source. Inactive content cannot spread to other frames.
173 virtual void didDisplayInsecureContent() = 0; 171 virtual void didDisplayInsecureContent() = 0;
174 172
175 // The indicated security origin has run active content (such as a 173 // The indicated security origin has run active content (such as a
176 // script) from an insecure source. Note that the insecure content can 174 // script) from an insecure source. Note that the insecure content can
177 // spread to other frames in the same origin. 175 // spread to other frames in the same origin.
178 virtual void didRunInsecureContent(SecurityOrigin*, const KURL&) = 0; 176 virtual void didRunInsecureContent(SecurityOrigin*, const KURL&) = 0;
179 virtual void didDetectXSS(const KURL&, bool didBlockEntirePage) = 0; 177 virtual void didDetectXSS(const KURL&, bool didBlockEntirePage) = 0;
180 178
181 virtual ResourceError cancelledError(const ResourceRequest&) = 0;
182 virtual ResourceError cannotShowURLError(const ResourceRequest&) = 0;
183 virtual ResourceError interruptedForPolicyChangeError(const ResourceRequ est&) = 0;
184
185 virtual ResourceError cannotShowMIMETypeError(const ResourceResponse&) = 0;
186 virtual ResourceError fileDoesNotExistError(const ResourceResponse&) = 0 ;
187 virtual ResourceError pluginWillHandleLoadError(const ResourceResponse&) = 0;
188
189 virtual bool shouldFallBack(const ResourceError&) = 0;
190
191 virtual bool canHandleRequest(const ResourceRequest&) const = 0;
192 virtual bool canShowMIMEType(const String& MIMEType) const = 0; 179 virtual bool canShowMIMEType(const String& MIMEType) const = 0;
193 virtual String generatedMIMETypeForURLScheme(const String& URLScheme) co nst = 0; 180 virtual String generatedMIMETypeForURLScheme(const String& URLScheme) co nst = 0;
194 181
195 virtual void didFinishLoad() = 0; 182 virtual void didFinishLoad() = 0;
196 183
197 virtual PassRefPtr<DocumentLoader> createDocumentLoader(const ResourceRe quest&, const SubstituteData&) = 0; 184 virtual PassRefPtr<DocumentLoader> createDocumentLoader(const ResourceRe quest&, const SubstituteData&) = 0;
198 185
199 virtual String userAgent(const KURL&) = 0; 186 virtual String userAgent(const KURL&) = 0;
200 187
201 virtual String doNotTrackValue() = 0; 188 virtual String doNotTrackValue() = 0;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 246
260 // 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.
261 virtual void dispatchWillInsertBody() { } 248 virtual void dispatchWillInsertBody() { }
262 249
263 virtual void dispatchDidChangeResourcePriority(unsigned long /*identifie r*/, ResourceLoadPriority) { } 250 virtual void dispatchDidChangeResourcePriority(unsigned long /*identifie r*/, ResourceLoadPriority) { }
264 }; 251 };
265 252
266 } // namespace WebCore 253 } // namespace WebCore
267 254
268 #endif // FrameLoaderClient_h 255 #endif // FrameLoaderClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698