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 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 virtual WebString userAgent() { return WebString(); } | 323 virtual WebString userAgent() { return WebString(); } |
324 | 324 |
325 // A suggestion to cache this metadata in association with this URL. | 325 // A suggestion to cache this metadata in association with this URL. |
326 virtual void cacheMetadata(const WebURL&, double responseTime, const char* d
ata, size_t dataSize) { } | 326 virtual void cacheMetadata(const WebURL&, double responseTime, const char* d
ata, size_t dataSize) { } |
327 | 327 |
328 // Returns the decoded data url if url had a supported mimetype and parsing
was successful. | 328 // Returns the decoded data url if url had a supported mimetype and parsing
was successful. |
329 virtual WebData parseDataURL(const WebURL&, WebString& mimetype, WebString&
charset) { return WebData(); } | 329 virtual WebData parseDataURL(const WebURL&, WebString& mimetype, WebString&
charset) { return WebData(); } |
330 | 330 |
331 virtual WebURLError cancelledError(const WebURL&) const { return WebURLError
(); } | 331 virtual WebURLError cancelledError(const WebURL&) const { return WebURLError
(); } |
332 | 332 |
| 333 virtual bool isHostnameReservedIPAddress(const WebString&) const { return fa
lse; } |
333 | 334 |
334 // Plugins ------------------------------------------------------------- | 335 // Plugins ------------------------------------------------------------- |
335 | 336 |
336 // If refresh is true, then cached information should not be used to | 337 // If refresh is true, then cached information should not be used to |
337 // satisfy this call. | 338 // satisfy this call. |
338 virtual void getPluginList(bool refresh, WebPluginListBuilder*) { } | 339 virtual void getPluginList(bool refresh, WebPluginListBuilder*) { } |
339 | 340 |
340 | 341 |
341 // Public Suffix List -------------------------------------------------- | 342 // Public Suffix List -------------------------------------------------- |
342 | 343 |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
641 virtual WebNotificationPresenter* notificationPresenter() { return 0; } | 642 virtual WebNotificationPresenter* notificationPresenter() { return 0; } |
642 | 643 |
643 | 644 |
644 protected: | 645 protected: |
645 virtual ~Platform() { } | 646 virtual ~Platform() { } |
646 }; | 647 }; |
647 | 648 |
648 } // namespace blink | 649 } // namespace blink |
649 | 650 |
650 #endif | 651 #endif |
OLD | NEW |