| 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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 | 316 |
| 317 // May return null. | 317 // May return null. |
| 318 virtual WebPrescientNetworking* prescientNetworking() { return 0; } | 318 virtual WebPrescientNetworking* prescientNetworking() { return 0; } |
| 319 | 319 |
| 320 // Returns a new WebSocketStreamHandle instance. | 320 // Returns a new WebSocketStreamHandle instance. |
| 321 virtual WebSocketStreamHandle* createSocketStreamHandle() { return 0; } | 321 virtual WebSocketStreamHandle* createSocketStreamHandle() { return 0; } |
| 322 | 322 |
| 323 // Returns a new WebSocketHandle instance. | 323 // Returns a new WebSocketHandle instance. |
| 324 virtual WebSocketHandle* createWebSocketHandle() { return 0; } | 324 virtual WebSocketHandle* createWebSocketHandle() { return 0; } |
| 325 | 325 |
| 326 // Returns the User-Agent string that should be used for the given URL. | 326 // Returns the User-Agent string. |
| 327 virtual WebString userAgent(const WebURL&) { return WebString(); } | 327 virtual WebString userAgent() { return WebString(); } |
| 328 | 328 |
| 329 // A suggestion to cache this metadata in association with this URL. | 329 // A suggestion to cache this metadata in association with this URL. |
| 330 virtual void cacheMetadata(const WebURL&, double responseTime, const char* d
ata, size_t dataSize) { } | 330 virtual void cacheMetadata(const WebURL&, double responseTime, const char* d
ata, size_t dataSize) { } |
| 331 | 331 |
| 332 // Returns the decoded data url if url had a supported mimetype and parsing
was successful. | 332 // Returns the decoded data url if url had a supported mimetype and parsing
was successful. |
| 333 virtual WebData parseDataURL(const WebURL&, WebString& mimetype, WebString&
charset) { return WebData(); } | 333 virtual WebData parseDataURL(const WebURL&, WebString& mimetype, WebString&
charset) { return WebData(); } |
| 334 | 334 |
| 335 virtual WebURLError cancelledError(const WebURL&) const { return WebURLError
(); } | 335 virtual WebURLError cancelledError(const WebURL&) const { return WebURLError
(); } |
| 336 | 336 |
| 337 | 337 |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 639 virtual WebDatabaseObserver* databaseObserver() { return 0; } | 639 virtual WebDatabaseObserver* databaseObserver() { return 0; } |
| 640 | 640 |
| 641 | 641 |
| 642 protected: | 642 protected: |
| 643 virtual ~Platform() { } | 643 virtual ~Platform() { } |
| 644 }; | 644 }; |
| 645 | 645 |
| 646 } // namespace blink | 646 } // namespace blink |
| 647 | 647 |
| 648 #endif | 648 #endif |
| OLD | NEW |