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

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

Issue 1279163005: Initial Fetch integration for Subresource Integrity (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix test expectations Created 5 years, 4 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 // From Request.idl: 44 // From Request.idl:
45 String method() const; 45 String method() const;
46 KURL url() const; 46 KURL url() const;
47 Headers* headers() const { return m_headers; } 47 Headers* headers() const { return m_headers; }
48 String context() const; 48 String context() const;
49 String referrer() const; 49 String referrer() const;
50 String mode() const; 50 String mode() const;
51 String credentials() const; 51 String credentials() const;
52 String redirect() const; 52 String redirect() const;
53 String integrity() const;
53 54
54 // From Request.idl: 55 // From Request.idl:
55 Request* clone(ExceptionState&); 56 Request* clone(ExceptionState&);
56 57
57 FetchRequestData* passRequestData(); 58 FetchRequestData* passRequestData();
58 void populateWebServiceWorkerRequest(WebServiceWorkerRequest&) const; 59 void populateWebServiceWorkerRequest(WebServiceWorkerRequest&) const;
59 bool hasBody() const; 60 bool hasBody() const;
60 BodyStreamBuffer* bodyBuffer() override { return m_request->buffer(); } 61 BodyStreamBuffer* bodyBuffer() override { return m_request->buffer(); }
61 const BodyStreamBuffer* bodyBuffer() const override { return m_request->buff er(); } 62 const BodyStreamBuffer* bodyBuffer() const override { return m_request->buff er(); }
62 63
63 DECLARE_VIRTUAL_TRACE(); 64 DECLARE_VIRTUAL_TRACE();
64 65
65 private: 66 private:
66 Request(ExecutionContext*, FetchRequestData*); 67 Request(ExecutionContext*, FetchRequestData*);
67 Request(ExecutionContext*, const WebServiceWorkerRequest&); 68 Request(ExecutionContext*, const WebServiceWorkerRequest&);
68 Request(ExecutionContext*, FetchRequestData*, Headers*); 69 Request(ExecutionContext*, FetchRequestData*, Headers*);
69 70
70 const FetchRequestData* request() const { return m_request; } 71 const FetchRequestData* request() const { return m_request; }
71 static Request* createRequestWithRequestOrString(ScriptState*, Request*, con st String&, RequestInit&, ExceptionState&); 72 static Request* createRequestWithRequestOrString(ScriptState*, Request*, con st String&, RequestInit&, ExceptionState&);
72 73
73 String mimeType() const override; 74 String mimeType() const override;
74 75
75 const Member<FetchRequestData> m_request; 76 const Member<FetchRequestData> m_request;
76 const Member<Headers> m_headers; 77 const Member<Headers> m_headers;
77 }; 78 };
78 79
79 } // namespace blink 80 } // namespace blink
80 81
81 #endif // Request_h 82 #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