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

Side by Side Diff: Source/Platform/chromium/public/Platform.h

Issue 14188008: Move Data uri handling into WebCore Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 months 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/WebCore/WebCore.gypi » ('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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 265
266 // Returns a new WebSocketStreamHandle instance. 266 // Returns a new WebSocketStreamHandle instance.
267 virtual WebSocketStreamHandle* createSocketStreamHandle() { return 0; } 267 virtual WebSocketStreamHandle* createSocketStreamHandle() { return 0; }
268 268
269 // Returns the User-Agent string that should be used for the given URL. 269 // Returns the User-Agent string that should be used for the given URL.
270 virtual WebString userAgent(const WebURL&) { return WebString(); } 270 virtual WebString userAgent(const WebURL&) { return WebString(); }
271 271
272 // A suggestion to cache this metadata in association with this URL. 272 // A suggestion to cache this metadata in association with this URL.
273 virtual void cacheMetadata(const WebURL&, double responseTime, const char* d ata, size_t dataSize) { } 273 virtual void cacheMetadata(const WebURL&, double responseTime, const char* d ata, size_t dataSize) { }
274 274
275 // Returns true if the data url was of a supported mimetype and was parsed s uccessfully.
276 virtual bool parseDataUrl(const WebURL&, WebData& mimetype, WebData& charset , WebVector<char>& data) { return false; }
275 277
276 // Plugins ------------------------------------------------------------- 278 // Plugins -------------------------------------------------------------
277 279
278 // If refresh is true, then cached information should not be used to 280 // If refresh is true, then cached information should not be used to
279 // satisfy this call. 281 // satisfy this call.
280 virtual void getPluginList(bool refresh, WebPluginListBuilder*) { } 282 virtual void getPluginList(bool refresh, WebPluginListBuilder*) { }
281 283
282 284
283 // Resources ----------------------------------------------------------- 285 // Resources -----------------------------------------------------------
284 286
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 virtual void didStartWorkerRunLoop(const WebWorkerRunLoop&) { } 513 virtual void didStartWorkerRunLoop(const WebWorkerRunLoop&) { }
512 virtual void didStopWorkerRunLoop(const WebWorkerRunLoop&) { } 514 virtual void didStopWorkerRunLoop(const WebWorkerRunLoop&) { }
513 515
514 protected: 516 protected:
515 virtual ~Platform() { } 517 virtual ~Platform() { }
516 }; 518 };
517 519
518 } // namespace WebKit 520 } // namespace WebKit
519 521
520 #endif 522 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/WebCore/WebCore.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698