OLD | NEW |
---|---|
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 Loading... | |
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; } | |
276 virtual const char* cancelledErrorDomain() const { return "net"; } | |
Nate Chapin
2013/04/22 16:13:41
It may be cheating to have Platform calls for both
| |
277 | |
275 | 278 |
276 // Plugins ------------------------------------------------------------- | 279 // Plugins ------------------------------------------------------------- |
277 | 280 |
278 // If refresh is true, then cached information should not be used to | 281 // If refresh is true, then cached information should not be used to |
279 // satisfy this call. | 282 // satisfy this call. |
280 virtual void getPluginList(bool refresh, WebPluginListBuilder*) { } | 283 virtual void getPluginList(bool refresh, WebPluginListBuilder*) { } |
281 | 284 |
282 | 285 |
283 // Resources ----------------------------------------------------------- | 286 // Resources ----------------------------------------------------------- |
284 | 287 |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
511 virtual void didStartWorkerRunLoop(const WebWorkerRunLoop&) { } | 514 virtual void didStartWorkerRunLoop(const WebWorkerRunLoop&) { } |
512 virtual void didStopWorkerRunLoop(const WebWorkerRunLoop&) { } | 515 virtual void didStopWorkerRunLoop(const WebWorkerRunLoop&) { } |
513 | 516 |
514 protected: | 517 protected: |
515 virtual ~Platform() { } | 518 virtual ~Platform() { } |
516 }; | 519 }; |
517 | 520 |
518 } // namespace WebKit | 521 } // namespace WebKit |
519 | 522 |
520 #endif | 523 #endif |
OLD | NEW |