| OLD | NEW |
| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 ASSERT(document); | 60 ASSERT(document); |
| 61 RELEASE_ASSERT(context.isLiveContext()); | 61 RELEASE_ASSERT(context.isLiveContext()); |
| 62 static_cast<FrameFetchContext&>(context).m_document = document; | 62 static_cast<FrameFetchContext&>(context).m_document = document; |
| 63 } | 63 } |
| 64 | 64 |
| 65 ~FrameFetchContext(); | 65 ~FrameFetchContext(); |
| 66 | 66 |
| 67 bool isLiveContext() { return true; } | 67 bool isLiveContext() { return true; } |
| 68 | 68 |
| 69 void addAdditionalRequestHeaders(ResourceRequest&, FetchResourceType) overri
de; | 69 void addAdditionalRequestHeaders(ResourceRequest&, FetchResourceType) overri
de; |
| 70 void setFirstPartyForCookies(ResourceRequest&) override; | |
| 71 CachePolicy getCachePolicy() const override; | 70 CachePolicy getCachePolicy() const override; |
| 72 WebCachePolicy resourceRequestCachePolicy(const ResourceRequest&, Resource::
Type, FetchRequest::DeferOption) const override; | 71 WebCachePolicy resourceRequestCachePolicy(const ResourceRequest&, Resource::
Type, FetchRequest::DeferOption) const override; |
| 73 void dispatchDidChangeResourcePriority(unsigned long identifier, ResourceLoa
dPriority, int intraPriorityValue) override; | 72 void dispatchDidChangeResourcePriority(unsigned long identifier, ResourceLoa
dPriority, int intraPriorityValue) override; |
| 74 void dispatchWillSendRequest(unsigned long identifier, ResourceRequest&, con
st ResourceResponse& redirectResponse, const FetchInitiatorInfo& = FetchInitiato
rInfo()) override; | 73 void dispatchWillSendRequest(unsigned long identifier, ResourceRequest&, con
st ResourceResponse& redirectResponse, const FetchInitiatorInfo& = FetchInitiato
rInfo()) override; |
| 75 void dispatchDidLoadResourceFromMemoryCache(unsigned long identifier, Resour
ce*, WebURLRequest::FrameType, WebURLRequest::RequestContext) override; | 74 void dispatchDidLoadResourceFromMemoryCache(unsigned long identifier, Resour
ce*, WebURLRequest::FrameType, WebURLRequest::RequestContext) override; |
| 76 void dispatchDidReceiveResponse(unsigned long identifier, const ResourceResp
onse&, WebURLRequest::FrameType, WebURLRequest::RequestContext, Resource*) overr
ide; | 75 void dispatchDidReceiveResponse(unsigned long identifier, const ResourceResp
onse&, WebURLRequest::FrameType, WebURLRequest::RequestContext, Resource*) overr
ide; |
| 77 void dispatchDidReceiveData(unsigned long identifier, const char* data, int
dataLength, int encodedDataLength) override; | 76 void dispatchDidReceiveData(unsigned long identifier, const char* data, int
dataLength, int encodedDataLength) override; |
| 78 void dispatchDidDownloadData(unsigned long identifier, int dataLength, int e
ncodedDataLength) override; | 77 void dispatchDidDownloadData(unsigned long identifier, int dataLength, int e
ncodedDataLength) override; |
| 79 void dispatchDidFinishLoading(unsigned long identifier, double finishTime, i
nt64_t encodedDataLength) override; | 78 void dispatchDidFinishLoading(unsigned long identifier, double finishTime, i
nt64_t encodedDataLength) override; |
| 80 void dispatchDidFail(unsigned long identifier, const ResourceError&, bool is
InternalRequest) override; | 79 void dispatchDidFail(unsigned long identifier, const ResourceError&, bool is
InternalRequest) override; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 95 bool defersLoading() const override; | 94 bool defersLoading() const override; |
| 96 bool isLoadComplete() const override; | 95 bool isLoadComplete() const override; |
| 97 bool pageDismissalEventBeingDispatched() const override; | 96 bool pageDismissalEventBeingDispatched() const override; |
| 98 bool updateTimingInfoForIFrameNavigation(ResourceTimingInfo*) override; | 97 bool updateTimingInfoForIFrameNavigation(ResourceTimingInfo*) override; |
| 99 void sendImagePing(const KURL&) override; | 98 void sendImagePing(const KURL&) override; |
| 100 void addConsoleMessage(const String&) const override; | 99 void addConsoleMessage(const String&) const override; |
| 101 SecurityOrigin* getSecurityOrigin() const override; | 100 SecurityOrigin* getSecurityOrigin() const override; |
| 102 void upgradeInsecureRequest(ResourceRequest&) override; | 101 void upgradeInsecureRequest(ResourceRequest&) override; |
| 103 void addClientHintsIfNecessary(FetchRequest&) override; | 102 void addClientHintsIfNecessary(FetchRequest&) override; |
| 104 void addCSPHeaderIfNecessary(Resource::Type, FetchRequest&) override; | 103 void addCSPHeaderIfNecessary(Resource::Type, FetchRequest&) override; |
| 104 void populateRequestData(ResourceRequest&) override; |
| 105 | 105 |
| 106 MHTMLArchive* archive() const override; | 106 MHTMLArchive* archive() const override; |
| 107 | 107 |
| 108 ResourceLoadPriority modifyPriorityForExperiments(ResourceLoadPriority) over
ride; | 108 ResourceLoadPriority modifyPriorityForExperiments(ResourceLoadPriority) over
ride; |
| 109 | 109 |
| 110 void countClientHintsDPR() override; | 110 void countClientHintsDPR() override; |
| 111 void countClientHintsResourceWidth() override; | 111 void countClientHintsResourceWidth() override; |
| 112 void countClientHintsViewportWidth() override; | 112 void countClientHintsViewportWidth() override; |
| 113 | 113 |
| 114 WebTaskRunner* loadingTaskRunner() const override; | 114 WebTaskRunner* loadingTaskRunner() const override; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 128 // FIXME: Oilpan: Ideally this should just be a traced Member but that will | 128 // FIXME: Oilpan: Ideally this should just be a traced Member but that will |
| 129 // currently leak because ComputedStyle and its data are not on the heap. | 129 // currently leak because ComputedStyle and its data are not on the heap. |
| 130 // See crbug.com/383860 for details. | 130 // See crbug.com/383860 for details. |
| 131 WeakMember<Document> m_document; | 131 WeakMember<Document> m_document; |
| 132 Member<DocumentLoader> m_documentLoader; | 132 Member<DocumentLoader> m_documentLoader; |
| 133 }; | 133 }; |
| 134 | 134 |
| 135 } // namespace blink | 135 } // namespace blink |
| 136 | 136 |
| 137 #endif | 137 #endif |
| OLD | NEW |