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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 // May return null. | 313 // May return null. |
314 virtual WebPrescientNetworking* prescientNetworking() { return nullptr; } | 314 virtual WebPrescientNetworking* prescientNetworking() { return nullptr; } |
315 | 315 |
316 // Returns a new WebSocketHandle instance. | 316 // Returns a new WebSocketHandle instance. |
317 virtual WebSocketHandle* createWebSocketHandle() { return nullptr; } | 317 virtual WebSocketHandle* createWebSocketHandle() { return nullptr; } |
318 | 318 |
319 // Returns the User-Agent string. | 319 // Returns the User-Agent string. |
320 virtual WebString userAgent() { return WebString(); } | 320 virtual WebString userAgent() { return WebString(); } |
321 | 321 |
322 // A suggestion to cache this metadata in association with this URL. | 322 // A suggestion to cache this metadata in association with this URL. |
323 virtual void cacheMetadata(const WebURL&, int64 responseTime, const char* da
ta, size_t dataSize) { } | 323 virtual void cacheMetadata(const WebURL&, int64_t responseTime, const char*
data, size_t dataSize) { } |
324 | 324 |
325 // Returns the decoded data url if url had a supported mimetype and parsing
was successful. | 325 // Returns the decoded data url if url had a supported mimetype and parsing
was successful. |
326 virtual WebData parseDataURL(const WebURL&, WebString& mimetype, WebString&
charset) { return WebData(); } | 326 virtual WebData parseDataURL(const WebURL&, WebString& mimetype, WebString&
charset) { return WebData(); } |
327 | 327 |
328 virtual WebURLError cancelledError(const WebURL&) const { return WebURLError
(); } | 328 virtual WebURLError cancelledError(const WebURL&) const { return WebURLError
(); } |
329 | 329 |
330 virtual bool isReservedIPAddress(const WebString& host) const { return false
; } | 330 virtual bool isReservedIPAddress(const WebString& host) const { return false
; } |
331 | 331 |
332 virtual bool portAllowed(const WebURL&) const { return false; } | 332 virtual bool portAllowed(const WebURL&) const { return false; } |
333 | 333 |
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
747 protected: | 747 protected: |
748 BLINK_PLATFORM_EXPORT Platform(); | 748 BLINK_PLATFORM_EXPORT Platform(); |
749 virtual ~Platform() { } | 749 virtual ~Platform() { } |
750 | 750 |
751 WebThread* m_mainThread; | 751 WebThread* m_mainThread; |
752 }; | 752 }; |
753 | 753 |
754 } // namespace blink | 754 } // namespace blink |
755 | 755 |
756 #endif | 756 #endif |
OLD | NEW |