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

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

Issue 2746113002: platform/loader: move network/Resource* to loader/fetch (Closed)
Patch Set: git rebase master 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 10 matching lines...) Expand all
21 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 21 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
22 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 22 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
23 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */ 26 */
27 27
28 #ifndef ResourceRequest_h 28 #ifndef ResourceRequest_h
29 #define ResourceRequest_h 29 #define ResourceRequest_h
30 30
31 #include <memory>
31 #include "platform/HTTPNames.h" 32 #include "platform/HTTPNames.h"
33 #include "platform/loader/fetch/ResourceLoadPriority.h"
32 #include "platform/network/EncodedFormData.h" 34 #include "platform/network/EncodedFormData.h"
33 #include "platform/network/HTTPHeaderMap.h" 35 #include "platform/network/HTTPHeaderMap.h"
34 #include "platform/network/HTTPParsers.h" 36 #include "platform/network/HTTPParsers.h"
35 #include "platform/network/ResourceLoadPriority.h"
36 #include "platform/weborigin/KURL.h" 37 #include "platform/weborigin/KURL.h"
37 #include "platform/weborigin/Referrer.h" 38 #include "platform/weborigin/Referrer.h"
38 #include "platform/weborigin/SecurityOrigin.h" 39 #include "platform/weborigin/SecurityOrigin.h"
39 #include "public/platform/WebAddressSpace.h" 40 #include "public/platform/WebAddressSpace.h"
40 #include "public/platform/WebURLRequest.h" 41 #include "public/platform/WebURLRequest.h"
41 #include "wtf/RefCounted.h" 42 #include "wtf/RefCounted.h"
42 #include <memory>
43 43
44 namespace blink { 44 namespace blink {
45 45
46 enum class WebCachePolicy; 46 enum class WebCachePolicy;
47 47
48 enum class ResourceRequestBlockedReason { 48 enum class ResourceRequestBlockedReason {
49 CSP, 49 CSP,
50 MixedContent, 50 MixedContent,
51 Origin, 51 Origin,
52 Inspector, 52 Inspector,
(...skipping 28 matching lines...) Expand all
81 ResourceRequest(const ResourceRequest&); 81 ResourceRequest(const ResourceRequest&);
82 ResourceRequest& operator=(const ResourceRequest&); 82 ResourceRequest& operator=(const ResourceRequest&);
83 83
84 // Gets a copy of the data suitable for passing to another thread. 84 // Gets a copy of the data suitable for passing to another thread.
85 std::unique_ptr<CrossThreadResourceRequestData> copyData() const; 85 std::unique_ptr<CrossThreadResourceRequestData> copyData() const;
86 86
87 bool isNull() const; 87 bool isNull() const;
88 bool isEmpty() const; 88 bool isEmpty() const;
89 89
90 const KURL& url() const; 90 const KURL& url() const;
91 void setURL(const KURL& url); 91 void setURL(const KURL&);
92 92
93 void removeUserAndPassFromURL(); 93 void removeUserAndPassFromURL();
94 94
95 WebCachePolicy getCachePolicy() const; 95 WebCachePolicy getCachePolicy() const;
96 void setCachePolicy(WebCachePolicy); 96 void setCachePolicy(WebCachePolicy);
97 97
98 double timeoutInterval() const; // May return 0 when using platform default. 98 double timeoutInterval() const; // May return 0 when using platform default.
99 void setTimeoutInterval(double); 99 void setTimeoutInterval(double);
100 100
101 const KURL& firstPartyForCookies() const; 101 const KURL& firstPartyForCookies() const;
102 void setFirstPartyForCookies(const KURL& firstPartyForCookies); 102 void setFirstPartyForCookies(const KURL&);
103 103
104 PassRefPtr<SecurityOrigin> requestorOrigin() const; 104 PassRefPtr<SecurityOrigin> requestorOrigin() const;
105 void setRequestorOrigin(PassRefPtr<SecurityOrigin>); 105 void setRequestorOrigin(PassRefPtr<SecurityOrigin>);
106 106
107 const AtomicString& httpMethod() const; 107 const AtomicString& httpMethod() const;
108 void setHTTPMethod(const AtomicString&); 108 void setHTTPMethod(const AtomicString&);
109 109
110 const HTTPHeaderMap& httpHeaderFields() const; 110 const HTTPHeaderMap& httpHeaderFields() const;
111 const AtomicString& httpHeaderField(const AtomicString& name) const; 111 const AtomicString& httpHeaderField(const AtomicString& name) const;
112 void setHTTPHeaderField(const AtomicString& name, const AtomicString& value); 112 void setHTTPHeaderField(const AtomicString& name, const AtomicString& value);
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 bool m_checkForBrowserSideNavigation; 408 bool m_checkForBrowserSideNavigation;
409 double m_uiStartTime; 409 double m_uiStartTime;
410 bool m_isExternalRequest; 410 bool m_isExternalRequest;
411 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; 411 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy;
412 ResourceRequest::RedirectStatus m_redirectStatus; 412 ResourceRequest::RedirectStatus m_redirectStatus;
413 }; 413 };
414 414
415 } // namespace blink 415 } // namespace blink
416 416
417 #endif // ResourceRequest_h 417 #endif // ResourceRequest_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698