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

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

Issue 938643002: Preserve original int64 time stamp in ResourceResponse. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: use long long Created 5 years, 10 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
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 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 // May return null. 299 // May return null.
300 virtual WebPrescientNetworking* prescientNetworking() { return 0; } 300 virtual WebPrescientNetworking* prescientNetworking() { return 0; }
301 301
302 // Returns a new WebSocketHandle instance. 302 // Returns a new WebSocketHandle instance.
303 virtual WebSocketHandle* createWebSocketHandle() { return 0; } 303 virtual WebSocketHandle* createWebSocketHandle() { return 0; }
304 304
305 // Returns the User-Agent string. 305 // Returns the User-Agent string.
306 virtual WebString userAgent() { return WebString(); } 306 virtual WebString userAgent() { return WebString(); }
307 307
308 // A suggestion to cache this metadata in association with this URL. 308 // A suggestion to cache this metadata in association with this URL.
309 virtual void cacheMetadata(const WebURL&, int64 originalResponseTime, const char* data, size_t dataSize) { }
309 virtual void cacheMetadata(const WebURL&, double responseTime, const char* d ata, size_t dataSize) { } 310 virtual void cacheMetadata(const WebURL&, double responseTime, const char* d ata, size_t dataSize) { }
310 311
311 // Returns the decoded data url if url had a supported mimetype and parsing was successful. 312 // Returns the decoded data url if url had a supported mimetype and parsing was successful.
312 virtual WebData parseDataURL(const WebURL&, WebString& mimetype, WebString& charset) { return WebData(); } 313 virtual WebData parseDataURL(const WebURL&, WebString& mimetype, WebString& charset) { return WebData(); }
313 314
314 virtual WebURLError cancelledError(const WebURL&) const { return WebURLError (); } 315 virtual WebURLError cancelledError(const WebURL&) const { return WebURLError (); }
315 316
316 virtual bool isReservedIPAddress(const WebString& host) const { return false ; } 317 virtual bool isReservedIPAddress(const WebString& host) const { return false ; }
317 318
318 // Plugins ------------------------------------------------------------- 319 // Plugins -------------------------------------------------------------
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
666 protected: 667 protected:
667 BLINK_PLATFORM_EXPORT Platform(); 668 BLINK_PLATFORM_EXPORT Platform();
668 virtual ~Platform() { } 669 virtual ~Platform() { }
669 670
670 WebThread* m_mainThread; 671 WebThread* m_mainThread;
671 }; 672 };
672 673
673 } // namespace blink 674 } // namespace blink
674 675
675 #endif 676 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698