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; } | |
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 Loading... | |
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 |
OLD | NEW |