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

Side by Side Diff: Source/platform/network/ResourceRequest.h

Issue 610403002: [ServiceWorker] Plumbing the request credentials mode to the ServiceWorker. [1/2 blink] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: incorporated yhirano's comment Created 6 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) 2003, 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2003, 2006 Apple Computer, Inc. All rights reserved.
3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
4 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. 4 * Copyright (C) 2009, 2012 Google Inc. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 193
194 blink::WebURLRequest::FetchRequestMode fetchRequestMode() const 194 blink::WebURLRequest::FetchRequestMode fetchRequestMode() const
195 { 195 {
196 return m_fetchRequestMode; 196 return m_fetchRequestMode;
197 } 197 }
198 void setFetchRequestMode(blink::WebURLRequest::FetchRequestMode mode) 198 void setFetchRequestMode(blink::WebURLRequest::FetchRequestMode mode)
199 { 199 {
200 m_fetchRequestMode = mode; 200 m_fetchRequestMode = mode;
201 } 201 }
202 202
203 blink::WebURLRequest::FetchCredentialsMode fetchCredentialsMode() const
204 {
205 return m_fetchCredentialsMode;
206 }
207 void setFetchCredentialsMode(blink::WebURLRequest::FetchCredentialsMode mode )
Mike West 2014/10/01 08:16:34 Nit: Since Blink doesn't have an 80-column limit,
horo 2014/10/01 08:32:21 Done.
208 {
209 m_fetchCredentialsMode = mode;
210 }
211
203 bool cacheControlContainsNoCache() const; 212 bool cacheControlContainsNoCache() const;
204 bool cacheControlContainsNoStore() const; 213 bool cacheControlContainsNoStore() const;
205 bool hasCacheValidatorFields() const; 214 bool hasCacheValidatorFields() const;
206 215
207 static double defaultTimeoutInterval(); // May return 0 when using platform default. 216 static double defaultTimeoutInterval(); // May return 0 when using platform default.
208 static void setDefaultTimeoutInterval(double); 217 static void setDefaultTimeoutInterval(double);
209 218
210 static bool compare(const ResourceRequest&, const ResourceRequest&); 219 static bool compare(const ResourceRequest&, const ResourceRequest&);
211 220
212 private: 221 private:
(...skipping 16 matching lines...) Expand all
229 bool m_skipServiceWorker : 1; 238 bool m_skipServiceWorker : 1;
230 ResourceLoadPriority m_priority; 239 ResourceLoadPriority m_priority;
231 int m_intraPriorityValue; 240 int m_intraPriorityValue;
232 int m_requestorID; 241 int m_requestorID;
233 int m_requestorProcessID; 242 int m_requestorProcessID;
234 int m_appCacheHostID; 243 int m_appCacheHostID;
235 RefPtr<ExtraData> m_extraData; 244 RefPtr<ExtraData> m_extraData;
236 blink::WebURLRequest::RequestContext m_requestContext; 245 blink::WebURLRequest::RequestContext m_requestContext;
237 blink::WebURLRequest::FrameType m_frameType; 246 blink::WebURLRequest::FrameType m_frameType;
238 blink::WebURLRequest::FetchRequestMode m_fetchRequestMode; 247 blink::WebURLRequest::FetchRequestMode m_fetchRequestMode;
248 blink::WebURLRequest::FetchCredentialsMode m_fetchCredentialsMode;
239 ReferrerPolicy m_referrerPolicy; 249 ReferrerPolicy m_referrerPolicy;
240 250
241 mutable CacheControlHeader m_cacheControlHeaderCache; 251 mutable CacheControlHeader m_cacheControlHeaderCache;
242 252
243 static double s_defaultTimeoutInterval; 253 static double s_defaultTimeoutInterval;
244 }; 254 };
245 255
246 bool equalIgnoringHeaderFields(const ResourceRequest&, const ResourceRequest&); 256 bool equalIgnoringHeaderFields(const ResourceRequest&, const ResourceRequest&);
247 257
248 inline bool operator==(const ResourceRequest& a, const ResourceRequest& b) { ret urn ResourceRequest::compare(a, b); } 258 inline bool operator==(const ResourceRequest& a, const ResourceRequest& b) { ret urn ResourceRequest::compare(a, b); }
(...skipping 18 matching lines...) Expand all
267 bool m_downloadToFile; 277 bool m_downloadToFile;
268 bool m_skipServiceWorker; 278 bool m_skipServiceWorker;
269 ResourceLoadPriority m_priority; 279 ResourceLoadPriority m_priority;
270 int m_intraPriorityValue; 280 int m_intraPriorityValue;
271 int m_requestorID; 281 int m_requestorID;
272 int m_requestorProcessID; 282 int m_requestorProcessID;
273 int m_appCacheHostID; 283 int m_appCacheHostID;
274 blink::WebURLRequest::RequestContext m_requestContext; 284 blink::WebURLRequest::RequestContext m_requestContext;
275 blink::WebURLRequest::FrameType m_frameType; 285 blink::WebURLRequest::FrameType m_frameType;
276 blink::WebURLRequest::FetchRequestMode m_fetchRequestMode; 286 blink::WebURLRequest::FetchRequestMode m_fetchRequestMode;
287 blink::WebURLRequest::FetchCredentialsMode m_fetchCredentialsMode;
277 ReferrerPolicy m_referrerPolicy; 288 ReferrerPolicy m_referrerPolicy;
278 }; 289 };
279 290
280 unsigned initializeMaximumHTTPConnectionCountPerHost(); 291 unsigned initializeMaximumHTTPConnectionCountPerHost();
281 292
282 } // namespace blink 293 } // namespace blink
283 294
284 #endif // ResourceRequest_h 295 #endif // ResourceRequest_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698