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

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: fix coding style 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 81%
copy from Source/modules/quota/StorageQuotaCallback.h
copy to Source/core/platform/network/Preconnect.h
index d281f4965552fc182b255a23931913f3b5a3d6b4..e66cc18474ade8c0ca50c3d371edc12a6db1c624 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 <wtf/Forward.h>
tkent 2013/05/09 02:33:55 should use "" for WTF too.
kouhei (in TOK) 2013/05/09 03:19:29 Done.
+#include "core/platform/KURL.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,
};
-} // namespace
+void preconnect(const KURL& url, PreconnectMotivation motivation);
-#endif // StorageQuotaCallback_h
+}
+
+#endif

Powered by Google App Engine
This is Rietveld 408576698