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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 FetchRequest(const ResourceRequest&, | 74 FetchRequest(const ResourceRequest&, |
75 const AtomicString& initiator, | 75 const AtomicString& initiator, |
76 const ResourceLoaderOptions&); | 76 const ResourceLoaderOptions&); |
77 FetchRequest(const ResourceRequest&, const FetchInitiatorInfo&); | 77 FetchRequest(const ResourceRequest&, const FetchInitiatorInfo&); |
78 ~FetchRequest(); | 78 ~FetchRequest(); |
79 | 79 |
80 ResourceRequest& mutableResourceRequest() { return m_resourceRequest; } | 80 ResourceRequest& mutableResourceRequest() { return m_resourceRequest; } |
81 const ResourceRequest& resourceRequest() const { return m_resourceRequest; } | 81 const ResourceRequest& resourceRequest() const { return m_resourceRequest; } |
82 const KURL& url() const { return m_resourceRequest.url(); } | 82 const KURL& url() const { return m_resourceRequest.url(); } |
83 | 83 |
| 84 void setRequestContext(WebURLRequest::RequestContext context) { |
| 85 m_resourceRequest.setRequestContext(context); |
| 86 } |
| 87 |
84 const String& charset() const { return m_charset; } | 88 const String& charset() const { return m_charset; } |
85 void setCharset(const String& charset) { m_charset = charset; } | 89 void setCharset(const String& charset) { m_charset = charset; } |
86 | 90 |
87 const ResourceLoaderOptions& options() const { return m_options; } | 91 const ResourceLoaderOptions& options() const { return m_options; } |
88 | 92 |
89 DeferOption defer() const { return m_defer; } | 93 DeferOption defer() const { return m_defer; } |
90 void setDefer(DeferOption defer) { m_defer = defer; } | 94 void setDefer(DeferOption defer) { m_defer = defer; } |
91 | 95 |
92 ResourceWidth getResourceWidth() const { return m_resourceWidth; } | 96 ResourceWidth getResourceWidth() const { return m_resourceWidth; } |
93 void setResourceWidth(ResourceWidth); | 97 void setResourceWidth(ResourceWidth); |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 DeferOption m_defer; | 162 DeferOption m_defer; |
159 OriginRestriction m_originRestriction; | 163 OriginRestriction m_originRestriction; |
160 ResourceWidth m_resourceWidth; | 164 ResourceWidth m_resourceWidth; |
161 ClientHintsPreferences m_clientHintPreferences; | 165 ClientHintsPreferences m_clientHintPreferences; |
162 PlaceholderImageRequestType m_placeholderImageRequestType; | 166 PlaceholderImageRequestType m_placeholderImageRequestType; |
163 }; | 167 }; |
164 | 168 |
165 } // namespace blink | 169 } // namespace blink |
166 | 170 |
167 #endif | 171 #endif |
OLD | NEW |