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

Side by Side Diff: Source/modules/fetch/Request.h

Issue 1143083002: Implement request's redirect mode and RequestRedirect for Fetch (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 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/modules/fetch/FetchRequestData.cpp ('k') | Source/modules/fetch/Request.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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef Request_h 5 #ifndef Request_h
6 #define Request_h 6 #define Request_h
7 7
8 #include "bindings/core/v8/Dictionary.h" 8 #include "bindings/core/v8/Dictionary.h"
9 #include "bindings/core/v8/ScriptWrappable.h" 9 #include "bindings/core/v8/ScriptWrappable.h"
10 #include "bindings/modules/v8/UnionTypesModules.h" 10 #include "bindings/modules/v8/UnionTypesModules.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 const FetchRequestData* request() { return m_request; } 44 const FetchRequestData* request() { return m_request; }
45 45
46 // From Request.idl: 46 // From Request.idl:
47 String method() const; 47 String method() const;
48 KURL url() const; 48 KURL url() const;
49 Headers* headers() const { return m_headers; } 49 Headers* headers() const { return m_headers; }
50 String context() const; 50 String context() const;
51 String referrer() const; 51 String referrer() const;
52 String mode() const; 52 String mode() const;
53 String credentials() const; 53 String credentials() const;
54 String redirect() const;
54 55
55 // From Request.idl: 56 // From Request.idl:
56 Request* clone(ExceptionState&) const; 57 Request* clone(ExceptionState&) const;
57 58
58 FetchRequestData* passRequestData(); 59 FetchRequestData* passRequestData();
59 60
60 void populateWebServiceWorkerRequest(WebServiceWorkerRequest&) const; 61 void populateWebServiceWorkerRequest(WebServiceWorkerRequest&) const;
61 62
62 void setBodyBlobHandle(PassRefPtr<BlobDataHandle>); 63 void setBodyBlobHandle(PassRefPtr<BlobDataHandle>);
63 bool hasBody() const { return m_request->blobDataHandle(); } 64 bool hasBody() const { return m_request->blobDataHandle(); }
(...skipping 12 matching lines...) Expand all
76 BodyStreamBuffer* buffer() const override; 77 BodyStreamBuffer* buffer() const override;
77 String mimeType() const override; 78 String mimeType() const override;
78 79
79 const Member<FetchRequestData> m_request; 80 const Member<FetchRequestData> m_request;
80 const Member<Headers> m_headers; 81 const Member<Headers> m_headers;
81 }; 82 };
82 83
83 } // namespace blink 84 } // namespace blink
84 85
85 #endif // Request_h 86 #endif // Request_h
OLDNEW
« no previous file with comments | « Source/modules/fetch/FetchRequestData.cpp ('k') | Source/modules/fetch/Request.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698