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

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

Issue 691623003: Remove Platform::parseDataURL (Closed) Base URL: git@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
« no previous file with comments | « sky/engine/core/fetch/ResourceFetcher.cpp ('k') | sky/engine/testing/platform/platform_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 // Network ------------------------------------------------------------- 177 // Network -------------------------------------------------------------
178 178
179 virtual mojo::NetworkService* networkService() { return 0; } 179 virtual mojo::NetworkService* networkService() { return 0; }
180 180
181 // Returns a new WebURLLoader instance. 181 // Returns a new WebURLLoader instance.
182 virtual WebURLLoader* createURLLoader() { return 0; } 182 virtual WebURLLoader* createURLLoader() { return 0; }
183 183
184 // A suggestion to cache this metadata in association with this URL. 184 // A suggestion to cache this metadata in association with this URL.
185 virtual void cacheMetadata(const WebURL&, double responseTime, const char* d ata, size_t dataSize) { } 185 virtual void cacheMetadata(const WebURL&, double responseTime, const char* d ata, size_t dataSize) { }
186 186
187 // Returns the decoded data url if url had a supported mimetype and parsing was successful.
188 virtual WebData parseDataURL(const WebURL&, WebString& mimetype, WebString& charset) { return WebData(); }
189
190 virtual WebURLError cancelledError(const WebURL&) const { return WebURLError (); } 187 virtual WebURLError cancelledError(const WebURL&) const { return WebURLError (); }
191 188
192 virtual bool isReservedIPAddress(const WebURL&) const { return false; } 189 virtual bool isReservedIPAddress(const WebURL&) const { return false; }
193 190
194 191
195 // Public Suffix List -------------------------------------------------- 192 // Public Suffix List --------------------------------------------------
196 193
197 // May return null on some platforms. 194 // May return null on some platforms.
198 virtual WebPublicSuffixList* publicSuffixList() { return 0; } 195 virtual WebPublicSuffixList* publicSuffixList() { return 0; }
199 196
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 // longer notify the listener, if any. 417 // longer notify the listener, if any.
421 virtual void stopListening(WebPlatformEventType type) { } 418 virtual void stopListening(WebPlatformEventType type) { }
422 419
423 protected: 420 protected:
424 virtual ~Platform() { } 421 virtual ~Platform() { }
425 }; 422 };
426 423
427 } // namespace blink 424 } // namespace blink
428 425
429 #endif 426 #endif
OLDNEW
« no previous file with comments | « sky/engine/core/fetch/ResourceFetcher.cpp ('k') | sky/engine/testing/platform/platform_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698