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

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

Issue 1141883003: Enable `as` based priorities for <link rel=preload> (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Review comments Created 5 years, 7 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 | « Source/core/core.gypi ('k') | Source/core/fetch/Resource.h » ('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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 ~FetchRequest(); 59 ~FetchRequest();
60 60
61 ResourceRequest& mutableResourceRequest() { return m_resourceRequest; } 61 ResourceRequest& mutableResourceRequest() { return m_resourceRequest; }
62 const ResourceRequest& resourceRequest() const { return m_resourceRequest; } 62 const ResourceRequest& resourceRequest() const { return m_resourceRequest; }
63 const KURL& url() const { return m_resourceRequest.url(); } 63 const KURL& url() const { return m_resourceRequest.url(); }
64 const String& charset() const { return m_charset; } 64 const String& charset() const { return m_charset; }
65 void setCharset(const String& charset) { m_charset = charset; } 65 void setCharset(const String& charset) { m_charset = charset; }
66 const ResourceLoaderOptions& options() const { return m_options; } 66 const ResourceLoaderOptions& options() const { return m_options; }
67 void setOptions(const ResourceLoaderOptions& options) { m_options = options; } 67 void setOptions(const ResourceLoaderOptions& options) { m_options = options; }
68 ResourceLoadPriority priority() const { return m_priority; } 68 ResourceLoadPriority priority() const { return m_priority; }
69 void setPriority(ResourceLoadPriority priority) { m_priority = priority; }
69 bool forPreload() const { return m_forPreload; } 70 bool forPreload() const { return m_forPreload; }
70 void setForPreload(bool forPreload) { m_forPreload = forPreload; } 71 void setForPreload(bool forPreload) { m_forPreload = forPreload; }
71 DeferOption defer() const { return m_defer; } 72 DeferOption defer() const { return m_defer; }
72 ResourceWidth resourceWidth() const { return m_resourceWidth; } 73 ResourceWidth resourceWidth() const { return m_resourceWidth; }
73 const ClientHintsPreferences& clientHintsPreferences() const { return m_clie ntHintPreferences; } 74 const ClientHintsPreferences& clientHintsPreferences() const { return m_clie ntHintPreferences; }
74 void setDefer(DeferOption defer) { m_defer = defer; } 75 void setDefer(DeferOption defer) { m_defer = defer; }
75 void setContentSecurityCheck(ContentSecurityPolicyDisposition contentSecurit yPolicyOption) { m_options.contentSecurityPolicyOption = contentSecurityPolicyOp tion; } 76 void setContentSecurityCheck(ContentSecurityPolicyDisposition contentSecurit yPolicyOption) { m_options.contentSecurityPolicyOption = contentSecurityPolicyOp tion; }
76 void setCrossOriginAccessControl(SecurityOrigin*, StoredCredentials, Credent ialRequest); 77 void setCrossOriginAccessControl(SecurityOrigin*, StoredCredentials, Credent ialRequest);
77 void setCrossOriginAccessControl(SecurityOrigin*, StoredCredentials); 78 void setCrossOriginAccessControl(SecurityOrigin*, StoredCredentials);
78 void setCrossOriginAccessControl(SecurityOrigin*, const AtomicString& crossO riginMode); 79 void setCrossOriginAccessControl(SecurityOrigin*, const AtomicString& crossO riginMode);
(...skipping 10 matching lines...) Expand all
89 bool m_forPreload; 90 bool m_forPreload;
90 DeferOption m_defer; 91 DeferOption m_defer;
91 OriginRestriction m_originRestriction; 92 OriginRestriction m_originRestriction;
92 ResourceWidth m_resourceWidth; 93 ResourceWidth m_resourceWidth;
93 ClientHintsPreferences m_clientHintPreferences; 94 ClientHintsPreferences m_clientHintPreferences;
94 }; 95 };
95 96
96 } // namespace blink 97 } // namespace blink
97 98
98 #endif 99 #endif
OLDNEW
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/fetch/Resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698