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 26 matching lines...) Expand all Loading... |
37 #include "platform/wtf/text/TextEncoding.h" | 37 #include "platform/wtf/text/TextEncoding.h" |
38 #include "public/platform/WebURLRequest.h" | 38 #include "public/platform/WebURLRequest.h" |
39 | 39 |
40 namespace blink { | 40 namespace blink { |
41 class SecurityOrigin; | 41 class SecurityOrigin; |
42 | 42 |
43 // A FetchParameters is a "parameter object" for | 43 // A FetchParameters is a "parameter object" for |
44 // ResourceFetcher::requestResource to avoid the method having too many | 44 // ResourceFetcher::requestResource to avoid the method having too many |
45 // arguments. | 45 // arguments. |
46 class PLATFORM_EXPORT FetchParameters { | 46 class PLATFORM_EXPORT FetchParameters { |
47 STACK_ALLOCATED(); | 47 DISALLOW_NEW(); |
48 | 48 |
49 public: | 49 public: |
50 enum DeferOption { kNoDefer, kLazyLoad, kIdleLoad }; | 50 enum DeferOption { kNoDefer, kLazyLoad, kIdleLoad }; |
51 enum class SpeculativePreloadType { | 51 enum class SpeculativePreloadType { |
52 kNotSpeculative, | 52 kNotSpeculative, |
53 kInDocument, // The request was discovered in the main document | 53 kInDocument, // The request was discovered in the main document |
54 kInserted // The request was discovered in a document.write() | 54 kInserted // The request was discovered in a document.write() |
55 }; | 55 }; |
56 enum OriginRestriction { | 56 enum OriginRestriction { |
57 kUseDefaultOriginRestrictionForType, | 57 kUseDefaultOriginRestrictionForType, |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 DeferOption defer_; | 195 DeferOption defer_; |
196 OriginRestriction origin_restriction_; | 196 OriginRestriction origin_restriction_; |
197 ResourceWidth resource_width_; | 197 ResourceWidth resource_width_; |
198 ClientHintsPreferences client_hint_preferences_; | 198 ClientHintsPreferences client_hint_preferences_; |
199 PlaceholderImageRequestType placeholder_image_request_type_; | 199 PlaceholderImageRequestType placeholder_image_request_type_; |
200 }; | 200 }; |
201 | 201 |
202 } // namespace blink | 202 } // namespace blink |
203 | 203 |
204 #endif | 204 #endif |
OLD | NEW |