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

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

Issue 2390583002: [WIP] WebFonts cache-aware timeout adaption (Closed)
Patch Set: revise RemoteFontFaceSource cache-aware logic, fix Created 4 years, 2 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
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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 return m_options.contentSecurityPolicyNonce; 114 return m_options.contentSecurityPolicyNonce;
115 } 115 }
116 void setContentSecurityPolicyNonce(const String& nonce) { 116 void setContentSecurityPolicyNonce(const String& nonce) {
117 m_options.contentSecurityPolicyNonce = nonce; 117 m_options.contentSecurityPolicyNonce = nonce;
118 } 118 }
119 119
120 void setParserDisposition(ParserDisposition parserDisposition) { 120 void setParserDisposition(ParserDisposition parserDisposition) {
121 m_options.parserDisposition = parserDisposition; 121 m_options.parserDisposition = parserDisposition;
122 } 122 }
123 123
124 bool isCacheAwareLoadingEnabled() const {
125 return m_isCacheAwareLoadingEnabled;
126 }
127 void setIsCacheAwareLoadingEnabled(bool isCacheAwareLoadingEnabled) {
128 m_isCacheAwareLoadingEnabled = isCacheAwareLoadingEnabled;
129 }
130
124 void makeSynchronous(); 131 void makeSynchronous();
125 132
126 private: 133 private:
127 ResourceRequest m_resourceRequest; 134 ResourceRequest m_resourceRequest;
128 String m_charset; 135 String m_charset;
129 ResourceLoaderOptions m_options; 136 ResourceLoaderOptions m_options;
130 bool m_forPreload; 137 bool m_forPreload;
131 bool m_linkPreload; 138 bool m_linkPreload;
132 double m_preloadDiscoveryTime; 139 double m_preloadDiscoveryTime;
133 DeferOption m_defer; 140 DeferOption m_defer;
134 OriginRestriction m_originRestriction; 141 OriginRestriction m_originRestriction;
142 bool m_isCacheAwareLoadingEnabled;
135 ResourceWidth m_resourceWidth; 143 ResourceWidth m_resourceWidth;
136 ClientHintsPreferences m_clientHintPreferences; 144 ClientHintsPreferences m_clientHintPreferences;
137 }; 145 };
138 146
139 } // namespace blink 147 } // namespace blink
140 148
141 #endif 149 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698