| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 #include "WebGestureDevice.h" | 45 #include "WebGestureDevice.h" |
| 46 #include "WebGraphicsContext3D.h" | 46 #include "WebGraphicsContext3D.h" |
| 47 #include "WebLocalizedString.h" | 47 #include "WebLocalizedString.h" |
| 48 #include "WebPlatformEventType.h" | 48 #include "WebPlatformEventType.h" |
| 49 #include "WebSize.h" | 49 #include "WebSize.h" |
| 50 #include "WebSpeechSynthesizer.h" | 50 #include "WebSpeechSynthesizer.h" |
| 51 #include "WebStorageQuotaCallbacks.h" | 51 #include "WebStorageQuotaCallbacks.h" |
| 52 #include "WebStorageQuotaType.h" | 52 #include "WebStorageQuotaType.h" |
| 53 #include "WebString.h" | 53 #include "WebString.h" |
| 54 #include "WebURLError.h" | 54 #include "WebURLError.h" |
| 55 #include "WebURLRequest.h" |
| 55 #include "WebVector.h" | 56 #include "WebVector.h" |
| 56 #include "base/metrics/user_metrics_action.h" | 57 #include "base/metrics/user_metrics_action.h" |
| 57 | 58 |
| 58 #include "mojo/public/cpp/bindings/interface_request.h" | 59 #include "mojo/public/cpp/bindings/interface_request.h" |
| 59 #include "mojo/public/cpp/system/core.h" | 60 #include "mojo/public/cpp/system/core.h" |
| 60 | 61 |
| 61 class GrContext; | 62 class GrContext; |
| 62 | 63 |
| 63 namespace blink { | 64 namespace blink { |
| 64 | 65 |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 | 306 |
| 306 // Returns a new WebSocketHandle instance. | 307 // Returns a new WebSocketHandle instance. |
| 307 virtual WebSocketHandle* createWebSocketHandle() { return nullptr; } | 308 virtual WebSocketHandle* createWebSocketHandle() { return nullptr; } |
| 308 | 309 |
| 309 // Returns the User-Agent string. | 310 // Returns the User-Agent string. |
| 310 virtual WebString userAgent() { return WebString(); } | 311 virtual WebString userAgent() { return WebString(); } |
| 311 | 312 |
| 312 // A suggestion to cache this metadata in association with this URL. | 313 // A suggestion to cache this metadata in association with this URL. |
| 313 virtual void cacheMetadata(const WebURL&, int64_t responseTime, const char*
data, size_t dataSize) { } | 314 virtual void cacheMetadata(const WebURL&, int64_t responseTime, const char*
data, size_t dataSize) { } |
| 314 | 315 |
| 315 // Returns the decoded data url if url had a supported mimetype and parsing
was successful. | 316 // Returns true if the request can be handled within the renderer process. |
| 316 virtual WebData parseDataURL(const WebURL&, WebString& mimetype, WebString&
charset) { return WebData(); } | 317 // |data| is set to non-null if this returns true and parsing is successful. |
| 318 virtual bool parseDataURLIfCanBeHandledLocally(const WebURLRequest&, WebStri
ng& mimetype, WebString& charset, WebData& data) { return false; } |
| 317 | 319 |
| 318 virtual WebURLError cancelledError(const WebURL&) const { return WebURLError
(); } | 320 virtual WebURLError cancelledError(const WebURL&) const { return WebURLError
(); } |
| 319 | 321 |
| 320 virtual bool isReservedIPAddress(const WebString& host) const { return false
; } | 322 virtual bool isReservedIPAddress(const WebString& host) const { return false
; } |
| 321 | 323 |
| 322 virtual bool portAllowed(const WebURL&) const { return false; } | 324 virtual bool portAllowed(const WebURL&) const { return false; } |
| 323 | 325 |
| 324 // Plugins ------------------------------------------------------------- | 326 // Plugins ------------------------------------------------------------- |
| 325 | 327 |
| 326 // If refresh is true, then cached information should not be used to | 328 // If refresh is true, then cached information should not be used to |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 611 protected: | 613 protected: |
| 612 BLINK_PLATFORM_EXPORT Platform(); | 614 BLINK_PLATFORM_EXPORT Platform(); |
| 613 virtual ~Platform() { } | 615 virtual ~Platform() { } |
| 614 | 616 |
| 615 WebThread* m_mainThread; | 617 WebThread* m_mainThread; |
| 616 }; | 618 }; |
| 617 | 619 |
| 618 } // namespace blink | 620 } // namespace blink |
| 619 | 621 |
| 620 #endif | 622 #endif |
| OLD | NEW |