Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) | 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) |
| 3 Copyright (C) 2001 Dirk Mueller <mueller@kde.org> | 3 Copyright (C) 2001 Dirk Mueller <mueller@kde.org> |
| 4 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All | 4 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All |
| 5 rights reserved. | 5 rights reserved. |
| 6 Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/ | 6 Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/ |
| 7 | 7 |
| 8 This library is free software; you can redistribute it and/or | 8 This library is free software; you can redistribute it and/or |
| 9 modify it under the terms of the GNU Library General Public | 9 modify it under the terms of the GNU Library General Public |
| 10 License as published by the Free Software Foundation; either | 10 License as published by the Free Software Foundation; either |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 164 const String& charset, | 164 const String& charset, |
| 165 const ResourceFactory&); | 165 const ResourceFactory&); |
| 166 void storePerformanceTimingInitiatorInformation(Resource*); | 166 void storePerformanceTimingInitiatorInformation(Resource*); |
| 167 ResourceLoadPriority computeLoadPriority( | 167 ResourceLoadPriority computeLoadPriority( |
| 168 Resource::Type, | 168 Resource::Type, |
| 169 const ResourceRequest&, | 169 const ResourceRequest&, |
| 170 ResourcePriority::VisibilityStatus, | 170 ResourcePriority::VisibilityStatus, |
| 171 FetchRequest::DeferOption = FetchRequest::NoDefer, | 171 FetchRequest::DeferOption = FetchRequest::NoDefer, |
| 172 bool forPreload = false); | 172 bool forPreload = false); |
| 173 | 173 |
| 174 struct PrepareRequestReturnValues { | |
|
Charlie Harrison
2017/01/30 22:02:58
delete unused struct.
| |
| 175 bool isStaticData{false}; | |
| 176 bool shouldContinue{false}; | |
| 177 }; | |
| 178 | |
| 179 Resource* prepareRequest(FetchRequest&, | |
|
Charlie Harrison
2017/01/30 22:02:58
Please document this method. It is a bit strange f
| |
| 180 const ResourceFactory&, | |
| 181 const SubstituteData&, | |
| 182 unsigned long identifier, | |
| 183 bool& isStaticData, | |
| 184 bool& shouldContinue); | |
| 185 | |
| 174 Resource* resourceForStaticData(const FetchRequest&, | 186 Resource* resourceForStaticData(const FetchRequest&, |
| 175 const ResourceFactory&, | 187 const ResourceFactory&, |
| 176 const SubstituteData&); | 188 const SubstituteData&); |
| 177 Resource* resourceForBlockedRequest(const FetchRequest&, | 189 Resource* resourceForBlockedRequest(const FetchRequest&, |
| 178 const ResourceFactory&, | 190 const ResourceFactory&, |
| 179 ResourceRequestBlockedReason); | 191 ResourceRequestBlockedReason); |
| 180 | 192 |
| 181 // RevalidationPolicy enum values are used in UMAs https://crbug.com/579496. | 193 // RevalidationPolicy enum values are used in UMAs https://crbug.com/579496. |
| 182 enum RevalidationPolicy { Use, Revalidate, Reload, Load }; | 194 enum RevalidationPolicy { Use, Revalidate, Reload, Load }; |
| 183 RevalidationPolicy determineRevalidationPolicy(Resource::Type, | 195 RevalidationPolicy determineRevalidationPolicy(Resource::Type, |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 276 } | 288 } |
| 277 | 289 |
| 278 private: | 290 private: |
| 279 Member<ResourceFetcher> m_loader; | 291 Member<ResourceFetcher> m_loader; |
| 280 bool m_previousState; | 292 bool m_previousState; |
| 281 }; | 293 }; |
| 282 | 294 |
| 283 } // namespace blink | 295 } // namespace blink |
| 284 | 296 |
| 285 #endif // ResourceFetcher_h | 297 #endif // ResourceFetcher_h |
| OLD | NEW |