| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google, Inc. All rights reserved. | 2 * Copyright (C) 2012 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 #include "core/fetch/IntegrityMetadata.h" | 32 #include "core/fetch/IntegrityMetadata.h" |
| 33 #include "core/fetch/ResourceLoaderOptions.h" | 33 #include "core/fetch/ResourceLoaderOptions.h" |
| 34 #include "platform/CrossOriginAttributeValue.h" | 34 #include "platform/CrossOriginAttributeValue.h" |
| 35 #include "platform/network/ResourceRequest.h" | 35 #include "platform/network/ResourceRequest.h" |
| 36 #include "wtf/Allocator.h" | 36 #include "wtf/Allocator.h" |
| 37 #include "wtf/text/AtomicString.h" | 37 #include "wtf/text/AtomicString.h" |
| 38 | 38 |
| 39 namespace blink { | 39 namespace blink { |
| 40 class SecurityOrigin; | 40 class SecurityOrigin; |
| 41 | 41 |
| 42 // A FetchRequest is a "parameter object" for ResourceFetcher::requestResource |
| 43 // to avoid the method having too many arguments. |
| 42 class CORE_EXPORT FetchRequest { | 44 class CORE_EXPORT FetchRequest { |
| 43 STACK_ALLOCATED(); | 45 STACK_ALLOCATED(); |
| 44 | 46 |
| 45 public: | 47 public: |
| 46 enum DeferOption { NoDefer, LazyLoad, IdleLoad }; | 48 enum DeferOption { NoDefer, LazyLoad, IdleLoad }; |
| 47 enum OriginRestriction { | 49 enum OriginRestriction { |
| 48 UseDefaultOriginRestrictionForType, | 50 UseDefaultOriginRestrictionForType, |
| 49 RestrictToSameOrigin, | 51 RestrictToSameOrigin, |
| 50 NoOriginRestriction | 52 NoOriginRestriction |
| 51 }; | 53 }; |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 DeferOption m_defer; | 154 DeferOption m_defer; |
| 153 OriginRestriction m_originRestriction; | 155 OriginRestriction m_originRestriction; |
| 154 ResourceWidth m_resourceWidth; | 156 ResourceWidth m_resourceWidth; |
| 155 ClientHintsPreferences m_clientHintPreferences; | 157 ClientHintsPreferences m_clientHintPreferences; |
| 156 PlaceholderImageRequestType m_placeholderImageRequestType; | 158 PlaceholderImageRequestType m_placeholderImageRequestType; |
| 157 }; | 159 }; |
| 158 | 160 |
| 159 } // namespace blink | 161 } // namespace blink |
| 160 | 162 |
| 161 #endif | 163 #endif |
| OLD | NEW |