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

Side by Side Diff: Source/Platform/chromium/public/Platform.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/Platform/Platform.gyp/Platform.gyp ('k') | Source/Platform/chromium/src/Platform.cpp » ('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) 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 class WebThemeEngine; 77 class WebThemeEngine;
78 class WebThread; 78 class WebThread;
79 class WebURL; 79 class WebURL;
80 class WebURLLoader; 80 class WebURLLoader;
81 class WebWorkerRunLoop; 81 class WebWorkerRunLoop;
82 struct WebFloatPoint; 82 struct WebFloatPoint;
83 struct WebLocalizedString; 83 struct WebLocalizedString;
84 struct WebSize; 84 struct WebSize;
85 struct WebURLError; 85 struct WebURLError;
86 86
87 class WEBKIT_EXPORT Platform { 87 class Platform {
88 public: 88 public:
89 // HTML5 Database ------------------------------------------------------ 89 // HTML5 Database ------------------------------------------------------
90 90
91 #ifdef WIN32 91 #ifdef WIN32
92 typedef HANDLE FileHandle; 92 typedef HANDLE FileHandle;
93 #else 93 #else
94 typedef int FileHandle; 94 typedef int FileHandle;
95 #endif 95 #endif
96 96
97 WEBKIT_EXPORT static void initialize(Platform*); 97 WEBKIT_EXPORT static void initialize(Platform*);
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 266
267 // Returns a new WebSocketStreamHandle instance. 267 // Returns a new WebSocketStreamHandle instance.
268 virtual WebSocketStreamHandle* createSocketStreamHandle() { return 0; } 268 virtual WebSocketStreamHandle* createSocketStreamHandle() { return 0; }
269 269
270 // Returns the User-Agent string that should be used for the given URL. 270 // Returns the User-Agent string that should be used for the given URL.
271 virtual WebString userAgent(const WebURL&) { return WebString(); } 271 virtual WebString userAgent(const WebURL&) { return WebString(); }
272 272
273 // A suggestion to cache this metadata in association with this URL. 273 // A suggestion to cache this metadata in association with this URL.
274 virtual void cacheMetadata(const WebURL&, double responseTime, const char* d ata, size_t dataSize) { } 274 virtual void cacheMetadata(const WebURL&, double responseTime, const char* d ata, size_t dataSize) { }
275 275
276 virtual WebURLError cancelledError(const WebURL&) const;
277
278 276
279 // Plugins ------------------------------------------------------------- 277 // Plugins -------------------------------------------------------------
280 278
281 // 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
282 // satisfy this call. 280 // satisfy this call.
283 virtual void getPluginList(bool refresh, WebPluginListBuilder*) { } 281 virtual void getPluginList(bool refresh, WebPluginListBuilder*) { }
284 282
285 283
286 // Resources ----------------------------------------------------------- 284 // Resources -----------------------------------------------------------
287 285
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 virtual void didStartWorkerRunLoop(const WebWorkerRunLoop&) { } 512 virtual void didStartWorkerRunLoop(const WebWorkerRunLoop&) { }
515 virtual void didStopWorkerRunLoop(const WebWorkerRunLoop&) { } 513 virtual void didStopWorkerRunLoop(const WebWorkerRunLoop&) { }
516 514
517 protected: 515 protected:
518 virtual ~Platform() { } 516 virtual ~Platform() { }
519 }; 517 };
520 518
521 } // namespace WebKit 519 } // namespace WebKit
522 520
523 #endif 521 #endif
OLDNEW
« no previous file with comments | « Source/Platform/Platform.gyp/Platform.gyp ('k') | Source/Platform/chromium/src/Platform.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698