| 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 const ResourceLoaderOptions&, | 138 const ResourceLoaderOptions&, |
| 139 SecurityViolationReportingPolicy, | 139 SecurityViolationReportingPolicy, |
| 140 ResourceRequest&) override; | 140 ResourceRequest&) override; |
| 141 void SetFirstPartyCookieAndRequestorOrigin(ResourceRequest&) override; | 141 void SetFirstPartyCookieAndRequestorOrigin(ResourceRequest&) override; |
| 142 | 142 |
| 143 // Exposed for testing. | 143 // Exposed for testing. |
| 144 void ModifyRequestForCSP(ResourceRequest&); | 144 void ModifyRequestForCSP(ResourceRequest&); |
| 145 void AddClientHintsIfNecessary(const ClientHintsPreferences&, | 145 void AddClientHintsIfNecessary(const ClientHintsPreferences&, |
| 146 const FetchParameters::ResourceWidth&, | 146 const FetchParameters::ResourceWidth&, |
| 147 ResourceRequest&); | 147 ResourceRequest&); |
| 148 static float ClientHintsDeviceRAM(int64_t physical_memory_mb); |
| 148 | 149 |
| 149 MHTMLArchive* Archive() const override; | 150 MHTMLArchive* Archive() const override; |
| 150 | 151 |
| 151 RefPtr<WebTaskRunner> LoadingTaskRunner() const override; | 152 RefPtr<WebTaskRunner> LoadingTaskRunner() const override; |
| 152 | 153 |
| 153 std::unique_ptr<WebURLLoader> CreateURLLoader() override; | 154 std::unique_ptr<WebURLLoader> CreateURLLoader() override; |
| 154 | 155 |
| 155 DECLARE_VIRTUAL_TRACE(); | 156 DECLARE_VIRTUAL_TRACE(); |
| 156 | 157 |
| 157 private: | 158 private: |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 Member<DocumentLoader> document_loader_; | 196 Member<DocumentLoader> document_loader_; |
| 196 // FIXME: Oilpan: Ideally this should just be a traced Member but that will | 197 // FIXME: Oilpan: Ideally this should just be a traced Member but that will |
| 197 // currently leak because ComputedStyle and its data are not on the heap. | 198 // currently leak because ComputedStyle and its data are not on the heap. |
| 198 // See crbug.com/383860 for details. | 199 // See crbug.com/383860 for details. |
| 199 WeakMember<Document> document_; | 200 WeakMember<Document> document_; |
| 200 }; | 201 }; |
| 201 | 202 |
| 202 } // namespace blink | 203 } // namespace blink |
| 203 | 204 |
| 204 #endif | 205 #endif |
| OLD | NEW |