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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 28 matching lines...) Expand all Loading... |
185 const ResourceRequest&, | 186 const ResourceRequest&, |
186 const KURL&, | 187 const KURL&, |
187 SecurityViolationReportingPolicy) const override; | 188 SecurityViolationReportingPolicy) const override; |
188 | 189 |
189 Member<DocumentLoader> document_loader_; | 190 Member<DocumentLoader> document_loader_; |
190 }; | 191 }; |
191 | 192 |
192 } // namespace blink | 193 } // namespace blink |
193 | 194 |
194 #endif | 195 #endif |
OLD | NEW |