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

Unified Diff: Source/core/platform/network/Preconnect.h

Issue 14746002: Add WebPrescientNetworking to trigger preconnect from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: use WebPrescientNetworking instead of WebPrerenderingSupport 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/platform/network/Preconnect.h
diff --git a/Source/modules/quota/StorageQuotaCallback.h b/Source/core/platform/network/Preconnect.h
similarity index 82%
copy from Source/modules/quota/StorageQuotaCallback.h
copy to Source/core/platform/network/Preconnect.h
index d281f4965552fc182b255a23931913f3b5a3d6b4..40fbc12270839e2995d513d5c8690fafb808b47b 100644
--- a/Source/modules/quota/StorageQuotaCallback.h
+++ b/Source/core/platform/network/Preconnect.h
@@ -28,19 +28,23 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef StorageQuotaCallback_h
-#define StorageQuotaCallback_h
+#ifndef Preconnect_h
+#define Preconnect_h
-#include "wtf/RefCounted.h"
+#include "core/platform/KURL.h"
+#include "wtf/Forward.h"
namespace WebCore {
-class StorageQuotaCallback : public RefCounted<StorageQuotaCallback> {
-public:
- virtual ~StorageQuotaCallback() { }
- virtual bool handleEvent(unsigned long long grantedQuotaInBytes) = 0;
+enum PreconnectMotivation {
+ PreconnectMotivationLinkMouseDown,
+ PreconnectMotivationLinkMouseOver,
+ PreconnectMotivationLinkTapUnconfirmed,
+ PreconnectMotivationLinkTapDown,
};
abarth-chromium 2013/05/14 06:18:56 There's no need for this enum. Code can just use
kouhei (in TOK) 2013/05/14 06:34:07 Done.
-} // namespace
+void preconnect(const KURL&, PreconnectMotivation);
abarth-chromium 2013/05/14 06:18:56 There's no need for this file. Please delete it.
kouhei (in TOK) 2013/05/14 06:34:07 Done.
-#endif // StorageQuotaCallback_h
+}
+
+#endif

Powered by Google App Engine
This is Rietveld 408576698