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

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

Issue 208923002: Remove the url parameter from blink::Platform::userAgent since it's not used anymore. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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/web/FrameLoaderClientImpl.cpp ('k') | no next file » | 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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 316
317 // May return null. 317 // May return null.
318 virtual WebPrescientNetworking* prescientNetworking() { return 0; } 318 virtual WebPrescientNetworking* prescientNetworking() { return 0; }
319 319
320 // Returns a new WebSocketStreamHandle instance. 320 // Returns a new WebSocketStreamHandle instance.
321 virtual WebSocketStreamHandle* createSocketStreamHandle() { return 0; } 321 virtual WebSocketStreamHandle* createSocketStreamHandle() { return 0; }
322 322
323 // Returns a new WebSocketHandle instance. 323 // Returns a new WebSocketHandle instance.
324 virtual WebSocketHandle* createWebSocketHandle() { return 0; } 324 virtual WebSocketHandle* createWebSocketHandle() { return 0; }
325 325
326 // Returns the User-Agent string that should be used for the given URL. 326 // Returns the User-Agent string.
327 virtual WebString userAgent(const WebURL&) { return WebString(); } 327 virtual WebString userAgent() { return WebString(); }
328 328
329 // A suggestion to cache this metadata in association with this URL. 329 // A suggestion to cache this metadata in association with this URL.
330 virtual void cacheMetadata(const WebURL&, double responseTime, const char* d ata, size_t dataSize) { } 330 virtual void cacheMetadata(const WebURL&, double responseTime, const char* d ata, size_t dataSize) { }
331 331
332 // Returns the decoded data url if url had a supported mimetype and parsing was successful. 332 // Returns the decoded data url if url had a supported mimetype and parsing was successful.
333 virtual WebData parseDataURL(const WebURL&, WebString& mimetype, WebString& charset) { return WebData(); } 333 virtual WebData parseDataURL(const WebURL&, WebString& mimetype, WebString& charset) { return WebData(); }
334 334
335 virtual WebURLError cancelledError(const WebURL&) const { return WebURLError (); } 335 virtual WebURLError cancelledError(const WebURL&) const { return WebURLError (); }
336 336
337 337
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
639 virtual WebDatabaseObserver* databaseObserver() { return 0; } 639 virtual WebDatabaseObserver* databaseObserver() { return 0; }
640 640
641 641
642 protected: 642 protected:
643 virtual ~Platform() { } 643 virtual ~Platform() { }
644 }; 644 };
645 645
646 } // namespace blink 646 } // namespace blink
647 647
648 #endif 648 #endif
OLDNEW
« no previous file with comments | « Source/web/FrameLoaderClientImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698