Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(159)

Side by Side Diff: third_party/WebKit/Source/core/fetch/FetchRequest.h

Issue 2249913003: Remove blink::Resource::Type::LinkPrefetch and replace it by a flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/fetch/FetchRequest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 ClientHintsPreferences& clientHintsPreferences() { return m_clientHintPrefer ences; } 80 ClientHintsPreferences& clientHintsPreferences() { return m_clientHintPrefer ences; }
81 81
82 bool forPreload() const { return m_forPreload; } 82 bool forPreload() const { return m_forPreload; }
83 void setForPreload(bool forPreload, double discoveryTime = 0); 83 void setForPreload(bool forPreload, double discoveryTime = 0);
84 84
85 double preloadDiscoveryTime() { return m_preloadDiscoveryTime; } 85 double preloadDiscoveryTime() { return m_preloadDiscoveryTime; }
86 86
87 bool isLinkPreload() { return m_linkPreload; } 87 bool isLinkPreload() { return m_linkPreload; }
88 void setLinkPreload(bool isLinkPreload) { m_linkPreload = isLinkPreload; } 88 void setLinkPreload(bool isLinkPreload) { m_linkPreload = isLinkPreload; }
89 89
90 bool isPrefetch() const { return m_isPrefetch; }
91 void setIsPrefetch(bool isPrefetch) { m_isPrefetch = isPrefetch; }
92
90 void setContentSecurityCheck(ContentSecurityPolicyDisposition contentSecurit yPolicyOption) { m_options.contentSecurityPolicyOption = contentSecurityPolicyOp tion; } 93 void setContentSecurityCheck(ContentSecurityPolicyDisposition contentSecurit yPolicyOption) { m_options.contentSecurityPolicyOption = contentSecurityPolicyOp tion; }
91 void setCrossOriginAccessControl(SecurityOrigin*, CrossOriginAttributeValue) ; 94 void setCrossOriginAccessControl(SecurityOrigin*, CrossOriginAttributeValue) ;
92 OriginRestriction getOriginRestriction() const { return m_originRestriction; } 95 OriginRestriction getOriginRestriction() const { return m_originRestriction; }
93 void setOriginRestriction(OriginRestriction restriction) { m_originRestricti on = restriction; } 96 void setOriginRestriction(OriginRestriction restriction) { m_originRestricti on = restriction; }
94 const IntegrityMetadataSet integrityMetadata() const { return m_options.inte grityMetadata; } 97 const IntegrityMetadataSet integrityMetadata() const { return m_options.inte grityMetadata; }
95 void setIntegrityMetadata(const IntegrityMetadataSet& metadata) { m_options. integrityMetadata = metadata; } 98 void setIntegrityMetadata(const IntegrityMetadataSet& metadata) { m_options. integrityMetadata = metadata; }
96 99
97 String contentSecurityPolicyNonce() const { return m_options.contentSecurity PolicyNonce; } 100 String contentSecurityPolicyNonce() const { return m_options.contentSecurity PolicyNonce; }
98 void setContentSecurityPolicyNonce(const String& nonce) { m_options.contentS ecurityPolicyNonce = nonce; } 101 void setContentSecurityPolicyNonce(const String& nonce) { m_options.contentS ecurityPolicyNonce = nonce; }
99 102
100 void makeSynchronous(); 103 void makeSynchronous();
101 104
102 private: 105 private:
103 ResourceRequest m_resourceRequest; 106 ResourceRequest m_resourceRequest;
104 String m_charset; 107 String m_charset;
105 ResourceLoaderOptions m_options; 108 ResourceLoaderOptions m_options;
106 bool m_forPreload; 109 bool m_forPreload;
107 bool m_linkPreload; 110 bool m_linkPreload;
111 bool m_isPrefetch;
108 double m_preloadDiscoveryTime; 112 double m_preloadDiscoveryTime;
109 DeferOption m_defer; 113 DeferOption m_defer;
110 OriginRestriction m_originRestriction; 114 OriginRestriction m_originRestriction;
111 ResourceWidth m_resourceWidth; 115 ResourceWidth m_resourceWidth;
112 ClientHintsPreferences m_clientHintPreferences; 116 ClientHintsPreferences m_clientHintPreferences;
113 }; 117 };
114 118
115 } // namespace blink 119 } // namespace blink
116 120
117 #endif 121 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/fetch/FetchRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698