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

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

Issue 16433002: Prepopulate the memoryCache with data:uri images. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update TestExpectations Created 7 years, 6 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
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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 280
281 // Returns a new WebSocketStreamHandle instance. 281 // Returns a new WebSocketStreamHandle instance.
282 virtual WebSocketStreamHandle* createSocketStreamHandle() { return 0; } 282 virtual WebSocketStreamHandle* createSocketStreamHandle() { return 0; }
283 283
284 // Returns the User-Agent string that should be used for the given URL. 284 // Returns the User-Agent string that should be used for the given URL.
285 virtual WebString userAgent(const WebURL&) { return WebString(); } 285 virtual WebString userAgent(const WebURL&) { return WebString(); }
286 286
287 // A suggestion to cache this metadata in association with this URL. 287 // A suggestion to cache this metadata in association with this URL.
288 virtual void cacheMetadata(const WebURL&, double responseTime, const char* d ata, size_t dataSize) { } 288 virtual void cacheMetadata(const WebURL&, double responseTime, const char* d ata, size_t dataSize) { }
289 289
290 // Returns the decoded data url if url had a supported mimetype and parsing was successful.
291 virtual WebData parseDataURL(const WebURL&, WebString& mimetype, WebString& charset) { return WebData(); }
292
290 293
291 // Plugins ------------------------------------------------------------- 294 // Plugins -------------------------------------------------------------
292 295
293 // If refresh is true, then cached information should not be used to 296 // If refresh is true, then cached information should not be used to
294 // satisfy this call. 297 // satisfy this call.
295 virtual void getPluginList(bool refresh, WebPluginListBuilder*) { } 298 virtual void getPluginList(bool refresh, WebPluginListBuilder*) { }
296 299
297 300
298 // Resources ----------------------------------------------------------- 301 // Resources -----------------------------------------------------------
299 302
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 // If null, the platform stops providing device motion data to the current l istener. 526 // If null, the platform stops providing device motion data to the current l istener.
524 virtual void setDeviceMotionListener(WebKit::WebDeviceMotionListener*) { } 527 virtual void setDeviceMotionListener(WebKit::WebDeviceMotionListener*) { }
525 528
526 protected: 529 protected:
527 virtual ~Platform() { } 530 virtual ~Platform() { }
528 }; 531 };
529 532
530 } // namespace WebKit 533 } // namespace WebKit
531 534
532 #endif 535 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698