| 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 29 matching lines...) Expand all Loading... |
| 40 #include "WebGestureDevice.h" | 40 #include "WebGestureDevice.h" |
| 41 #include "WebGraphicsContext3D.h" | 41 #include "WebGraphicsContext3D.h" |
| 42 #include "WebLocalizedString.h" | 42 #include "WebLocalizedString.h" |
| 43 #include "WebPlatformEventType.h" | 43 #include "WebPlatformEventType.h" |
| 44 #include "WebString.h" | 44 #include "WebString.h" |
| 45 #include "WebURLError.h" | 45 #include "WebURLError.h" |
| 46 #include "WebVector.h" | 46 #include "WebVector.h" |
| 47 | 47 |
| 48 class GrContext; | 48 class GrContext; |
| 49 | 49 |
| 50 namespace mojo { |
| 51 class NetworkService; |
| 52 } |
| 53 |
| 50 namespace blink { | 54 namespace blink { |
| 51 | 55 |
| 52 class WebBlobRegistry; | 56 class WebBlobRegistry; |
| 53 class WebClipboard; | 57 class WebClipboard; |
| 54 class WebCompositorSupport; | 58 class WebCompositorSupport; |
| 55 class WebConvertableToTraceFormat; | 59 class WebConvertableToTraceFormat; |
| 56 class WebDiscardableMemory; | 60 class WebDiscardableMemory; |
| 57 class WebPlatformEventListener; | 61 class WebPlatformEventListener; |
| 58 class WebFallbackThemeEngine; | 62 class WebFallbackThemeEngine; |
| 59 class WebFlingAnimator; | 63 class WebFlingAnimator; |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 virtual WebString getHeapProfile() { return WebString(); } | 166 virtual WebString getHeapProfile() { return WebString(); } |
| 163 | 167 |
| 164 static const size_t noDecodedImageByteLimit = static_cast<size_t>(-1); | 168 static const size_t noDecodedImageByteLimit = static_cast<size_t>(-1); |
| 165 | 169 |
| 166 // Returns the maximum amount of memory a decoded image should be allowed. | 170 // Returns the maximum amount of memory a decoded image should be allowed. |
| 167 // See comments on ImageDecoder::m_maxDecodedBytes. | 171 // See comments on ImageDecoder::m_maxDecodedBytes. |
| 168 virtual size_t maxDecodedImageBytes() { return noDecodedImageByteLimit; } | 172 virtual size_t maxDecodedImageBytes() { return noDecodedImageByteLimit; } |
| 169 | 173 |
| 170 // Network ------------------------------------------------------------- | 174 // Network ------------------------------------------------------------- |
| 171 | 175 |
| 176 virtual mojo::NetworkService* networkService() { return 0; } |
| 177 |
| 172 // Returns a new WebURLLoader instance. | 178 // Returns a new WebURLLoader instance. |
| 173 virtual WebURLLoader* createURLLoader() { return 0; } | 179 virtual WebURLLoader* createURLLoader() { return 0; } |
| 174 | 180 |
| 175 // A suggestion to cache this metadata in association with this URL. | 181 // A suggestion to cache this metadata in association with this URL. |
| 176 virtual void cacheMetadata(const WebURL&, double responseTime, const char* d
ata, size_t dataSize) { } | 182 virtual void cacheMetadata(const WebURL&, double responseTime, const char* d
ata, size_t dataSize) { } |
| 177 | 183 |
| 178 // Returns the decoded data url if url had a supported mimetype and parsing
was successful. | 184 // Returns the decoded data url if url had a supported mimetype and parsing
was successful. |
| 179 virtual WebData parseDataURL(const WebURL&, WebString& mimetype, WebString&
charset) { return WebData(); } | 185 virtual WebData parseDataURL(const WebURL&, WebString& mimetype, WebString&
charset) { return WebData(); } |
| 180 | 186 |
| 181 virtual WebURLError cancelledError(const WebURL&) const { return WebURLError
(); } | 187 virtual WebURLError cancelledError(const WebURL&) const { return WebURLError
(); } |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 // longer notify the listener, if any. | 431 // longer notify the listener, if any. |
| 426 virtual void stopListening(WebPlatformEventType type) { } | 432 virtual void stopListening(WebPlatformEventType type) { } |
| 427 | 433 |
| 428 protected: | 434 protected: |
| 429 virtual ~Platform() { } | 435 virtual ~Platform() { } |
| 430 }; | 436 }; |
| 431 | 437 |
| 432 } // namespace blink | 438 } // namespace blink |
| 433 | 439 |
| 434 #endif | 440 #endif |
| OLD | NEW |