| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 class WebSpeechSynthesizer; | 112 class WebSpeechSynthesizer; |
| 113 class WebSpeechSynthesizerClient; | 113 class WebSpeechSynthesizerClient; |
| 114 class WebStorageNamespace; | 114 class WebStorageNamespace; |
| 115 class WebSyncProvider; | 115 class WebSyncProvider; |
| 116 struct WebFloatPoint; | 116 struct WebFloatPoint; |
| 117 class WebThemeEngine; | 117 class WebThemeEngine; |
| 118 class WebThread; | 118 class WebThread; |
| 119 class WebTrialTokenValidator; | 119 class WebTrialTokenValidator; |
| 120 class WebURL; | 120 class WebURL; |
| 121 class WebURLLoader; | 121 class WebURLLoader; |
| 122 class WebURLResponse; |
| 122 class WebUnitTestSupport; | 123 class WebUnitTestSupport; |
| 123 struct WebLocalizedString; | 124 struct WebLocalizedString; |
| 124 struct WebSize; | 125 struct WebSize; |
| 125 | 126 |
| 126 class Platform { | 127 class Platform { |
| 127 public: | 128 public: |
| 128 // HTML5 Database ------------------------------------------------------ | 129 // HTML5 Database ------------------------------------------------------ |
| 129 | 130 |
| 130 #ifdef WIN32 | 131 #ifdef WIN32 |
| 131 typedef HANDLE FileHandle; | 132 typedef HANDLE FileHandle; |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 | 315 |
| 315 // 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. |
| 316 virtual WebData parseDataURL(const WebURL&, WebString& mimetype, WebString&
charset) { return WebData(); } | 317 virtual WebData parseDataURL(const WebURL&, WebString& mimetype, WebString&
charset) { return WebData(); } |
| 317 | 318 |
| 318 virtual WebURLError cancelledError(const WebURL&) const { return WebURLError
(); } | 319 virtual WebURLError cancelledError(const WebURL&) const { return WebURLError
(); } |
| 319 | 320 |
| 320 virtual bool isReservedIPAddress(const WebString& host) const { return false
; } | 321 virtual bool isReservedIPAddress(const WebString& host) const { return false
; } |
| 321 | 322 |
| 322 virtual bool portAllowed(const WebURL&) const { return false; } | 323 virtual bool portAllowed(const WebURL&) const { return false; } |
| 323 | 324 |
| 325 // Returns true and stores the position of the end of the headers to |*end| |
| 326 // if the headers part ends in |bytes[0..size]|. Returns false otherwise. |
| 327 virtual bool parseMultipartHeadersFromBody(const char* bytes, size_t /* size
*/, WebURLResponse*, size_t* end) const { return false; } |
| 328 |
| 324 // Plugins ------------------------------------------------------------- | 329 // Plugins ------------------------------------------------------------- |
| 325 | 330 |
| 326 // If refresh is true, then cached information should not be used to | 331 // If refresh is true, then cached information should not be used to |
| 327 // satisfy this call. | 332 // satisfy this call. |
| 328 virtual void getPluginList(bool refresh, WebPluginListBuilder*) { } | 333 virtual void getPluginList(bool refresh, WebPluginListBuilder*) { } |
| 329 | 334 |
| 330 | 335 |
| 331 // Public Suffix List -------------------------------------------------- | 336 // Public Suffix List -------------------------------------------------- |
| 332 | 337 |
| 333 // May return null on some platforms. | 338 // May return null on some platforms. |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 611 protected: | 616 protected: |
| 612 BLINK_PLATFORM_EXPORT Platform(); | 617 BLINK_PLATFORM_EXPORT Platform(); |
| 613 virtual ~Platform() { } | 618 virtual ~Platform() { } |
| 614 | 619 |
| 615 WebThread* m_mainThread; | 620 WebThread* m_mainThread; |
| 616 }; | 621 }; |
| 617 | 622 |
| 618 } // namespace blink | 623 } // namespace blink |
| 619 | 624 |
| 620 #endif | 625 #endif |
| OLD | NEW |