Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(127)

Side by Side Diff: sky/engine/public/platform/Platform.h

Issue 676723003: Remove postMessage, MessageChannel and MessagePort. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 class WebClipboard; 53 class WebClipboard;
54 class WebCompositorSupport; 54 class WebCompositorSupport;
55 class WebConvertableToTraceFormat; 55 class WebConvertableToTraceFormat;
56 class WebDiscardableMemory; 56 class WebDiscardableMemory;
57 class WebPlatformEventListener; 57 class WebPlatformEventListener;
58 class WebFallbackThemeEngine; 58 class WebFallbackThemeEngine;
59 class WebFlingAnimator; 59 class WebFlingAnimator;
60 class WebGestureCurveTarget; 60 class WebGestureCurveTarget;
61 class WebGestureCurve; 61 class WebGestureCurve;
62 class WebGraphicsContext3DProvider; 62 class WebGraphicsContext3DProvider;
63 class WebMessagePortChannel;
64 class WebMimeRegistry; 63 class WebMimeRegistry;
65 class WebPublicSuffixList; 64 class WebPublicSuffixList;
66 class WebSandboxSupport; 65 class WebSandboxSupport;
67 class WebScrollbarBehavior; 66 class WebScrollbarBehavior;
68 struct WebFloatPoint; 67 struct WebFloatPoint;
69 class WebThemeEngine; 68 class WebThemeEngine;
70 class WebThread; 69 class WebThread;
71 class WebURL; 70 class WebURL;
72 class WebURLLoader; 71 class WebURLLoader;
73 class WebUnitTestSupport; 72 class WebUnitTestSupport;
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 virtual void dumpHeapProfiling(const WebString& /*reason*/) { } 161 virtual void dumpHeapProfiling(const WebString& /*reason*/) { }
163 // A wrapper for tcmalloc's GetHeapProfile() 162 // A wrapper for tcmalloc's GetHeapProfile()
164 virtual WebString getHeapProfile() { return WebString(); } 163 virtual WebString getHeapProfile() { return WebString(); }
165 164
166 static const size_t noDecodedImageByteLimit = static_cast<size_t>(-1); 165 static const size_t noDecodedImageByteLimit = static_cast<size_t>(-1);
167 166
168 // Returns the maximum amount of memory a decoded image should be allowed. 167 // Returns the maximum amount of memory a decoded image should be allowed.
169 // See comments on ImageDecoder::m_maxDecodedBytes. 168 // See comments on ImageDecoder::m_maxDecodedBytes.
170 virtual size_t maxDecodedImageBytes() { return noDecodedImageByteLimit; } 169 virtual size_t maxDecodedImageBytes() { return noDecodedImageByteLimit; }
171 170
172
173 // Message Ports -------------------------------------------------------
174
175 // Creates a Message Port Channel pair. This can be called on any thread.
176 // The returned objects should only be used on the thread they were created on.
177 virtual void createMessageChannel(WebMessagePortChannel** channel1, WebMessa gePortChannel** channel2) { *channel1 = 0; *channel2 = 0; }
178
179
180 // Network ------------------------------------------------------------- 171 // Network -------------------------------------------------------------
181 172
182 // Returns a new WebURLLoader instance. 173 // Returns a new WebURLLoader instance.
183 virtual WebURLLoader* createURLLoader() { return 0; } 174 virtual WebURLLoader* createURLLoader() { return 0; }
184 175
185 // A suggestion to cache this metadata in association with this URL. 176 // A suggestion to cache this metadata in association with this URL.
186 virtual void cacheMetadata(const WebURL&, double responseTime, const char* d ata, size_t dataSize) { } 177 virtual void cacheMetadata(const WebURL&, double responseTime, const char* d ata, size_t dataSize) { }
187 178
188 // Returns the decoded data url if url had a supported mimetype and parsing was successful. 179 // Returns the decoded data url if url had a supported mimetype and parsing was successful.
189 virtual WebData parseDataURL(const WebURL&, WebString& mimetype, WebString& charset) { return WebData(); } 180 virtual WebData parseDataURL(const WebURL&, WebString& mimetype, WebString& charset) { return WebData(); }
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 // longer notify the listener, if any. 433 // longer notify the listener, if any.
443 virtual void stopListening(WebPlatformEventType type) { } 434 virtual void stopListening(WebPlatformEventType type) { }
444 435
445 protected: 436 protected:
446 virtual ~Platform() { } 437 virtual ~Platform() { }
447 }; 438 };
448 439
449 } // namespace blink 440 } // namespace blink
450 441
451 #endif 442 #endif
OLDNEW
« no previous file with comments | « sky/engine/core/loader/FrameLoaderClient.h ('k') | sky/engine/public/platform/WebMessagePortChannel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698