| 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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 virtual WebString userAgent() { return WebString(); } | 306 virtual WebString userAgent() { return WebString(); } |
| 307 | 307 |
| 308 // A suggestion to cache this metadata in association with this URL. | 308 // A suggestion to cache this metadata in association with this URL. |
| 309 virtual void cacheMetadata(const WebURL&, double responseTime, const char* d
ata, size_t dataSize) { } | 309 virtual void cacheMetadata(const WebURL&, double responseTime, const char* d
ata, size_t dataSize) { } |
| 310 | 310 |
| 311 // Returns the decoded data url if url had a supported mimetype and parsing
was successful. | 311 // Returns the decoded data url if url had a supported mimetype and parsing
was successful. |
| 312 virtual WebData parseDataURL(const WebURL&, WebString& mimetype, WebString&
charset) { return WebData(); } | 312 virtual WebData parseDataURL(const WebURL&, WebString& mimetype, WebString&
charset) { return WebData(); } |
| 313 | 313 |
| 314 virtual WebURLError cancelledError(const WebURL&) const { return WebURLError
(); } | 314 virtual WebURLError cancelledError(const WebURL&) const { return WebURLError
(); } |
| 315 | 315 |
| 316 virtual bool isReservedIPAddress(const WebString& host) const { return false
; } |
| 317 |
| 318 // FIXME: Drop both of these once Chromium is updated. |
| 316 virtual bool isReservedIPAddress(const WebURL&) const { return false; } | 319 virtual bool isReservedIPAddress(const WebURL&) const { return false; } |
| 317 virtual bool isReservedIPAddress(const WebSecurityOrigin&) const { return fa
lse; } | 320 virtual bool isReservedIPAddress(const WebSecurityOrigin&) const { return fa
lse; } |
| 318 | 321 |
| 319 // Plugins ------------------------------------------------------------- | 322 // Plugins ------------------------------------------------------------- |
| 320 | 323 |
| 321 // If refresh is true, then cached information should not be used to | 324 // If refresh is true, then cached information should not be used to |
| 322 // satisfy this call. | 325 // satisfy this call. |
| 323 virtual void getPluginList(bool refresh, WebPluginListBuilder*) { } | 326 virtual void getPluginList(bool refresh, WebPluginListBuilder*) { } |
| 324 | 327 |
| 325 | 328 |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 647 | 650 |
| 648 virtual WebNavigatorConnectProvider* navigatorConnectProvider() { return 0;
} | 651 virtual WebNavigatorConnectProvider* navigatorConnectProvider() { return 0;
} |
| 649 | 652 |
| 650 protected: | 653 protected: |
| 651 virtual ~Platform() { } | 654 virtual ~Platform() { } |
| 652 }; | 655 }; |
| 653 | 656 |
| 654 } // namespace blink | 657 } // namespace blink |
| 655 | 658 |
| 656 #endif | 659 #endif |
| OLD | NEW |