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

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

Issue 587213003: [ServiceWorker] Plumbing the request mode from the renderer to the ServiceWorker. [1/2 blink] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: git cl format 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/web/ServiceWorkerGlobalScopeProxy.cpp ('k') | public/platform/WebURLRequest.h » ('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 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"
11 #include "public/platform/WebString.h" 11 #include "public/platform/WebString.h"
12 #include "public/platform/WebURL.h" 12 #include "public/platform/WebURL.h"
13 #include "public/platform/WebURLRequest.h"
13 14
14 #if INSIDE_BLINK 15 #if INSIDE_BLINK
15 #include "platform/network/HTTPHeaderMap.h" 16 #include "platform/network/HTTPHeaderMap.h"
16 #include "platform/weborigin/Referrer.h" 17 #include "platform/weborigin/Referrer.h"
17 #include "wtf/Forward.h" 18 #include "wtf/Forward.h"
18 #include "wtf/text/StringHash.h" 19 #include "wtf/text/StringHash.h"
19 #include <utility> 20 #include <utility>
20 #endif 21 #endif
21 22
22 namespace blink { 23 namespace blink {
(...skipping 30 matching lines...) Expand all
53 void appendHeader(const WebString& key, const WebString& value); 54 void appendHeader(const WebString& key, const WebString& value);
54 55
55 void visitHTTPHeaderFields(WebHTTPHeaderVisitor*) const; 56 void visitHTTPHeaderFields(WebHTTPHeaderVisitor*) const;
56 57
57 void setBlob(const WebString& uuid, long long size); 58 void setBlob(const WebString& uuid, long long size);
58 59
59 void setReferrer(const WebString&, WebReferrerPolicy); 60 void setReferrer(const WebString&, WebReferrerPolicy);
60 WebURL referrerUrl() const; 61 WebURL referrerUrl() const;
61 WebReferrerPolicy referrerPolicy() const; 62 WebReferrerPolicy referrerPolicy() const;
62 63
64 void setMode(WebURLRequest::FetchRequestMode);
65 WebURLRequest::FetchRequestMode mode() const;
66
63 void setIsReload(bool); 67 void setIsReload(bool);
64 bool isReload() const; 68 bool isReload() const;
65 69
66 #if INSIDE_BLINK 70 #if INSIDE_BLINK
67 const HTTPHeaderMap& headers() const; 71 const HTTPHeaderMap& headers() const;
68 PassRefPtr<BlobDataHandle> blobDataHandle() const; 72 PassRefPtr<BlobDataHandle> blobDataHandle() const;
69 const Referrer& referrer() const; 73 const Referrer& referrer() const;
70 #endif 74 #endif
71 75
72 private: 76 private:
73 WebPrivatePtr<WebServiceWorkerRequestPrivate> m_private; 77 WebPrivatePtr<WebServiceWorkerRequestPrivate> m_private;
74 }; 78 };
75 79
76 } // namespace blink 80 } // namespace blink
77 81
78 #endif // WebServiceWorkerRequest_h 82 #endif // WebServiceWorkerRequest_h
OLDNEW
« no previous file with comments | « Source/web/ServiceWorkerGlobalScopeProxy.cpp ('k') | public/platform/WebURLRequest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698