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

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

Issue 333423004: moved to https://codereview.chromium.org/399543002/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 5 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/serviceworkers/Headers.cpp ('k') | Source/modules/serviceworkers/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 "modules/serviceworkers/FetchRequestData.h" 10 #include "modules/serviceworkers/FetchManager.h"
11 #include "modules/serviceworkers/Headers.h" 11 #include "modules/serviceworkers/Headers.h"
12 #include "platform/weborigin/KURL.h" 12 #include "platform/weborigin/KURL.h"
13 #include "wtf/RefCounted.h" 13 #include "wtf/RefCounted.h"
14 #include "wtf/RefPtr.h" 14 #include "wtf/RefPtr.h"
15 #include "wtf/text/WTFString.h" 15 #include "wtf/text/WTFString.h"
16 16
17 namespace blink { class WebServiceWorkerRequest; } 17 namespace blink { class WebServiceWorkerRequest; }
18 18
19 namespace WebCore { 19 namespace WebCore {
20 20
(...skipping 18 matching lines...) Expand all
39 PassRefPtr<FetchRequestData> request() { return m_request; } 39 PassRefPtr<FetchRequestData> request() { return m_request; }
40 40
41 String method() const; 41 String method() const;
42 String url() const; 42 String url() const;
43 PassRefPtr<Headers> headers() const { return m_headers; } 43 PassRefPtr<Headers> headers() const { return m_headers; }
44 // FIXME: Support body. 44 // FIXME: Support body.
45 String referrer() const; 45 String referrer() const;
46 String mode() const; 46 String mode() const;
47 String credentials() const; 47 String credentials() const;
48 48
49 PassOwnPtr<ResourceRequest> createResourceRequest() const;
50
51 private: 49 private:
52 explicit Request(PassRefPtr<FetchRequestData>); 50 explicit Request(PassRefPtr<FetchRequestData>);
53 explicit Request(const blink::WebServiceWorkerRequest&); 51 explicit Request(const blink::WebServiceWorkerRequest&);
54 52
55 RefPtr<FetchRequestData> m_request; 53 RefPtr<FetchRequestData> m_request;
56 RefPtr<Headers> m_headers; 54 RefPtr<Headers> m_headers;
57 }; 55 };
58 56
59 } // namespace WebCore 57 } // namespace WebCore
60 58
61 #endif // Request_h 59 #endif // Request_h
OLDNEW
« no previous file with comments | « Source/modules/serviceworkers/Headers.cpp ('k') | Source/modules/serviceworkers/Request.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698