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

Side by Side Diff: third_party/WebKit/Source/core/fetch/FetchContext.h

Issue 1987413002: Add link preload as=document support Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: crash fix Created 4 years, 3 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 76
77 virtual void dispatchDidChangeResourcePriority(unsigned long identifier, Res ourceLoadPriority, int intraPriorityValue); 77 virtual void dispatchDidChangeResourcePriority(unsigned long identifier, Res ourceLoadPriority, int intraPriorityValue);
78 virtual void dispatchWillSendRequest(unsigned long identifier, ResourceReque st&, const ResourceResponse& redirectResponse, const FetchInitiatorInfo& = Fetch InitiatorInfo()); 78 virtual void dispatchWillSendRequest(unsigned long identifier, ResourceReque st&, const ResourceResponse& redirectResponse, const FetchInitiatorInfo& = Fetch InitiatorInfo());
79 virtual void dispatchDidLoadResourceFromMemoryCache(unsigned long identifier , Resource*, WebURLRequest::FrameType, WebURLRequest::RequestContext); 79 virtual void dispatchDidLoadResourceFromMemoryCache(unsigned long identifier , Resource*, WebURLRequest::FrameType, WebURLRequest::RequestContext);
80 virtual void dispatchDidReceiveResponse(unsigned long identifier, const Reso urceResponse&, WebURLRequest::FrameType, WebURLRequest::RequestContext, Resource *); 80 virtual void dispatchDidReceiveResponse(unsigned long identifier, const Reso urceResponse&, WebURLRequest::FrameType, WebURLRequest::RequestContext, Resource *);
81 virtual void dispatchDidReceiveData(unsigned long identifier, const char* da ta, int dataLength, int encodedDataLength); 81 virtual void dispatchDidReceiveData(unsigned long identifier, const char* da ta, int dataLength, int encodedDataLength);
82 virtual void dispatchDidDownloadData(unsigned long identifier, int dataLengt h, int encodedDataLength); 82 virtual void dispatchDidDownloadData(unsigned long identifier, int dataLengt h, int encodedDataLength);
83 virtual void dispatchDidFinishLoading(unsigned long identifier, double finis hTime, int64_t encodedDataLength); 83 virtual void dispatchDidFinishLoading(unsigned long identifier, double finis hTime, int64_t encodedDataLength);
84 virtual void dispatchDidFail(unsigned long identifier, const ResourceError&, bool isInternalRequest); 84 virtual void dispatchDidFail(unsigned long identifier, const ResourceError&, bool isInternalRequest);
85 85
86 virtual bool shouldLoadNewResource(Resource::Type) const { return false; } 86 virtual bool shouldLoadNewResource(Resource::Type, const WebURLRequest::Fram eType) const { return false; }
87 virtual void willStartLoadingResource(unsigned long identifier, ResourceRequ est&, Resource::Type); 87 virtual void willStartLoadingResource(unsigned long identifier, ResourceRequ est&, Resource::Type);
88 virtual void didLoadResource(Resource*); 88 virtual void didLoadResource(Resource*);
89 89
90 virtual void addResourceTiming(const ResourceTimingInfo&); 90 virtual void addResourceTiming(const ResourceTimingInfo&);
91 virtual bool allowImage(bool, const KURL&) const { return false; } 91 virtual bool allowImage(bool, const KURL&) const { return false; }
92 virtual bool canRequest(Resource::Type, const ResourceRequest&, const KURL&, const ResourceLoaderOptions&, bool forPreload, FetchRequest::OriginRestriction) const { return false; } 92 virtual bool canRequest(Resource::Type, const ResourceRequest&, const KURL&, const ResourceLoaderOptions&, bool forPreload, FetchRequest::OriginRestriction) const { return false; }
93 virtual bool allowResponse(Resource::Type, const ResourceRequest&, const KUR L&, const ResourceLoaderOptions&) const { return false; } 93 virtual bool allowResponse(Resource::Type, const ResourceRequest&, const KUR L&, const ResourceLoaderOptions&) const { return false; }
94 94
95 virtual bool isControlledByServiceWorker() const { return false; } 95 virtual bool isControlledByServiceWorker() const { return false; }
96 virtual int64_t serviceWorkerID() const { return -1; } 96 virtual int64_t serviceWorkerID() const { return -1; }
(...skipping 17 matching lines...) Expand all
114 114
115 virtual WebTaskRunner* loadingTaskRunner() const { return nullptr; } 115 virtual WebTaskRunner* loadingTaskRunner() const { return nullptr; }
116 116
117 protected: 117 protected:
118 FetchContext() { } 118 FetchContext() { }
119 }; 119 };
120 120
121 } // namespace blink 121 } // namespace blink
122 122
123 #endif 123 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/resources/test.html ('k') | third_party/WebKit/Source/core/fetch/FetchRequest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698