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 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 // A suggestion to cache this metadata in association with this URL. | 336 // A suggestion to cache this metadata in association with this URL. |
337 virtual void cacheMetadata(const WebURL&, int64 responseTime, const char* da
ta, size_t dataSize) { } | 337 virtual void cacheMetadata(const WebURL&, int64 responseTime, const char* da
ta, size_t dataSize) { } |
338 | 338 |
339 // Returns the decoded data url if url had a supported mimetype and parsing
was successful. | 339 // Returns the decoded data url if url had a supported mimetype and parsing
was successful. |
340 virtual WebData parseDataURL(const WebURL&, WebString& mimetype, WebString&
charset) { return WebData(); } | 340 virtual WebData parseDataURL(const WebURL&, WebString& mimetype, WebString&
charset) { return WebData(); } |
341 | 341 |
342 virtual WebURLError cancelledError(const WebURL&) const { return WebURLError
(); } | 342 virtual WebURLError cancelledError(const WebURL&) const { return WebURLError
(); } |
343 | 343 |
344 virtual bool isReservedIPAddress(const WebString& host) const { return false
; } | 344 virtual bool isReservedIPAddress(const WebString& host) const { return false
; } |
345 | 345 |
| 346 virtual bool portAllowed(const WebURL&) const { return false; } |
| 347 |
346 // Plugins ------------------------------------------------------------- | 348 // Plugins ------------------------------------------------------------- |
347 | 349 |
348 // If refresh is true, then cached information should not be used to | 350 // If refresh is true, then cached information should not be used to |
349 // satisfy this call. | 351 // satisfy this call. |
350 virtual void getPluginList(bool refresh, WebPluginListBuilder*) { } | 352 virtual void getPluginList(bool refresh, WebPluginListBuilder*) { } |
351 | 353 |
352 | 354 |
353 // Public Suffix List -------------------------------------------------- | 355 // Public Suffix List -------------------------------------------------- |
354 | 356 |
355 // May return null on some platforms. | 357 // May return null on some platforms. |
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
701 protected: | 703 protected: |
702 BLINK_PLATFORM_EXPORT Platform(); | 704 BLINK_PLATFORM_EXPORT Platform(); |
703 virtual ~Platform() { } | 705 virtual ~Platform() { } |
704 | 706 |
705 WebThread* m_mainThread; | 707 WebThread* m_mainThread; |
706 }; | 708 }; |
707 | 709 |
708 } // namespace blink | 710 } // namespace blink |
709 | 711 |
710 #endif | 712 #endif |
OLD | NEW |