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

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

Issue 2714423002: Rename SkipServiceWorker to ServiceWorkerMode (Closed)
Patch Set: typos-- Created 3 years, 9 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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 m_downloadToFile = downloadToFile; 210 m_downloadToFile = downloadToFile;
211 } 211 }
212 212
213 // True if the requestor wants to receive a response body as 213 // True if the requestor wants to receive a response body as
214 // WebDataConsumerHandle. 214 // WebDataConsumerHandle.
215 bool useStreamOnResponse() const { return m_useStreamOnResponse; } 215 bool useStreamOnResponse() const { return m_useStreamOnResponse; }
216 void setUseStreamOnResponse(bool useStreamOnResponse) { 216 void setUseStreamOnResponse(bool useStreamOnResponse) {
217 m_useStreamOnResponse = useStreamOnResponse; 217 m_useStreamOnResponse = useStreamOnResponse;
218 } 218 }
219 219
220 // Indicates which types of ServiceWorkers should skip handling this request. 220 // The service worker mode indicating which service workers should get events
221 WebURLRequest::SkipServiceWorker skipServiceWorker() const { 221 // for this request.
222 return m_skipServiceWorker; 222 WebURLRequest::ServiceWorkerMode getServiceWorkerMode() const {
223 return m_serviceWorkerMode;
223 } 224 }
224 void setSkipServiceWorker( 225 void setServiceWorkerMode(
225 WebURLRequest::SkipServiceWorker skipServiceWorker) { 226 WebURLRequest::ServiceWorkerMode serviceWorkerMode) {
226 m_skipServiceWorker = skipServiceWorker; 227 m_serviceWorkerMode = serviceWorkerMode;
227 } 228 }
228 229
229 // True if corresponding AppCache group should be resetted. 230 // True if corresponding AppCache group should be resetted.
230 bool shouldResetAppCache() { return m_shouldResetAppCache; } 231 bool shouldResetAppCache() { return m_shouldResetAppCache; }
231 void setShouldResetAppCache(bool shouldResetAppCache) { 232 void setShouldResetAppCache(bool shouldResetAppCache) {
232 m_shouldResetAppCache = shouldResetAppCache; 233 m_shouldResetAppCache = shouldResetAppCache;
233 } 234 }
234 235
235 // Extra data associated with this request. 236 // Extra data associated with this request.
236 ExtraData* getExtraData() const { return m_extraData.get(); } 237 ExtraData* getExtraData() const { return m_extraData.get(); }
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 HTTPHeaderMap m_httpHeaderFields; 331 HTTPHeaderMap m_httpHeaderFields;
331 RefPtr<EncodedFormData> m_httpBody; 332 RefPtr<EncodedFormData> m_httpBody;
332 RefPtr<EncodedFormData> m_attachedCredential; 333 RefPtr<EncodedFormData> m_attachedCredential;
333 bool m_allowStoredCredentials : 1; 334 bool m_allowStoredCredentials : 1;
334 bool m_reportUploadProgress : 1; 335 bool m_reportUploadProgress : 1;
335 bool m_reportRawHeaders : 1; 336 bool m_reportRawHeaders : 1;
336 bool m_hasUserGesture : 1; 337 bool m_hasUserGesture : 1;
337 bool m_downloadToFile : 1; 338 bool m_downloadToFile : 1;
338 bool m_useStreamOnResponse : 1; 339 bool m_useStreamOnResponse : 1;
339 bool m_shouldResetAppCache : 1; 340 bool m_shouldResetAppCache : 1;
340 WebURLRequest::SkipServiceWorker m_skipServiceWorker; 341 WebURLRequest::ServiceWorkerMode m_serviceWorkerMode;
341 ResourceLoadPriority m_priority; 342 ResourceLoadPriority m_priority;
342 int m_intraPriorityValue; 343 int m_intraPriorityValue;
343 int m_requestorID; 344 int m_requestorID;
344 int m_requestorProcessID; 345 int m_requestorProcessID;
345 int m_appCacheHostID; 346 int m_appCacheHostID;
346 RefPtr<ExtraData> m_extraData; 347 RefPtr<ExtraData> m_extraData;
347 WebURLRequest::RequestContext m_requestContext; 348 WebURLRequest::RequestContext m_requestContext;
348 WebURLRequest::FrameType m_frameType; 349 WebURLRequest::FrameType m_frameType;
349 WebURLRequest::FetchRequestMode m_fetchRequestMode; 350 WebURLRequest::FetchRequestMode m_fetchRequestMode;
350 WebURLRequest::FetchCredentialsMode m_fetchCredentialsMode; 351 WebURLRequest::FetchCredentialsMode m_fetchCredentialsMode;
(...skipping 30 matching lines...) Expand all
381 RefPtr<SecurityOrigin> m_requestorOrigin; 382 RefPtr<SecurityOrigin> m_requestorOrigin;
382 383
383 String m_httpMethod; 384 String m_httpMethod;
384 std::unique_ptr<CrossThreadHTTPHeaderMapData> m_httpHeaders; 385 std::unique_ptr<CrossThreadHTTPHeaderMapData> m_httpHeaders;
385 RefPtr<EncodedFormData> m_httpBody; 386 RefPtr<EncodedFormData> m_httpBody;
386 RefPtr<EncodedFormData> m_attachedCredential; 387 RefPtr<EncodedFormData> m_attachedCredential;
387 bool m_allowStoredCredentials; 388 bool m_allowStoredCredentials;
388 bool m_reportUploadProgress; 389 bool m_reportUploadProgress;
389 bool m_hasUserGesture; 390 bool m_hasUserGesture;
390 bool m_downloadToFile; 391 bool m_downloadToFile;
391 WebURLRequest::SkipServiceWorker m_skipServiceWorker; 392 WebURLRequest::ServiceWorkerMode m_serviceWorkerMode;
392 bool m_useStreamOnResponse; 393 bool m_useStreamOnResponse;
393 bool m_shouldResetAppCache; 394 bool m_shouldResetAppCache;
394 ResourceLoadPriority m_priority; 395 ResourceLoadPriority m_priority;
395 int m_intraPriorityValue; 396 int m_intraPriorityValue;
396 int m_requestorID; 397 int m_requestorID;
397 int m_requestorProcessID; 398 int m_requestorProcessID;
398 int m_appCacheHostID; 399 int m_appCacheHostID;
399 WebURLRequest::RequestContext m_requestContext; 400 WebURLRequest::RequestContext m_requestContext;
400 WebURLRequest::FrameType m_frameType; 401 WebURLRequest::FrameType m_frameType;
401 WebURLRequest::FetchRequestMode m_fetchRequestMode; 402 WebURLRequest::FetchRequestMode m_fetchRequestMode;
402 WebURLRequest::FetchCredentialsMode m_fetchCredentialsMode; 403 WebURLRequest::FetchCredentialsMode m_fetchCredentialsMode;
403 WebURLRequest::FetchRedirectMode m_fetchRedirectMode; 404 WebURLRequest::FetchRedirectMode m_fetchRedirectMode;
404 WebURLRequest::PreviewsState m_previewsState; 405 WebURLRequest::PreviewsState m_previewsState;
405 ReferrerPolicy m_referrerPolicy; 406 ReferrerPolicy m_referrerPolicy;
406 bool m_didSetHTTPReferrer; 407 bool m_didSetHTTPReferrer;
407 bool m_checkForBrowserSideNavigation; 408 bool m_checkForBrowserSideNavigation;
408 double m_uiStartTime; 409 double m_uiStartTime;
409 bool m_isExternalRequest; 410 bool m_isExternalRequest;
410 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; 411 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy;
411 ResourceRequest::RedirectStatus m_redirectStatus; 412 ResourceRequest::RedirectStatus m_redirectStatus;
412 }; 413 };
413 414
414 } // namespace blink 415 } // namespace blink
415 416
416 #endif // ResourceRequest_h 417 #endif // ResourceRequest_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698