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

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

Issue 1775933002: CORS-RFC1918: Pipe creator address space through SharedWorker creation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: typo Created 4 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 18 matching lines...) Expand all
29 #define ResourceRequest_h 29 #define ResourceRequest_h
30 30
31 #include "platform/HTTPNames.h" 31 #include "platform/HTTPNames.h"
32 #include "platform/network/EncodedFormData.h" 32 #include "platform/network/EncodedFormData.h"
33 #include "platform/network/HTTPHeaderMap.h" 33 #include "platform/network/HTTPHeaderMap.h"
34 #include "platform/network/HTTPParsers.h" 34 #include "platform/network/HTTPParsers.h"
35 #include "platform/network/ResourceLoadPriority.h" 35 #include "platform/network/ResourceLoadPriority.h"
36 #include "platform/weborigin/KURL.h" 36 #include "platform/weborigin/KURL.h"
37 #include "platform/weborigin/Referrer.h" 37 #include "platform/weborigin/Referrer.h"
38 #include "platform/weborigin/SecurityOrigin.h" 38 #include "platform/weborigin/SecurityOrigin.h"
39 #include "public/platform/WebAddressSpace.h"
39 #include "public/platform/WebURLRequest.h" 40 #include "public/platform/WebURLRequest.h"
40 #include "wtf/OwnPtr.h" 41 #include "wtf/OwnPtr.h"
41 42
42 namespace blink { 43 namespace blink {
43 44
44 enum ResourceRequestCachePolicy { 45 enum ResourceRequestCachePolicy {
45 UseProtocolCachePolicy, // normal load 46 UseProtocolCachePolicy, // normal load
46 ReloadIgnoringCacheData, // reload 47 ReloadIgnoringCacheData, // reload
47 ReturnCacheDataElseLoad, // back/forward or encoding change - allow stale da ta 48 ReturnCacheDataElseLoad, // back/forward or encoding change - allow stale da ta
48 ReturnCacheDataDontLoad, // results of a post - allow stale data and only us e cache 49 ReturnCacheDataDontLoad, // results of a post - allow stale data and only us e cache
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 static bool compare(const ResourceRequest&, const ResourceRequest&); 234 static bool compare(const ResourceRequest&, const ResourceRequest&);
234 235
235 bool checkForBrowserSideNavigation() const { return m_checkForBrowserSideNav igation; } 236 bool checkForBrowserSideNavigation() const { return m_checkForBrowserSideNav igation; }
236 void setCheckForBrowserSideNavigation(bool check) { m_checkForBrowserSideNav igation = check; } 237 void setCheckForBrowserSideNavigation(bool check) { m_checkForBrowserSideNav igation = check; }
237 238
238 double uiStartTime() const { return m_uiStartTime; } 239 double uiStartTime() const { return m_uiStartTime; }
239 void setUIStartTime(double uiStartTime) { m_uiStartTime = uiStartTime; } 240 void setUIStartTime(double uiStartTime) { m_uiStartTime = uiStartTime; }
240 241
241 // https://mikewest.github.io/cors-rfc1918/#external-request 242 // https://mikewest.github.io/cors-rfc1918/#external-request
242 bool isExternalRequest() const { return m_isExternalRequest; } 243 bool isExternalRequest() const { return m_isExternalRequest; }
243 void setExternalRequestStateFromRequestorAddressSpace(WebURLRequest::Address Space); 244 void setExternalRequestStateFromRequestorAddressSpace(WebAddressSpace);
244 245
245 InputToLoadPerfMetricReportPolicy inputPerfMetricReportPolicy() const { retu rn m_inputPerfMetricReportPolicy; } 246 InputToLoadPerfMetricReportPolicy inputPerfMetricReportPolicy() const { retu rn m_inputPerfMetricReportPolicy; }
246 void setInputPerfMetricReportPolicy(InputToLoadPerfMetricReportPolicy inputP erfMetricReportPolicy) { m_inputPerfMetricReportPolicy = inputPerfMetricReportPo licy; } 247 void setInputPerfMetricReportPolicy(InputToLoadPerfMetricReportPolicy inputP erfMetricReportPolicy) { m_inputPerfMetricReportPolicy = inputPerfMetricReportPo licy; }
247 248
248 void setFollowedRedirect(bool followed) { m_followedRedirect = followed; } 249 void setFollowedRedirect(bool followed) { m_followedRedirect = followed; }
249 bool followedRedirect() const { return m_followedRedirect; } 250 bool followedRedirect() const { return m_followedRedirect; }
250 251
251 private: 252 private:
252 void initialize(const KURL&); 253 void initialize(const KURL&);
253 254
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 bool m_checkForBrowserSideNavigation; 338 bool m_checkForBrowserSideNavigation;
338 double m_uiStartTime; 339 double m_uiStartTime;
339 bool m_isExternalRequest; 340 bool m_isExternalRequest;
340 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; 341 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy;
341 bool m_followedRedirect; 342 bool m_followedRedirect;
342 }; 343 };
343 344
344 } // namespace blink 345 } // namespace blink
345 346
346 #endif // ResourceRequest_h 347 #endif // ResourceRequest_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/worklet/Worklet.cpp ('k') | third_party/WebKit/Source/platform/network/ResourceRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698