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

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

Issue 433793002: Introducing the WebServiceWorkerCache. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: partial remediation Created 6 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 | Annotate | Revision Log
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 "modules/serviceworkers/FetchRequestData.h" 10 #include "modules/serviceworkers/FetchRequestData.h"
(...skipping 27 matching lines...) Expand all
38 PassRefPtrWillBeRawPtr<FetchRequestData> request() { return m_request; } 38 PassRefPtrWillBeRawPtr<FetchRequestData> request() { return m_request; }
39 39
40 String method() const; 40 String method() const;
41 String url() const; 41 String url() const;
42 PassRefPtrWillBeRawPtr<Headers> headers() const { return m_headers; } 42 PassRefPtrWillBeRawPtr<Headers> headers() const { return m_headers; }
43 // FIXME: Support body. 43 // FIXME: Support body.
44 String referrer() const; 44 String referrer() const;
45 String mode() const; 45 String mode() const;
46 String credentials() const; 46 String credentials() const;
47 47
48 void populateWebServiceWorkerRequest(WebServiceWorkerRequest&);
49
48 void trace(Visitor*); 50 void trace(Visitor*);
49 51
50 private: 52 private:
51 explicit Request(PassRefPtrWillBeRawPtr<FetchRequestData>); 53 explicit Request(PassRefPtrWillBeRawPtr<FetchRequestData>);
52 explicit Request(const blink::WebServiceWorkerRequest&); 54 explicit Request(const blink::WebServiceWorkerRequest&);
53 55
54 RefPtrWillBeMember<FetchRequestData> m_request; 56 RefPtrWillBeMember<FetchRequestData> m_request;
55 RefPtrWillBeMember<Headers> m_headers; 57 RefPtrWillBeMember<Headers> m_headers;
56 }; 58 };
57 59
58 } // namespace blink 60 } // namespace blink
59 61
60 #endif // Request_h 62 #endif // Request_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698