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 24 matching lines...) Expand all Loading... |
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 class CORE_EXPORT FetchRequest { | 42 class CORE_EXPORT FetchRequest { |
43 STACK_ALLOCATED(); | 43 STACK_ALLOCATED(); |
44 public: | 44 public: |
45 enum DeferOption { NoDefer, LazyLoad }; | 45 enum DeferOption { NoDefer, |
| 46 LazyLoad, |
| 47 IdleLoad }; |
46 enum OriginRestriction { UseDefaultOriginRestrictionForType, RestrictToSameO
rigin, NoOriginRestriction }; | 48 enum OriginRestriction { UseDefaultOriginRestrictionForType, RestrictToSameO
rigin, NoOriginRestriction }; |
47 | 49 |
48 struct ResourceWidth { | 50 struct ResourceWidth { |
49 DISALLOW_NEW(); | 51 DISALLOW_NEW(); |
50 float width; | 52 float width; |
51 bool isSet; | 53 bool isSet; |
52 | 54 |
53 ResourceWidth() | 55 ResourceWidth() |
54 : width(0) | 56 : width(0) |
55 , isSet(false) | 57 , isSet(false) |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 double m_preloadDiscoveryTime; | 110 double m_preloadDiscoveryTime; |
109 DeferOption m_defer; | 111 DeferOption m_defer; |
110 OriginRestriction m_originRestriction; | 112 OriginRestriction m_originRestriction; |
111 ResourceWidth m_resourceWidth; | 113 ResourceWidth m_resourceWidth; |
112 ClientHintsPreferences m_clientHintPreferences; | 114 ClientHintsPreferences m_clientHintPreferences; |
113 }; | 115 }; |
114 | 116 |
115 } // namespace blink | 117 } // namespace blink |
116 | 118 |
117 #endif | 119 #endif |
OLD | NEW |