Chromium Code Reviews| 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 |