| 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 | 111 |
| 112 bool ShouldLoadNewResource(Resource::Type) const override; | 112 bool ShouldLoadNewResource(Resource::Type) const override; |
| 113 void RecordLoadingActivity(unsigned long identifier, | 113 void RecordLoadingActivity(unsigned long identifier, |
| 114 const ResourceRequest&, | 114 const ResourceRequest&, |
| 115 Resource::Type, | 115 Resource::Type, |
| 116 const AtomicString& fetch_initiator_name) override; | 116 const AtomicString& fetch_initiator_name) override; |
| 117 void DidLoadResource(Resource*) override; | 117 void DidLoadResource(Resource*) override; |
| 118 | 118 |
| 119 void AddResourceTiming(const ResourceTimingInfo&) override; | 119 void AddResourceTiming(const ResourceTimingInfo&) override; |
| 120 bool AllowImage(bool images_enabled, const KURL&) const override; | 120 bool AllowImage(bool images_enabled, const KURL&) const override; |
| 121 ResourceRequestBlockedReason CanRequest( | |
| 122 Resource::Type, | |
| 123 const ResourceRequest&, | |
| 124 const KURL&, | |
| 125 const ResourceLoaderOptions&, | |
| 126 SecurityViolationReportingPolicy, | |
| 127 FetchParameters::OriginRestriction) const override; | |
| 128 ResourceRequestBlockedReason CanFollowRedirect( | |
| 129 Resource::Type, | |
| 130 const ResourceRequest&, | |
| 131 const KURL&, | |
| 132 const ResourceLoaderOptions&, | |
| 133 SecurityViolationReportingPolicy, | |
| 134 FetchParameters::OriginRestriction) const override; | |
| 135 ResourceRequestBlockedReason AllowResponse( | |
| 136 Resource::Type, | |
| 137 const ResourceRequest&, | |
| 138 const KURL&, | |
| 139 const ResourceLoaderOptions&) const override; | |
| 140 | |
| 141 bool IsControlledByServiceWorker() const override; | 121 bool IsControlledByServiceWorker() const override; |
| 142 int64_t ServiceWorkerID() const override; | 122 int64_t ServiceWorkerID() const override; |
| 143 | 123 |
| 144 bool IsMainFrame() const override; | 124 bool IsMainFrame() const override; |
| 145 bool DefersLoading() const override; | 125 bool DefersLoading() const override; |
| 146 bool IsLoadComplete() const override; | 126 bool IsLoadComplete() const override; |
| 147 bool PageDismissalEventBeingDispatched() const override; | 127 bool PageDismissalEventBeingDispatched() const override; |
| 148 bool UpdateTimingInfoForIFrameNavigation(ResourceTimingInfo*) override; | 128 bool UpdateTimingInfoForIFrameNavigation(ResourceTimingInfo*) override; |
| 149 void SendImagePing(const KURL&) override; | 129 void SendImagePing(const KURL&) override; |
| 150 void AddConsoleMessage(const String&, | 130 void AddConsoleMessage(const String&, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 179 | 159 |
| 180 // m_documentLoader is null when loading resources from an HTML import | 160 // m_documentLoader is null when loading resources from an HTML import |
| 181 // and in such cases we use the document loader of the importing frame. | 161 // and in such cases we use the document loader of the importing frame. |
| 182 // Convenient accessors below can be used to transparently access the | 162 // Convenient accessors below can be used to transparently access the |
| 183 // relevant document loader or frame in either cases without null-checks. | 163 // relevant document loader or frame in either cases without null-checks. |
| 184 // TODO(kinuko): Remove constness, these return non-const members. | 164 // TODO(kinuko): Remove constness, these return non-const members. |
| 185 DocumentLoader* MasterDocumentLoader() const; | 165 DocumentLoader* MasterDocumentLoader() const; |
| 186 Document* GetDocument() const; | 166 Document* GetDocument() const; |
| 187 LocalFrame* GetFrame() const; | 167 LocalFrame* GetFrame() const; |
| 188 LocalFrameClient* GetLocalFrameClient() const; | 168 LocalFrameClient* GetLocalFrameClient() const; |
| 189 | |
| 190 ContentSettingsClient* GetContentSettingsClient() const; | |
| 191 | |
| 192 LocalFrame* FrameOfImportsController() const; | 169 LocalFrame* FrameOfImportsController() const; |
| 193 | 170 |
| 194 ResourceRequestBlockedReason CanRequestInternal( | 171 // BaseFetchContext overrides: |
| 195 Resource::Type, | 172 ContentSettingsClient* GetContentSettingsClient() const override; |
| 173 Settings* GetSettings() const override; |
| 174 SubresourceFilter* GetSubresourceFilter() const override; |
| 175 SecurityContext* GetMainResourceSecurityContext() const override; |
| 176 bool ShouldBlockRequestByInspector(const ResourceRequest&) const override; |
| 177 void DispatchDidBlockRequest(const ResourceRequest&, |
| 178 const FetchInitiatorInfo&, |
| 179 ResourceRequestBlockedReason) const override; |
| 180 void ReportLocalLoadFailed(const KURL&) const override; |
| 181 bool ShouldBypassMainWorldCSP() const override; |
| 182 bool IsSVGImageChromeClient() const override; |
| 183 void CountUsage(UseCounter::Feature) const override; |
| 184 void CountDeprecation(UseCounter::Feature) const override; |
| 185 bool ShouldBlockFetchByMixedContentCheck( |
| 196 const ResourceRequest&, | 186 const ResourceRequest&, |
| 197 const KURL&, | 187 const KURL&, |
| 198 const ResourceLoaderOptions&, | 188 SecurityViolationReportingPolicy) const override; |
| 199 SecurityViolationReportingPolicy, | |
| 200 FetchParameters::OriginRestriction, | |
| 201 ResourceRequest::RedirectStatus) const; | |
| 202 | |
| 203 ResourceRequestBlockedReason CheckCSPForRequest( | |
| 204 const ResourceRequest&, | |
| 205 const KURL&, | |
| 206 const ResourceLoaderOptions&, | |
| 207 SecurityViolationReportingPolicy, | |
| 208 ResourceRequest::RedirectStatus, | |
| 209 ContentSecurityPolicy::CheckHeaderType) const; | |
| 210 | 189 |
| 211 Member<DocumentLoader> document_loader_; | 190 Member<DocumentLoader> document_loader_; |
| 212 }; | 191 }; |
| 213 | 192 |
| 214 } // namespace blink | 193 } // namespace blink |
| 215 | 194 |
| 216 #endif | 195 #endif |
| OLD | NEW |