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

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

Issue 940443002: Pass original int64 response time when caching resource metadata. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix test 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
« no previous file with comments | « Source/platform/network/ResourceResponse.cpp ('k') | public/platform/WebURLResponse.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 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 responseTime, const char* da ta, size_t dataSize) { } 309 virtual void cacheMetadata(const WebURL&, int64 responseTime, const char* da ta, size_t dataSize) { }
310 virtual void cacheMetadata(const WebURL&, double responseTime, const char* d ata, size_t dataSize) { }
311 310
312 // Returns the decoded data url if url had a supported mimetype and parsing was successful. 311 // Returns the decoded data url if url had a supported mimetype and parsing was successful.
313 virtual WebData parseDataURL(const WebURL&, WebString& mimetype, WebString& charset) { return WebData(); } 312 virtual WebData parseDataURL(const WebURL&, WebString& mimetype, WebString& charset) { return WebData(); }
314 313
315 virtual WebURLError cancelledError(const WebURL&) const { return WebURLError (); } 314 virtual WebURLError cancelledError(const WebURL&) const { return WebURLError (); }
316 315
317 virtual bool isReservedIPAddress(const WebString& host) const { return false ; } 316 virtual bool isReservedIPAddress(const WebString& host) const { return false ; }
318 317
319 // Plugins ------------------------------------------------------------- 318 // Plugins -------------------------------------------------------------
320 319
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
664 protected: 663 protected:
665 BLINK_PLATFORM_EXPORT Platform(); 664 BLINK_PLATFORM_EXPORT Platform();
666 virtual ~Platform() { } 665 virtual ~Platform() { }
667 666
668 WebThread* m_mainThread; 667 WebThread* m_mainThread;
669 }; 668 };
670 669
671 } // namespace blink 670 } // namespace blink
672 671
673 #endif 672 #endif
OLDNEW
« no previous file with comments | « Source/platform/network/ResourceResponse.cpp ('k') | public/platform/WebURLResponse.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698