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

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

Issue 14746002: Add WebPrescientNetworking to trigger preconnect from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add virtual d-tor Created 7 years, 7 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/Platform.gypi ('k') | Source/Platform/chromium/public/WebPrescientNetworking.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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 class WebFlingAnimator; 61 class WebFlingAnimator;
62 class WebGestureCurveTarget; 62 class WebGestureCurveTarget;
63 class WebGestureCurve; 63 class WebGestureCurve;
64 class WebGraphicsContext3DProvider; 64 class WebGraphicsContext3DProvider;
65 class WebHyphenator; 65 class WebHyphenator;
66 class WebMediaStreamCenter; 66 class WebMediaStreamCenter;
67 class WebMediaStreamCenterClient; 67 class WebMediaStreamCenterClient;
68 class WebMessagePortChannel; 68 class WebMessagePortChannel;
69 class WebMimeRegistry; 69 class WebMimeRegistry;
70 class WebPluginListBuilder; 70 class WebPluginListBuilder;
71 class WebPrescientNetworking;
71 class WebRTCPeerConnectionHandler; 72 class WebRTCPeerConnectionHandler;
72 class WebRTCPeerConnectionHandlerClient; 73 class WebRTCPeerConnectionHandlerClient;
73 class WebSandboxSupport; 74 class WebSandboxSupport;
74 class WebSocketStreamHandle; 75 class WebSocketStreamHandle;
75 class WebSpeechSynthesizer; 76 class WebSpeechSynthesizer;
76 class WebSpeechSynthesizerClient; 77 class WebSpeechSynthesizerClient;
77 class WebStorageNamespace; 78 class WebStorageNamespace;
78 class WebUnitTestSupport; 79 class WebUnitTestSupport;
79 class WebThemeEngine; 80 class WebThemeEngine;
80 class WebThread; 81 class WebThread;
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 262
262 263
263 // Network ------------------------------------------------------------- 264 // Network -------------------------------------------------------------
264 265
265 // Returns a new WebURLLoader instance. 266 // Returns a new WebURLLoader instance.
266 virtual WebURLLoader* createURLLoader() { return 0; } 267 virtual WebURLLoader* createURLLoader() { return 0; }
267 268
268 // A suggestion to prefetch IP information for the given hostname. 269 // A suggestion to prefetch IP information for the given hostname.
269 virtual void prefetchHostName(const WebString&) { } 270 virtual void prefetchHostName(const WebString&) { }
270 271
272 // May return null.
273 virtual WebPrescientNetworking* prescientNetworking() { return 0; }
274
271 // Returns a new WebSocketStreamHandle instance. 275 // Returns a new WebSocketStreamHandle instance.
272 virtual WebSocketStreamHandle* createSocketStreamHandle() { return 0; } 276 virtual WebSocketStreamHandle* createSocketStreamHandle() { return 0; }
273 277
274 // Returns the User-Agent string that should be used for the given URL. 278 // Returns the User-Agent string that should be used for the given URL.
275 virtual WebString userAgent(const WebURL&) { return WebString(); } 279 virtual WebString userAgent(const WebURL&) { return WebString(); }
276 280
277 // A suggestion to cache this metadata in association with this URL. 281 // A suggestion to cache this metadata in association with this URL.
278 virtual void cacheMetadata(const WebURL&, double responseTime, const char* d ata, size_t dataSize) { } 282 virtual void cacheMetadata(const WebURL&, double responseTime, const char* d ata, size_t dataSize) { }
279 283
280 284
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 virtual void didStartWorkerRunLoop(const WebWorkerRunLoop&) { } 510 virtual void didStartWorkerRunLoop(const WebWorkerRunLoop&) { }
507 virtual void didStopWorkerRunLoop(const WebWorkerRunLoop&) { } 511 virtual void didStopWorkerRunLoop(const WebWorkerRunLoop&) { }
508 512
509 protected: 513 protected:
510 virtual ~Platform() { } 514 virtual ~Platform() { }
511 }; 515 };
512 516
513 } // namespace WebKit 517 } // namespace WebKit
514 518
515 #endif 519 #endif
OLDNEW
« no previous file with comments | « Source/Platform/Platform.gypi ('k') | Source/Platform/chromium/public/WebPrescientNetworking.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698