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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
78 | 78 |
79 DeferOption defer() const { return m_defer; } | 79 DeferOption defer() const { return m_defer; } |
80 void setDefer(DeferOption defer) { m_defer = defer; } | 80 void setDefer(DeferOption defer) { m_defer = defer; } |
81 | 81 |
82 ResourceWidth getResourceWidth() const { return m_resourceWidth; } | 82 ResourceWidth getResourceWidth() const { return m_resourceWidth; } |
83 void setResourceWidth(ResourceWidth); | 83 void setResourceWidth(ResourceWidth); |
84 | 84 |
85 ClientHintsPreferences& clientHintsPreferences() { return m_clientHintPrefer ences; } | 85 ClientHintsPreferences& clientHintsPreferences() { return m_clientHintPrefer ences; } |
86 | 86 |
87 bool forPreload() const { return m_forPreload; } | 87 bool forPreload() const { return m_forPreload; } |
88 void setForPreload(bool forPreload) { m_forPreload = forPreload; } | 88 void setForPreload(bool forPreload, double discoveryTime = 0) |
Yoav Weiss
2016/05/31 18:36:18
maybe move the implementation to the cpp file, as
Charlie Harrison
2016/05/31 19:06:06
Done.
| |
89 { | |
90 m_forPreload = forPreload; | |
91 m_preloadDiscoveryTime = discoveryTime; | |
92 } | |
93 | |
94 double preloadDiscoveryTime() { return m_preloadDiscoveryTime; } | |
89 | 95 |
90 bool isLinkPreload() { return m_linkPreload; } | 96 bool isLinkPreload() { return m_linkPreload; } |
91 void setLinkPreload(bool isLinkPreload) { m_linkPreload = isLinkPreload; } | 97 void setLinkPreload(bool isLinkPreload) { m_linkPreload = isLinkPreload; } |
92 | 98 |
93 void setContentSecurityCheck(ContentSecurityPolicyDisposition contentSecurit yPolicyOption) { m_options.contentSecurityPolicyOption = contentSecurityPolicyOp tion; } | 99 void setContentSecurityCheck(ContentSecurityPolicyDisposition contentSecurit yPolicyOption) { m_options.contentSecurityPolicyOption = contentSecurityPolicyOp tion; } |
94 void setCrossOriginAccessControl(SecurityOrigin*, CrossOriginAttributeValue) ; | 100 void setCrossOriginAccessControl(SecurityOrigin*, CrossOriginAttributeValue) ; |
95 OriginRestriction getOriginRestriction() const { return m_originRestriction; } | 101 OriginRestriction getOriginRestriction() const { return m_originRestriction; } |
96 void setOriginRestriction(OriginRestriction restriction) { m_originRestricti on = restriction; } | 102 void setOriginRestriction(OriginRestriction restriction) { m_originRestricti on = restriction; } |
97 const IntegrityMetadataSet& integrityMetadata() const { return m_integrityMe tadata; } | 103 const IntegrityMetadataSet& integrityMetadata() const { return m_integrityMe tadata; } |
98 void setIntegrityMetadata(const IntegrityMetadataSet& metadata) { m_integrit yMetadata = metadata; } | 104 void setIntegrityMetadata(const IntegrityMetadataSet& metadata) { m_integrit yMetadata = metadata; } |
99 | 105 |
100 private: | 106 private: |
101 ResourceRequest m_resourceRequest; | 107 ResourceRequest m_resourceRequest; |
102 String m_charset; | 108 String m_charset; |
103 ResourceLoaderOptions m_options; | 109 ResourceLoaderOptions m_options; |
104 ResourceLoadPriority m_priority; | 110 ResourceLoadPriority m_priority; |
105 bool m_forPreload; | 111 bool m_forPreload; |
106 bool m_linkPreload; | 112 bool m_linkPreload; |
113 double m_preloadDiscoveryTime; | |
107 DeferOption m_defer; | 114 DeferOption m_defer; |
108 OriginRestriction m_originRestriction; | 115 OriginRestriction m_originRestriction; |
109 ResourceWidth m_resourceWidth; | 116 ResourceWidth m_resourceWidth; |
110 ClientHintsPreferences m_clientHintPreferences; | 117 ClientHintsPreferences m_clientHintPreferences; |
111 IntegrityMetadataSet m_integrityMetadata; | 118 IntegrityMetadataSet m_integrityMetadata; |
112 }; | 119 }; |
113 | 120 |
114 } // namespace blink | 121 } // namespace blink |
115 | 122 |
116 #endif | 123 #endif |
OLD | NEW |