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

Side by Side Diff: Source/Platform/chromium/public/Platform.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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 265
266 // Returns a new WebSocketStreamHandle instance. 266 // Returns a new WebSocketStreamHandle instance.
267 virtual WebSocketStreamHandle* createSocketStreamHandle() { return 0; } 267 virtual WebSocketStreamHandle* createSocketStreamHandle() { return 0; }
268 268
269 // Returns the User-Agent string that should be used for the given URL. 269 // Returns the User-Agent string that should be used for the given URL.
270 virtual WebString userAgent(const WebURL&) { return WebString(); } 270 virtual WebString userAgent(const WebURL&) { return WebString(); }
271 271
272 // A suggestion to cache this metadata in association with this URL. 272 // A suggestion to cache this metadata in association with this URL.
273 virtual void cacheMetadata(const WebURL&, double responseTime, const char* d ata, size_t dataSize) { } 273 virtual void cacheMetadata(const WebURL&, double responseTime, const char* d ata, size_t dataSize) { }
274 274
275 virtual int cancelledErrorCode() const { return 0; }
darin (slow to review) 2013/04/17 18:58:11 nit: two new lines at the end of a section :)
275 276
276 // Plugins ------------------------------------------------------------- 277 // Plugins -------------------------------------------------------------
277 278
278 // If refresh is true, then cached information should not be used to 279 // If refresh is true, then cached information should not be used to
279 // satisfy this call. 280 // satisfy this call.
280 virtual void getPluginList(bool refresh, WebPluginListBuilder*) { } 281 virtual void getPluginList(bool refresh, WebPluginListBuilder*) { }
281 282
282 283
283 // Resources ----------------------------------------------------------- 284 // Resources -----------------------------------------------------------
284 285
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 virtual void didStartWorkerRunLoop(const WebWorkerRunLoop&) { } 512 virtual void didStartWorkerRunLoop(const WebWorkerRunLoop&) { }
512 virtual void didStopWorkerRunLoop(const WebWorkerRunLoop&) { } 513 virtual void didStopWorkerRunLoop(const WebWorkerRunLoop&) { }
513 514
514 protected: 515 protected:
515 virtual ~Platform() { } 516 virtual ~Platform() { }
516 }; 517 };
517 518
518 } // namespace WebKit 519 } // namespace WebKit
519 520
520 #endif 521 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698