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

Side by Side Diff: third_party/WebKit/Source/core/loader/FrameFetchContext.h

Issue 2804843005: Implement the infrastructure of creating WorkerFetchContext in worker global scope. (Closed)
Patch Set: rebase Created 3 years, 8 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 const FetchParameters::ResourceWidth&, 165 const FetchParameters::ResourceWidth&,
166 ResourceRequest&); 166 ResourceRequest&);
167 167
168 MHTMLArchive* Archive() const override; 168 MHTMLArchive* Archive() const override;
169 169
170 ResourceLoadPriority ModifyPriorityForExperiments( 170 ResourceLoadPriority ModifyPriorityForExperiments(
171 ResourceLoadPriority) override; 171 ResourceLoadPriority) override;
172 172
173 RefPtr<WebTaskRunner> LoadingTaskRunner() const override; 173 RefPtr<WebTaskRunner> LoadingTaskRunner() const override;
174 174
175 std::unique_ptr<WebURLLoader> CreateURLLoader() override;
176
175 DECLARE_VIRTUAL_TRACE(); 177 DECLARE_VIRTUAL_TRACE();
176 178
177 private: 179 private:
178 FrameFetchContext(DocumentLoader*, Document*); 180 FrameFetchContext(DocumentLoader*, Document*);
179 181
180 // m_documentLoader is null when loading resources from an HTML import 182 // 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. 183 // and in such cases we use the document loader of the importing frame.
182 // Convenient accessors below can be used to transparently access the 184 // Convenient accessors below can be used to transparently access the
183 // relevant document loader or frame in either cases without null-checks. 185 // relevant document loader or frame in either cases without null-checks.
184 // TODO(kinuko): Remove constness, these return non-const members. 186 // TODO(kinuko): Remove constness, these return non-const members.
(...skipping 22 matching lines...) Expand all
207 SecurityViolationReportingPolicy, 209 SecurityViolationReportingPolicy,
208 ResourceRequest::RedirectStatus, 210 ResourceRequest::RedirectStatus,
209 ContentSecurityPolicy::CheckHeaderType) const; 211 ContentSecurityPolicy::CheckHeaderType) const;
210 212
211 Member<DocumentLoader> document_loader_; 213 Member<DocumentLoader> document_loader_;
212 }; 214 };
213 215
214 } // namespace blink 216 } // namespace blink
215 217
216 #endif 218 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698