| 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 const FetchParameters::ResourceWidth&, | 145 const FetchParameters::ResourceWidth&, |
| 146 ResourceRequest&); | 146 ResourceRequest&); |
| 147 | 147 |
| 148 MHTMLArchive* Archive() const override; | 148 MHTMLArchive* Archive() const override; |
| 149 | 149 |
| 150 ResourceLoadPriority ModifyPriorityForExperiments( | 150 ResourceLoadPriority ModifyPriorityForExperiments( |
| 151 ResourceLoadPriority) override; | 151 ResourceLoadPriority) override; |
| 152 | 152 |
| 153 RefPtr<WebTaskRunner> LoadingTaskRunner() const override; | 153 RefPtr<WebTaskRunner> LoadingTaskRunner() const override; |
| 154 | 154 |
| 155 std::unique_ptr<WebURLLoader> CreateURLLoader() override; |
| 156 |
| 155 DECLARE_VIRTUAL_TRACE(); | 157 DECLARE_VIRTUAL_TRACE(); |
| 156 | 158 |
| 157 private: | 159 private: |
| 158 FrameFetchContext(DocumentLoader*, Document*); | 160 FrameFetchContext(DocumentLoader*, Document*); |
| 159 | 161 |
| 160 // m_documentLoader is null when loading resources from an HTML import | 162 // m_documentLoader is null when loading resources from an HTML import |
| 161 // and in such cases we use the document loader of the importing frame. | 163 // and in such cases we use the document loader of the importing frame. |
| 162 // Convenient accessors below can be used to transparently access the | 164 // Convenient accessors below can be used to transparently access the |
| 163 // relevant document loader or frame in either cases without null-checks. | 165 // relevant document loader or frame in either cases without null-checks. |
| 164 // TODO(kinuko): Remove constness, these return non-const members. | 166 // TODO(kinuko): Remove constness, these return non-const members. |
| (...skipping 21 matching lines...) Expand all Loading... |
| 186 const ResourceRequest&, | 188 const ResourceRequest&, |
| 187 const KURL&, | 189 const KURL&, |
| 188 SecurityViolationReportingPolicy) const override; | 190 SecurityViolationReportingPolicy) const override; |
| 189 | 191 |
| 190 Member<DocumentLoader> document_loader_; | 192 Member<DocumentLoader> document_loader_; |
| 191 }; | 193 }; |
| 192 | 194 |
| 193 } // namespace blink | 195 } // namespace blink |
| 194 | 196 |
| 195 #endif | 197 #endif |
| OLD | NEW |