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

Side by Side Diff: public/platform/WebServiceWorkerRequest.h

Issue 625513002: [ServiceWorker] pipe RequestContext and FrameType to ServiceWorker. [1/2 blink] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 2 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/platform/exported/WebServiceWorkerRequest.cpp ('k') | no next file » | 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 WebServiceWorkerRequest_h 5 #ifndef WebServiceWorkerRequest_h
6 #define WebServiceWorkerRequest_h 6 #define WebServiceWorkerRequest_h
7 7
8 #include "WebCommon.h" 8 #include "WebCommon.h"
9 #include "public/platform/WebPrivatePtr.h" 9 #include "public/platform/WebPrivatePtr.h"
10 #include "public/platform/WebReferrerPolicy.h" 10 #include "public/platform/WebReferrerPolicy.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 void setReferrer(const WebString&, WebReferrerPolicy); 60 void setReferrer(const WebString&, WebReferrerPolicy);
61 WebURL referrerUrl() const; 61 WebURL referrerUrl() const;
62 WebReferrerPolicy referrerPolicy() const; 62 WebReferrerPolicy referrerPolicy() const;
63 63
64 void setMode(WebURLRequest::FetchRequestMode); 64 void setMode(WebURLRequest::FetchRequestMode);
65 WebURLRequest::FetchRequestMode mode() const; 65 WebURLRequest::FetchRequestMode mode() const;
66 66
67 void setCredentialsMode(WebURLRequest::FetchCredentialsMode); 67 void setCredentialsMode(WebURLRequest::FetchCredentialsMode);
68 WebURLRequest::FetchCredentialsMode credentialsMode() const; 68 WebURLRequest::FetchCredentialsMode credentialsMode() const;
69 69
70 void setRequestContext(WebURLRequest::RequestContext);
71 WebURLRequest::RequestContext requestContext() const;
72
73 void setFrameType(WebURLRequest::FrameType);
74 WebURLRequest::FrameType frameType() const;
75
70 void setIsReload(bool); 76 void setIsReload(bool);
71 bool isReload() const; 77 bool isReload() const;
72 78
73 #if INSIDE_BLINK 79 #if INSIDE_BLINK
74 const HTTPHeaderMap& headers() const; 80 const HTTPHeaderMap& headers() const;
75 PassRefPtr<BlobDataHandle> blobDataHandle() const; 81 PassRefPtr<BlobDataHandle> blobDataHandle() const;
76 const Referrer& referrer() const; 82 const Referrer& referrer() const;
77 #endif 83 #endif
78 84
79 private: 85 private:
80 WebPrivatePtr<WebServiceWorkerRequestPrivate> m_private; 86 WebPrivatePtr<WebServiceWorkerRequestPrivate> m_private;
81 }; 87 };
82 88
83 } // namespace blink 89 } // namespace blink
84 90
85 #endif // WebServiceWorkerRequest_h 91 #endif // WebServiceWorkerRequest_h
OLDNEW
« no previous file with comments | « Source/platform/exported/WebServiceWorkerRequest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698