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

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

Issue 1060033002: Implement Request.context for Fetch API (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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 // 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 30 matching lines...) Expand all
41 static Request* create(ExecutionContext*, const WebServiceWorkerRequest&); 41 static Request* create(ExecutionContext*, const WebServiceWorkerRequest&);
42 42
43 const FetchRequestData* request() { return m_request; } 43 const FetchRequestData* request() { return m_request; }
44 44
45 // From Request.idl: 45 // From Request.idl:
46 String method() const; 46 String method() const;
47 KURL url() const; 47 KURL url() const;
48 Headers* headers() const { return m_headers; } 48 Headers* headers() const { return m_headers; }
49 String referrer() const; 49 String referrer() const;
50 String mode() const; 50 String mode() const;
51 String context() const;
hiroshige 2015/04/07 03:56:11 Move context() declaration above referrer() to mat
shiva.jm 2015/04/09 09:16:22 Done.
51 String credentials() const; 52 String credentials() const;
52 53
53 // From Request.idl: 54 // From Request.idl:
54 Request* clone(ExceptionState&) const; 55 Request* clone(ExceptionState&) const;
55 56
56 FetchRequestData* passRequestData(); 57 FetchRequestData* passRequestData();
57 58
58 void populateWebServiceWorkerRequest(WebServiceWorkerRequest&) const; 59 void populateWebServiceWorkerRequest(WebServiceWorkerRequest&) const;
59 60
60 void setBodyBlobHandle(PassRefPtr<BlobDataHandle>); 61 void setBodyBlobHandle(PassRefPtr<BlobDataHandle>);
(...skipping 13 matching lines...) Expand all
74 BodyStreamBuffer* buffer() const override; 75 BodyStreamBuffer* buffer() const override;
75 String mimeType() const override; 76 String mimeType() const override;
76 77
77 const Member<FetchRequestData> m_request; 78 const Member<FetchRequestData> m_request;
78 const Member<Headers> m_headers; 79 const Member<Headers> m_headers;
79 }; 80 };
80 81
81 } // namespace blink 82 } // namespace blink
82 83
83 #endif // Request_h 84 #endif // Request_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698