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

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

Issue 527703002: [ServiceWorker] Introduce skipServiceWorker flag to blink::WebURLRequest and blink::ResourceRequest (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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/platform/exported/WebURLRequest.cpp ('k') | Source/platform/network/ResourceRequest.cpp » ('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) 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 void setAppCacheHostID(int id) { m_appCacheHostID = id; } 170 void setAppCacheHostID(int id) { m_appCacheHostID = id; }
171 171
172 // True if request was user initiated. 172 // True if request was user initiated.
173 bool hasUserGesture() const { return m_hasUserGesture; } 173 bool hasUserGesture() const { return m_hasUserGesture; }
174 void setHasUserGesture(bool hasUserGesture) { m_hasUserGesture = hasUserGest ure; } 174 void setHasUserGesture(bool hasUserGesture) { m_hasUserGesture = hasUserGest ure; }
175 175
176 // True if request should be downloaded to file. 176 // True if request should be downloaded to file.
177 bool downloadToFile() const { return m_downloadToFile; } 177 bool downloadToFile() const { return m_downloadToFile; }
178 void setDownloadToFile(bool downloadToFile) { m_downloadToFile = downloadToF ile; } 178 void setDownloadToFile(bool downloadToFile) { m_downloadToFile = downloadToF ile; }
179 179
180 // True if the request should not be handled by the ServiceWorker.
181 bool skipServiceWorker() const { return m_skipServiceWorker; }
182 void setSkipServiceWorker(bool skipServiceWorker) { m_skipServiceWorker = sk ipServiceWorker; }
183
180 // Extra data associated with this request. 184 // Extra data associated with this request.
181 ExtraData* extraData() const { return m_extraData.get(); } 185 ExtraData* extraData() const { return m_extraData.get(); }
182 void setExtraData(PassRefPtr<ExtraData> extraData) { m_extraData = extraData ; } 186 void setExtraData(PassRefPtr<ExtraData> extraData) { m_extraData = extraData ; }
183 187
184 blink::WebURLRequest::RequestContext requestContext() const { return m_reque stContext; } 188 blink::WebURLRequest::RequestContext requestContext() const { return m_reque stContext; }
185 void setRequestContext(blink::WebURLRequest::RequestContext context) { m_req uestContext = context; } 189 void setRequestContext(blink::WebURLRequest::RequestContext context) { m_req uestContext = context; }
186 190
187 blink::WebURLRequest::FrameType frameType() const { return m_frameType; } 191 blink::WebURLRequest::FrameType frameType() const { return m_frameType; }
188 void setFrameType(blink::WebURLRequest::FrameType frameType) { m_frameType = frameType; } 192 void setFrameType(blink::WebURLRequest::FrameType frameType) { m_frameType = frameType; }
189 193
(...skipping 16 matching lines...) Expand all
206 double m_timeoutInterval; // 0 is a magic value for platform default on plat forms that have one. 210 double m_timeoutInterval; // 0 is a magic value for platform default on plat forms that have one.
207 KURL m_firstPartyForCookies; 211 KURL m_firstPartyForCookies;
208 AtomicString m_httpMethod; 212 AtomicString m_httpMethod;
209 HTTPHeaderMap m_httpHeaderFields; 213 HTTPHeaderMap m_httpHeaderFields;
210 RefPtr<FormData> m_httpBody; 214 RefPtr<FormData> m_httpBody;
211 bool m_allowStoredCredentials : 1; 215 bool m_allowStoredCredentials : 1;
212 bool m_reportUploadProgress : 1; 216 bool m_reportUploadProgress : 1;
213 bool m_reportRawHeaders : 1; 217 bool m_reportRawHeaders : 1;
214 bool m_hasUserGesture : 1; 218 bool m_hasUserGesture : 1;
215 bool m_downloadToFile : 1; 219 bool m_downloadToFile : 1;
220 bool m_skipServiceWorker : 1;
216 ResourceLoadPriority m_priority; 221 ResourceLoadPriority m_priority;
217 int m_intraPriorityValue; 222 int m_intraPriorityValue;
218 int m_requestorID; 223 int m_requestorID;
219 int m_requestorProcessID; 224 int m_requestorProcessID;
220 int m_appCacheHostID; 225 int m_appCacheHostID;
221 RefPtr<ExtraData> m_extraData; 226 RefPtr<ExtraData> m_extraData;
222 blink::WebURLRequest::RequestContext m_requestContext; 227 blink::WebURLRequest::RequestContext m_requestContext;
223 blink::WebURLRequest::FrameType m_frameType; 228 blink::WebURLRequest::FrameType m_frameType;
224 ReferrerPolicy m_referrerPolicy; 229 ReferrerPolicy m_referrerPolicy;
225 230
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 blink::WebURLRequest::RequestContext m_requestContext; 263 blink::WebURLRequest::RequestContext m_requestContext;
259 blink::WebURLRequest::FrameType m_frameType; 264 blink::WebURLRequest::FrameType m_frameType;
260 ReferrerPolicy m_referrerPolicy; 265 ReferrerPolicy m_referrerPolicy;
261 }; 266 };
262 267
263 unsigned initializeMaximumHTTPConnectionCountPerHost(); 268 unsigned initializeMaximumHTTPConnectionCountPerHost();
264 269
265 } // namespace blink 270 } // namespace blink
266 271
267 #endif // ResourceRequest_h 272 #endif // ResourceRequest_h
OLDNEW
« no previous file with comments | « Source/platform/exported/WebURLRequest.cpp ('k') | Source/platform/network/ResourceRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698