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

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: incorporated kinuko's comment 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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 const FetchParameters::ResourceWidth&, 153 const FetchParameters::ResourceWidth&,
154 ResourceRequest&); 154 ResourceRequest&);
155 155
156 MHTMLArchive* Archive() const override; 156 MHTMLArchive* Archive() const override;
157 157
158 ResourceLoadPriority ModifyPriorityForExperiments( 158 ResourceLoadPriority ModifyPriorityForExperiments(
159 ResourceLoadPriority) override; 159 ResourceLoadPriority) override;
160 160
161 RefPtr<WebTaskRunner> LoadingTaskRunner() const override; 161 RefPtr<WebTaskRunner> LoadingTaskRunner() const override;
162 162
163 WebURLLoader* CreateURLLoader() override;
yhirano 2017/04/20 04:26:59 I'm landing https://codereview.chromium.org/283103
horo 2017/04/20 08:35:43 Done.
164
163 DECLARE_VIRTUAL_TRACE(); 165 DECLARE_VIRTUAL_TRACE();
164 166
165 private: 167 private:
166 FrameFetchContext(DocumentLoader*, Document*); 168 FrameFetchContext(DocumentLoader*, Document*);
167 169
168 // m_documentLoader is null when loading resources from an HTML import 170 // 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. 171 // and in such cases we use the document loader of the importing frame.
170 // Convenient accessors below can be used to transparently access the 172 // Convenient accessors below can be used to transparently access the
171 // relevant document loader or frame in either cases without null-checks. 173 // relevant document loader or frame in either cases without null-checks.
172 // TODO(kinuko): Remove constness, these return non-const members. 174 // TODO(kinuko): Remove constness, these return non-const members.
(...skipping 14 matching lines...) Expand all
187 SecurityViolationReportingPolicy, 189 SecurityViolationReportingPolicy,
188 FetchParameters::OriginRestriction, 190 FetchParameters::OriginRestriction,
189 ResourceRequest::RedirectStatus) const; 191 ResourceRequest::RedirectStatus) const;
190 192
191 Member<DocumentLoader> document_loader_; 193 Member<DocumentLoader> document_loader_;
192 }; 194 };
193 195
194 } // namespace blink 196 } // namespace blink
195 197
196 #endif 198 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698