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

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

Powered by Google App Engine
This is Rietveld 408576698