| 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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 // May return null. | 301 // May return null. |
| 302 virtual WebPrescientNetworking* prescientNetworking() { return nullptr; } | 302 virtual WebPrescientNetworking* prescientNetworking() { return nullptr; } |
| 303 | 303 |
| 304 // Returns a new WebSocketHandle instance. | 304 // Returns a new WebSocketHandle instance. |
| 305 virtual WebSocketHandle* createWebSocketHandle() { return nullptr; } | 305 virtual WebSocketHandle* createWebSocketHandle() { return nullptr; } |
| 306 | 306 |
| 307 // Returns the User-Agent string. | 307 // Returns the User-Agent string. |
| 308 virtual WebString userAgent() { return WebString(); } | 308 virtual WebString userAgent() { return WebString(); } |
| 309 | 309 |
| 310 // A suggestion to cache this metadata in association with this URL. | 310 // A suggestion to cache this metadata in association with this URL. |
| 311 virtual void cacheMetadata(const WebURL&, int64_t responseTime, const char*
data, size_t dataSize) { } | 311 virtual void cacheMetadata(const WebURL&, int64_t responseTime, const char*
data, size_t dataSize) {} |
| 312 |
| 313 // A suggestion to cache this metadata in association with this URL which re
source is in CacheStorage. |
| 314 virtual void cacheMetadataInCacheStorage(const WebURL&, int64_t responseTime
, const char* data, size_t dataSize, const blink::WebSecurityOrigin& cacheStorag
eOrigin, const WebString& cacheStorageCacheName) {} |
| 312 | 315 |
| 313 // Returns the decoded data url if url had a supported mimetype and parsing
was successful. | 316 // Returns the decoded data url if url had a supported mimetype and parsing
was successful. |
| 314 virtual WebData parseDataURL(const WebURL&, WebString& mimetype, WebString&
charset) { return WebData(); } | 317 virtual WebData parseDataURL(const WebURL&, WebString& mimetype, WebString&
charset) { return WebData(); } |
| 315 | 318 |
| 316 virtual WebURLError cancelledError(const WebURL&) const { return WebURLError
(); } | 319 virtual WebURLError cancelledError(const WebURL&) const { return WebURLError
(); } |
| 317 | 320 |
| 318 // Returns true and stores the position of the end of the headers to |*end| | 321 // Returns true and stores the position of the end of the headers to |*end| |
| 319 // if the headers part ends in |bytes[0..size]|. Returns false otherwise. | 322 // if the headers part ends in |bytes[0..size]|. Returns false otherwise. |
| 320 virtual bool parseMultipartHeadersFromBody(const char* bytes, size_t /* size
*/, WebURLResponse*, size_t* end) const { return false; } | 323 virtual bool parseMultipartHeadersFromBody(const char* bytes, size_t /* size
*/, WebURLResponse*, size_t* end) const { return false; } |
| 321 | 324 |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 621 protected: | 624 protected: |
| 622 Platform(); | 625 Platform(); |
| 623 virtual ~Platform() { } | 626 virtual ~Platform() { } |
| 624 | 627 |
| 625 WebThread* m_mainThread; | 628 WebThread* m_mainThread; |
| 626 }; | 629 }; |
| 627 | 630 |
| 628 } // namespace blink | 631 } // namespace blink |
| 629 | 632 |
| 630 #endif | 633 #endif |
| OLD | NEW |