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

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

Issue 1102363002: Add Client Attribute to FetchEvent- Blink Side. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 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') | 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"
11 #include "public/platform/WebServiceWorkerClientsInfo.h"
11 #include "public/platform/WebString.h" 12 #include "public/platform/WebString.h"
12 #include "public/platform/WebURL.h" 13 #include "public/platform/WebURL.h"
13 #include "public/platform/WebURLRequest.h" 14 #include "public/platform/WebURLRequest.h"
14 15
15 #if INSIDE_BLINK 16 #if INSIDE_BLINK
16 #include "platform/network/HTTPHeaderMap.h" 17 #include "platform/network/HTTPHeaderMap.h"
17 #include "platform/weborigin/Referrer.h" 18 #include "platform/weborigin/Referrer.h"
18 #include "wtf/Forward.h" 19 #include "wtf/Forward.h"
19 #include "wtf/text/StringHash.h" 20 #include "wtf/text/StringHash.h"
20 #include <utility> 21 #include <utility>
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 70
70 void setRequestContext(WebURLRequest::RequestContext); 71 void setRequestContext(WebURLRequest::RequestContext);
71 WebURLRequest::RequestContext requestContext() const; 72 WebURLRequest::RequestContext requestContext() const;
72 73
73 void setFrameType(WebURLRequest::FrameType); 74 void setFrameType(WebURLRequest::FrameType);
74 WebURLRequest::FrameType frameType() const; 75 WebURLRequest::FrameType frameType() const;
75 76
76 void setIsReload(bool); 77 void setIsReload(bool);
77 bool isReload() const; 78 bool isReload() const;
78 79
80 void setClient(const WebServiceWorkerClientInfo&);
81 WebServiceWorkerClientInfo& client() const;
82
79 #if INSIDE_BLINK 83 #if INSIDE_BLINK
80 const HTTPHeaderMap& headers() const; 84 const HTTPHeaderMap& headers() const;
81 PassRefPtr<BlobDataHandle> blobDataHandle() const; 85 PassRefPtr<BlobDataHandle> blobDataHandle() const;
82 const Referrer& referrer() const; 86 const Referrer& referrer() const;
83 #endif 87 #endif
84 88
85 private: 89 private:
86 WebPrivatePtr<WebServiceWorkerRequestPrivate> m_private; 90 WebPrivatePtr<WebServiceWorkerRequestPrivate> m_private;
87 }; 91 };
88 92
89 } // namespace blink 93 } // namespace blink
90 94
91 #endif // WebServiceWorkerRequest_h 95 #endif // WebServiceWorkerRequest_h
OLDNEW
« no previous file with comments | « Source/web/ServiceWorkerGlobalScopeProxy.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698