| 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 FetchParameters::OriginRestriction) const override; | 125 FetchParameters::OriginRestriction) const override; |
| 126 ResourceRequestBlockedReason AllowResponse( | 126 ResourceRequestBlockedReason AllowResponse( |
| 127 Resource::Type, | 127 Resource::Type, |
| 128 const ResourceRequest&, | 128 const ResourceRequest&, |
| 129 const KURL&, | 129 const KURL&, |
| 130 const ResourceLoaderOptions&) const override; | 130 const ResourceLoaderOptions&) const override; |
| 131 | 131 |
| 132 bool IsControlledByServiceWorker() const override; | 132 bool IsControlledByServiceWorker() const override; |
| 133 int64_t ServiceWorkerID() const override; | 133 int64_t ServiceWorkerID() const override; |
| 134 | 134 |
| 135 int ApplicationCacheHostID() const override; |
| 136 |
| 135 bool IsMainFrame() const override; | 137 bool IsMainFrame() const override; |
| 136 bool DefersLoading() const override; | 138 bool DefersLoading() const override; |
| 137 bool IsLoadComplete() const override; | 139 bool IsLoadComplete() const override; |
| 138 bool PageDismissalEventBeingDispatched() const override; | 140 bool PageDismissalEventBeingDispatched() const override; |
| 139 bool UpdateTimingInfoForIFrameNavigation(ResourceTimingInfo*) override; | 141 bool UpdateTimingInfoForIFrameNavigation(ResourceTimingInfo*) override; |
| 140 void SendImagePing(const KURL&) override; | 142 void SendImagePing(const KURL&) override; |
| 141 void AddConsoleMessage(const String&, | 143 void AddConsoleMessage(const String&, |
| 142 LogMessageType = kLogErrorMessage) const override; | 144 LogMessageType = kLogErrorMessage) const override; |
| 143 | 145 |
| 144 void PopulateResourceRequest(Resource::Type, | 146 void PopulateResourceRequest(Resource::Type, |
| 145 const ClientHintsPreferences&, | 147 const ClientHintsPreferences&, |
| 146 const FetchParameters::ResourceWidth&, | 148 const FetchParameters::ResourceWidth&, |
| 147 ResourceRequest&) override; | 149 ResourceRequest&) override; |
| 148 void SetFirstPartyCookieAndRequestorOrigin(ResourceRequest&) override; | 150 void SetFirstPartyCookieAndRequestorOrigin(ResourceRequest&) override; |
| 149 | 151 |
| 150 // Exposed for testing. | 152 // Exposed for testing. |
| 151 void ModifyRequestForCSP(ResourceRequest&); | 153 void ModifyRequestForCSP(ResourceRequest&); |
| 152 void AddClientHintsIfNecessary(const ClientHintsPreferences&, | 154 void AddClientHintsIfNecessary(const ClientHintsPreferences&, |
| 153 const FetchParameters::ResourceWidth&, | 155 const FetchParameters::ResourceWidth&, |
| 154 ResourceRequest&); | 156 ResourceRequest&); |
| 155 | 157 |
| 156 MHTMLArchive* Archive() const override; | 158 MHTMLArchive* Archive() const override; |
| 157 | 159 |
| 158 ResourceLoadPriority ModifyPriorityForExperiments( | 160 ResourceLoadPriority ModifyPriorityForExperiments( |
| 159 ResourceLoadPriority) override; | 161 ResourceLoadPriority) override; |
| 160 | 162 |
| 163 RefPtr<WebTaskRunner> TimerTaskRunner() const override; |
| 161 RefPtr<WebTaskRunner> LoadingTaskRunner() const override; | 164 RefPtr<WebTaskRunner> LoadingTaskRunner() const override; |
| 162 | 165 |
| 166 WebURLLoader* CreateURLLoader() override; |
| 167 |
| 163 DECLARE_VIRTUAL_TRACE(); | 168 DECLARE_VIRTUAL_TRACE(); |
| 164 | 169 |
| 165 private: | 170 private: |
| 166 FrameFetchContext(DocumentLoader*, Document*); | 171 FrameFetchContext(DocumentLoader*, Document*); |
| 167 | 172 |
| 168 // m_documentLoader is null when loading resources from an HTML import | 173 // m_documentLoader is null when loading resources from an HTML import |
| 169 // and in such cases we use the document loader of the importing frame. | 174 // and in such cases we use the document loader of the importing frame. |
| 170 // Convenient accessors below can be used to transparently access the | 175 // Convenient accessors below can be used to transparently access the |
| 171 // relevant document loader or frame in either cases without null-checks. | 176 // relevant document loader or frame in either cases without null-checks. |
| 172 // TODO(kinuko): Remove constness, these return non-const members. | 177 // TODO(kinuko): Remove constness, these return non-const members. |
| (...skipping 14 matching lines...) Expand all Loading... |
| 187 SecurityViolationReportingPolicy, | 192 SecurityViolationReportingPolicy, |
| 188 FetchParameters::OriginRestriction, | 193 FetchParameters::OriginRestriction, |
| 189 ResourceRequest::RedirectStatus) const; | 194 ResourceRequest::RedirectStatus) const; |
| 190 | 195 |
| 191 Member<DocumentLoader> document_loader_; | 196 Member<DocumentLoader> document_loader_; |
| 192 }; | 197 }; |
| 193 | 198 |
| 194 } // namespace blink | 199 } // namespace blink |
| 195 | 200 |
| 196 #endif | 201 #endif |
| OLD | NEW |