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

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

Issue 14495011: Revert "Create errors (especially cancellation errors) internally to WebCore, rather" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 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
« no previous file with comments | « Source/core/loader/DocumentLoader.cpp ('k') | Source/core/loader/FrameLoader.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Eric Seidel (eric@webkit.org) 2 * Copyright (C) 2006 Eric Seidel (eric@webkit.org)
3 * Copyright (C) 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
5 * Copyright (C) 2012 Samsung Electronics. All rights reserved. 5 * Copyright (C) 2012 Samsung Electronics. All rights reserved.
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 virtual void dispatchDidFinishDocumentLoad() { } 230 virtual void dispatchDidFinishDocumentLoad() { }
231 virtual void dispatchDidFinishLoad() { } 231 virtual void dispatchDidFinishLoad() { }
232 virtual void dispatchDidLayout(LayoutMilestones) { } 232 virtual void dispatchDidLayout(LayoutMilestones) { }
233 233
234 virtual Frame* dispatchCreatePage(const NavigationAction&) { return 0; } 234 virtual Frame* dispatchCreatePage(const NavigationAction&) { return 0; }
235 virtual void dispatchShow() { } 235 virtual void dispatchShow() { }
236 236
237 virtual PolicyAction policyForNewWindowAction(const NavigationAction&, const String&) OVERRIDE; 237 virtual PolicyAction policyForNewWindowAction(const NavigationAction&, const String&) OVERRIDE;
238 virtual PolicyAction decidePolicyForNavigationAction(const NavigationAction& , const ResourceRequest&) OVERRIDE; 238 virtual PolicyAction decidePolicyForNavigationAction(const NavigationAction& , const ResourceRequest&) OVERRIDE;
239 239
240 virtual void dispatchUnableToImplementPolicy(const ResourceError&) { }
241
240 virtual void dispatchWillSendSubmitEvent(PassRefPtr<FormState>) OVERRIDE; 242 virtual void dispatchWillSendSubmitEvent(PassRefPtr<FormState>) OVERRIDE;
241 virtual void dispatchWillSubmitForm(PassRefPtr<FormState>) OVERRIDE; 243 virtual void dispatchWillSubmitForm(PassRefPtr<FormState>) OVERRIDE;
242 244
243 virtual void setMainDocumentError(DocumentLoader*, const ResourceError&) { } 245 virtual void setMainDocumentError(DocumentLoader*, const ResourceError&) { }
244 246
245 virtual void postProgressStartedNotification() { } 247 virtual void postProgressStartedNotification() { }
246 virtual void postProgressEstimateChangedNotification() { } 248 virtual void postProgressEstimateChangedNotification() { }
247 virtual void postProgressFinishedNotification() { } 249 virtual void postProgressFinishedNotification() { }
248 250
249 virtual void startDownload(const ResourceRequest&, const String& suggestedNa me = String()) { UNUSED_PARAM(suggestedName); } 251 virtual void startDownload(const ResourceRequest&, const String& suggestedNa me = String()) { UNUSED_PARAM(suggestedName); }
250 252
251 virtual void committedLoad(DocumentLoader*, const char*, int) { } 253 virtual void committedLoad(DocumentLoader*, const char*, int) { }
252 virtual void finishedLoading(DocumentLoader*) { } 254 virtual void finishedLoading(DocumentLoader*) { }
255
256 virtual ResourceError cancelledError(const ResourceRequest&) { ResourceError error("", 0, "", ""); error.setIsCancellation(true); return error; }
257 virtual ResourceError cannotShowURLError(const ResourceRequest&) { return Re sourceError("", 0, "", ""); }
253 virtual ResourceError interruptedForPolicyChangeError(const ResourceRequest& ) { return ResourceError("", 0, "", ""); } 258 virtual ResourceError interruptedForPolicyChangeError(const ResourceRequest& ) { return ResourceError("", 0, "", ""); }
254 259
260 virtual ResourceError cannotShowMIMETypeError(const ResourceResponse&) { ret urn ResourceError("", 0, "", ""); }
261 virtual ResourceError fileDoesNotExistError(const ResourceResponse&) { retur n ResourceError("", 0, "", ""); }
262 virtual ResourceError pluginWillHandleLoadError(const ResourceResponse&) { r eturn ResourceError("", 0, "", ""); }
263
264 virtual bool shouldFallBack(const ResourceError&) { return false; }
265
266 virtual bool canHandleRequest(const ResourceRequest&) const { return false; }
255 virtual bool canShowMIMEType(const String&) const { return false; } 267 virtual bool canShowMIMEType(const String&) const { return false; }
256 virtual String generatedMIMETypeForURLScheme(const String&) const { return " "; } 268 virtual String generatedMIMETypeForURLScheme(const String&) const { return " "; }
257 269
258 virtual bool shouldTreatURLAsSameAsCurrent(const KURL&) const { return false ; } 270 virtual bool shouldTreatURLAsSameAsCurrent(const KURL&) const { return false ; }
259 virtual void didFinishLoad() { } 271 virtual void didFinishLoad() { }
260 272
261 virtual PassRefPtr<DocumentLoader> createDocumentLoader(const ResourceReques t&, const SubstituteData&) OVERRIDE; 273 virtual PassRefPtr<DocumentLoader> createDocumentLoader(const ResourceReques t&, const SubstituteData&) OVERRIDE;
262 274
263 virtual String userAgent(const KURL&) { return ""; } 275 virtual String userAgent(const KURL&) { return ""; }
264 276
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 virtual int forwardListCount() { return 0; } 484 virtual int forwardListCount() { return 0; }
473 virtual bool isActive() { return false; } 485 virtual bool isActive() { return false; }
474 virtual void close() { } 486 virtual void close() { }
475 }; 487 };
476 488
477 void fillWithEmptyClients(Page::PageClients&); 489 void fillWithEmptyClients(Page::PageClients&);
478 490
479 } 491 }
480 492
481 #endif // EmptyClients_h 493 #endif // EmptyClients_h
OLDNEW
« no previous file with comments | « Source/core/loader/DocumentLoader.cpp ('k') | Source/core/loader/FrameLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698