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

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

Issue 2807533003: [WIP2] off-main-thread loading
Patch Set: call set_is_secure_context in EmbeddedSharedWorkerStub::CreateWorkerFetchContext() Created 3 years, 7 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 bool IsControlledByServiceWorker() const override; 121 bool IsControlledByServiceWorker() const override;
122 int64_t ServiceWorkerID() const override; 122 int64_t ServiceWorkerID() const override;
123 123
124 int ApplicationCacheHostID() const override;
125
124 bool IsMainFrame() const override; 126 bool IsMainFrame() const override;
125 bool DefersLoading() const override; 127 bool DefersLoading() const override;
126 bool IsLoadComplete() const override; 128 bool IsLoadComplete() const override;
127 bool PageDismissalEventBeingDispatched() const override; 129 bool PageDismissalEventBeingDispatched() const override;
128 bool UpdateTimingInfoForIFrameNavigation(ResourceTimingInfo*) override; 130 bool UpdateTimingInfoForIFrameNavigation(ResourceTimingInfo*) override;
129 void SendImagePing(const KURL&) override; 131 void SendImagePing(const KURL&) override;
130 void AddConsoleMessage(const String&, 132 void AddConsoleMessage(const String&,
131 LogMessageType = kLogErrorMessage) const override; 133 LogMessageType = kLogErrorMessage) const override;
132 134
133 void PopulateResourceRequest(const KURL&, 135 void PopulateResourceRequest(const KURL&,
134 Resource::Type, 136 Resource::Type,
135 const ClientHintsPreferences&, 137 const ClientHintsPreferences&,
136 const FetchParameters::ResourceWidth&, 138 const FetchParameters::ResourceWidth&,
137 const ResourceLoaderOptions&, 139 const ResourceLoaderOptions&,
138 SecurityViolationReportingPolicy, 140 SecurityViolationReportingPolicy,
139 ResourceRequest&) override; 141 ResourceRequest&) override;
140 void SetFirstPartyCookieAndRequestorOrigin(ResourceRequest&) override; 142 void SetFirstPartyCookieAndRequestorOrigin(ResourceRequest&) override;
141 143
142 // Exposed for testing. 144 // Exposed for testing.
143 void ModifyRequestForCSP(ResourceRequest&); 145 void ModifyRequestForCSP(ResourceRequest&);
144 void AddClientHintsIfNecessary(const ClientHintsPreferences&, 146 void AddClientHintsIfNecessary(const ClientHintsPreferences&,
145 const FetchParameters::ResourceWidth&, 147 const FetchParameters::ResourceWidth&,
146 ResourceRequest&); 148 ResourceRequest&);
147 149
148 MHTMLArchive* Archive() const override; 150 MHTMLArchive* Archive() const override;
149 151
150 ResourceLoadPriority ModifyPriorityForExperiments( 152 ResourceLoadPriority ModifyPriorityForExperiments(
151 ResourceLoadPriority) override; 153 ResourceLoadPriority) override;
152 154
155 RefPtr<WebTaskRunner> TimerTaskRunner() const override;
153 RefPtr<WebTaskRunner> LoadingTaskRunner() const override; 156 RefPtr<WebTaskRunner> LoadingTaskRunner() const override;
154 157
155 std::unique_ptr<WebURLLoader> CreateURLLoader() override; 158 std::unique_ptr<WebURLLoader> CreateURLLoader() override;
156 159
157 DECLARE_VIRTUAL_TRACE(); 160 DECLARE_VIRTUAL_TRACE();
158 161
159 private: 162 private:
160 FrameFetchContext(DocumentLoader*, Document*); 163 FrameFetchContext(DocumentLoader*, Document*);
161 164
162 // m_documentLoader is null when loading resources from an HTML import 165 // m_documentLoader is null when loading resources from an HTML import
(...skipping 25 matching lines...) Expand all
188 const ResourceRequest&, 191 const ResourceRequest&,
189 const KURL&, 192 const KURL&,
190 SecurityViolationReportingPolicy) const override; 193 SecurityViolationReportingPolicy) const override;
191 194
192 Member<DocumentLoader> document_loader_; 195 Member<DocumentLoader> document_loader_;
193 }; 196 };
194 197
195 } // namespace blink 198 } // namespace blink
196 199
197 #endif 200 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698