| 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 enum PrepareRequestResult { Abort, Continue, Block }; |
| 175 |
| 176 PrepareRequestResult prepareRequest(FetchRequest&, |
| 177 const ResourceFactory&, |
| 178 const SubstituteData&, |
| 179 unsigned long identifier, |
| 180 ResourceRequestBlockedReason&); |
| 181 |
| 174 Resource* resourceForStaticData(const FetchRequest&, | 182 Resource* resourceForStaticData(const FetchRequest&, |
| 175 const ResourceFactory&, | 183 const ResourceFactory&, |
| 176 const SubstituteData&); | 184 const SubstituteData&); |
| 177 Resource* resourceForBlockedRequest(const FetchRequest&, | 185 Resource* resourceForBlockedRequest(const FetchRequest&, |
| 178 const ResourceFactory&, | 186 const ResourceFactory&, |
| 179 ResourceRequestBlockedReason); | 187 ResourceRequestBlockedReason); |
| 180 | 188 |
| 181 // RevalidationPolicy enum values are used in UMAs https://crbug.com/579496. | 189 // RevalidationPolicy enum values are used in UMAs https://crbug.com/579496. |
| 182 enum RevalidationPolicy { Use, Revalidate, Reload, Load }; | 190 enum RevalidationPolicy { Use, Revalidate, Reload, Load }; |
| 183 RevalidationPolicy determineRevalidationPolicy(Resource::Type, | 191 RevalidationPolicy determineRevalidationPolicy(Resource::Type, |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 } | 284 } |
| 277 | 285 |
| 278 private: | 286 private: |
| 279 Member<ResourceFetcher> m_loader; | 287 Member<ResourceFetcher> m_loader; |
| 280 bool m_previousState; | 288 bool m_previousState; |
| 281 }; | 289 }; |
| 282 | 290 |
| 283 } // namespace blink | 291 } // namespace blink |
| 284 | 292 |
| 285 #endif // ResourceFetcher_h | 293 #endif // ResourceFetcher_h |
| OLD | NEW |