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

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

Issue 2860093003: Implement device-ram client hints header (Closed)
Patch Set: Address Comments 2 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 const ResourceLoaderOptions&, 137 const ResourceLoaderOptions&,
138 SecurityViolationReportingPolicy, 138 SecurityViolationReportingPolicy,
139 ResourceRequest&) override; 139 ResourceRequest&) override;
140 void SetFirstPartyCookieAndRequestorOrigin(ResourceRequest&) override; 140 void SetFirstPartyCookieAndRequestorOrigin(ResourceRequest&) override;
141 141
142 // Exposed for testing. 142 // Exposed for testing.
143 void ModifyRequestForCSP(ResourceRequest&); 143 void ModifyRequestForCSP(ResourceRequest&);
144 void AddClientHintsIfNecessary(const ClientHintsPreferences&, 144 void AddClientHintsIfNecessary(const ClientHintsPreferences&,
145 const FetchParameters::ResourceWidth&, 145 const FetchParameters::ResourceWidth&,
146 ResourceRequest&); 146 ResourceRequest&);
147 static float ClientHintsDeviceRAM(int physical_memory_mb);
147 148
148 MHTMLArchive* Archive() const override; 149 MHTMLArchive* Archive() const override;
149 150
150 RefPtr<WebTaskRunner> LoadingTaskRunner() const override; 151 RefPtr<WebTaskRunner> LoadingTaskRunner() const override;
151 152
152 std::unique_ptr<WebURLLoader> CreateURLLoader() override; 153 std::unique_ptr<WebURLLoader> CreateURLLoader() override;
153 154
154 DECLARE_VIRTUAL_TRACE(); 155 DECLARE_VIRTUAL_TRACE();
155 156
156 private: 157 private:
(...skipping 27 matching lines...) Expand all
184 const ResourceRequest&, 185 const ResourceRequest&,
185 const KURL&, 186 const KURL&,
186 SecurityViolationReportingPolicy) const override; 187 SecurityViolationReportingPolicy) const override;
187 188
188 Member<DocumentLoader> document_loader_; 189 Member<DocumentLoader> document_loader_;
189 }; 190 };
190 191
191 } // namespace blink 192 } // namespace blink
192 193
193 #endif 194 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698