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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 }; | 54 }; |
55 | 55 |
56 explicit FetchRequest(const ResourceRequest&, const AtomicString& initiator,
const String& charset = String(), ResourceLoadPriority = ResourceLoadPriorityUn
resolved); | 56 explicit FetchRequest(const ResourceRequest&, const AtomicString& initiator,
const String& charset = String(), ResourceLoadPriority = ResourceLoadPriorityUn
resolved); |
57 FetchRequest(const ResourceRequest&, const AtomicString& initiator, const Re
sourceLoaderOptions&); | 57 FetchRequest(const ResourceRequest&, const AtomicString& initiator, const Re
sourceLoaderOptions&); |
58 FetchRequest(const ResourceRequest&, const FetchInitiatorInfo&); | 58 FetchRequest(const ResourceRequest&, const FetchInitiatorInfo&); |
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 |
64 const String& charset() const { return m_charset; } | 65 const String& charset() const { return m_charset; } |
65 void setCharset(const String& charset) { m_charset = charset; } | 66 void setCharset(const String& charset) { m_charset = charset; } |
| 67 |
66 const ResourceLoaderOptions& options() const { return m_options; } | 68 const ResourceLoaderOptions& options() const { return m_options; } |
67 void setOptions(const ResourceLoaderOptions& options) { m_options = options;
} | 69 void setOptions(const ResourceLoaderOptions& options) { m_options = options;
} |
| 70 |
68 ResourceLoadPriority priority() const { return m_priority; } | 71 ResourceLoadPriority priority() const { return m_priority; } |
69 void setPriority(ResourceLoadPriority priority) { m_priority = priority; } | 72 void setPriority(ResourceLoadPriority priority) { m_priority = priority; } |
| 73 |
| 74 DeferOption defer() const { return m_defer; } |
| 75 void setDefer(DeferOption defer) { m_defer = defer; } |
| 76 |
| 77 ResourceWidth resourceWidth() const { return m_resourceWidth; } |
| 78 void setResourceWidth(ResourceWidth); |
| 79 |
| 80 ClientHintsPreferences& clientHintsPreferences() { return m_clientHintPrefer
ences; } |
| 81 |
70 bool forPreload() const { return m_forPreload; } | 82 bool forPreload() const { return m_forPreload; } |
71 void setForPreload(bool forPreload) { m_forPreload = forPreload; } | 83 void setForPreload(bool forPreload) { m_forPreload = forPreload; } |
72 DeferOption defer() const { return m_defer; } | 84 |
73 ResourceWidth resourceWidth() const { return m_resourceWidth; } | |
74 const ClientHintsPreferences& clientHintsPreferences() const { return m_clie
ntHintPreferences; } | |
75 void setDefer(DeferOption defer) { m_defer = defer; } | |
76 void setContentSecurityCheck(ContentSecurityPolicyDisposition contentSecurit
yPolicyOption) { m_options.contentSecurityPolicyOption = contentSecurityPolicyOp
tion; } | 85 void setContentSecurityCheck(ContentSecurityPolicyDisposition contentSecurit
yPolicyOption) { m_options.contentSecurityPolicyOption = contentSecurityPolicyOp
tion; } |
77 void setCrossOriginAccessControl(SecurityOrigin*, StoredCredentials, Credent
ialRequest); | 86 void setCrossOriginAccessControl(SecurityOrigin*, StoredCredentials, Credent
ialRequest); |
78 void setCrossOriginAccessControl(SecurityOrigin*, StoredCredentials); | 87 void setCrossOriginAccessControl(SecurityOrigin*, StoredCredentials); |
79 void setCrossOriginAccessControl(SecurityOrigin*, const AtomicString& crossO
riginMode); | 88 void setCrossOriginAccessControl(SecurityOrigin*, const AtomicString& crossO
riginMode); |
80 OriginRestriction originRestriction() const { return m_originRestriction; } | 89 OriginRestriction originRestriction() const { return m_originRestriction; } |
81 void setOriginRestriction(OriginRestriction restriction) { m_originRestricti
on = restriction; } | 90 void setOriginRestriction(OriginRestriction restriction) { m_originRestricti
on = restriction; } |
82 void setResourceWidth(ResourceWidth); | |
83 void setClientHintsPreferences(ClientHintsPreferences& preferences) { m_clie
ntHintPreferences.set(preferences); } | |
84 | 91 |
85 private: | 92 private: |
86 ResourceRequest m_resourceRequest; | 93 ResourceRequest m_resourceRequest; |
87 String m_charset; | 94 String m_charset; |
88 ResourceLoaderOptions m_options; | 95 ResourceLoaderOptions m_options; |
89 ResourceLoadPriority m_priority; | 96 ResourceLoadPriority m_priority; |
90 bool m_forPreload; | 97 bool m_forPreload; |
91 DeferOption m_defer; | 98 DeferOption m_defer; |
92 OriginRestriction m_originRestriction; | 99 OriginRestriction m_originRestriction; |
93 ResourceWidth m_resourceWidth; | 100 ResourceWidth m_resourceWidth; |
94 ClientHintsPreferences m_clientHintPreferences; | 101 ClientHintsPreferences m_clientHintPreferences; |
95 }; | 102 }; |
96 | 103 |
97 } // namespace blink | 104 } // namespace blink |
98 | 105 |
99 #endif | 106 #endif |
OLD | NEW |