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

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

Issue 1844413006: Support ReferrerPolicy in Fetch API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@update-referrer-policy
Patch Set: rebase Created 4 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 static Request* create(ScriptState*, Request*, const Dictionary&, ExceptionS tate&); 42 static Request* create(ScriptState*, Request*, const Dictionary&, ExceptionS tate&);
43 static Request* create(ScriptState*, FetchRequestData*); 43 static Request* create(ScriptState*, FetchRequestData*);
44 static Request* create(ScriptState*, const WebServiceWorkerRequest&); 44 static Request* create(ScriptState*, const WebServiceWorkerRequest&);
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* getHeaders() const { return m_headers; } 49 Headers* getHeaders() const { return m_headers; }
50 String context() const; 50 String context() const;
51 String referrer() const; 51 String referrer() const;
52 String referrerPolicy() const;
52 String mode() const; 53 String mode() const;
53 String credentials() const; 54 String credentials() const;
54 String redirect() const; 55 String redirect() const;
55 String integrity() const; 56 String integrity() const;
56 57
57 // From Request.idl: 58 // From Request.idl:
58 Request* clone(ScriptState*, ExceptionState&); 59 Request* clone(ScriptState*, ExceptionState&);
59 60
60 FetchRequestData* passRequestData(ScriptState*); 61 FetchRequestData* passRequestData(ScriptState*);
61 void populateWebServiceWorkerRequest(WebServiceWorkerRequest&) const; 62 void populateWebServiceWorkerRequest(WebServiceWorkerRequest&) const;
(...skipping 16 matching lines...) Expand all
78 79
79 String mimeType() const override; 80 String mimeType() const override;
80 81
81 const Member<FetchRequestData> m_request; 82 const Member<FetchRequestData> m_request;
82 const Member<Headers> m_headers; 83 const Member<Headers> m_headers;
83 }; 84 };
84 85
85 } // namespace blink 86 } // namespace blink
86 87
87 #endif // Request_h 88 #endif // Request_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/fetch/FetchRequestData.cpp ('k') | third_party/WebKit/Source/modules/fetch/Request.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698