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

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

Issue 461163002: Cleanup namespace usage in Source/core/modules/[mediasource/* to websockets/*] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
« no previous file with comments | « Source/modules/serviceworkers/CacheStorage.h ('k') | Source/modules/serviceworkers/Response.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 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"
11 #include "modules/serviceworkers/Headers.h" 11 #include "modules/serviceworkers/Headers.h"
12 #include "platform/heap/Handle.h" 12 #include "platform/heap/Handle.h"
13 #include "platform/weborigin/KURL.h" 13 #include "platform/weborigin/KURL.h"
14 #include "wtf/RefCounted.h" 14 #include "wtf/RefCounted.h"
15 #include "wtf/RefPtr.h" 15 #include "wtf/RefPtr.h"
16 #include "wtf/text/WTFString.h" 16 #include "wtf/text/WTFString.h"
17 17
18 namespace blink { class WebServiceWorkerRequest; }
19
20 namespace blink { 18 namespace blink {
21 19
22 class RequestInit; 20 class RequestInit;
23 class ResourceRequest; 21 class ResourceRequest;
24 struct ResourceLoaderOptions; 22 struct ResourceLoaderOptions;
25 struct ThreadableLoaderOptions; 23 struct ThreadableLoaderOptions;
24 class WebServiceWorkerRequest;
26 25
27 class Request FINAL : public RefCountedWillBeGarbageCollected<Request>, public S criptWrappable { 26 class Request FINAL : public RefCountedWillBeGarbageCollected<Request>, public S criptWrappable {
28 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(Request); 27 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(Request);
29 public: 28 public:
30 static PassRefPtrWillBeRawPtr<Request> create(ExecutionContext*, const Strin g&, ExceptionState&); 29 static PassRefPtrWillBeRawPtr<Request> create(ExecutionContext*, const Strin g&, ExceptionState&);
31 static PassRefPtrWillBeRawPtr<Request> create(ExecutionContext*, const Strin g&, const Dictionary&, ExceptionState&); 30 static PassRefPtrWillBeRawPtr<Request> create(ExecutionContext*, const Strin g&, const Dictionary&, ExceptionState&);
32 static PassRefPtrWillBeRawPtr<Request> create(ExecutionContext*, Request*, E xceptionState&); 31 static PassRefPtrWillBeRawPtr<Request> create(ExecutionContext*, Request*, E xceptionState&);
33 static PassRefPtrWillBeRawPtr<Request> create(ExecutionContext*, Request*, c onst Dictionary&, ExceptionState&); 32 static PassRefPtrWillBeRawPtr<Request> create(ExecutionContext*, Request*, c onst Dictionary&, ExceptionState&);
34 33
35 static PassRefPtrWillBeRawPtr<Request> create(PassRefPtrWillBeRawPtr<FetchRe questData>); 34 static PassRefPtrWillBeRawPtr<Request> create(PassRefPtrWillBeRawPtr<FetchRe questData>);
36 35
37 static PassRefPtrWillBeRawPtr<Request> create(const blink::WebServiceWorkerR equest&); 36 static PassRefPtrWillBeRawPtr<Request> create(const WebServiceWorkerRequest& );
38 37
39 PassRefPtrWillBeRawPtr<FetchRequestData> request() { return m_request; } 38 PassRefPtrWillBeRawPtr<FetchRequestData> request() { return m_request; }
40 39
41 String method() const; 40 String method() const;
42 String url() const; 41 String url() const;
43 PassRefPtrWillBeRawPtr<Headers> headers() const { return m_headers; } 42 PassRefPtrWillBeRawPtr<Headers> headers() const { return m_headers; }
44 // FIXME: Support body. 43 // FIXME: Support body.
45 String referrer() const; 44 String referrer() const;
46 String mode() const; 45 String mode() const;
47 String credentials() const; 46 String credentials() const;
48 47
49 void trace(Visitor*); 48 void trace(Visitor*);
50 49
51 private: 50 private:
52 explicit Request(PassRefPtrWillBeRawPtr<FetchRequestData>); 51 explicit Request(PassRefPtrWillBeRawPtr<FetchRequestData>);
53 explicit Request(const blink::WebServiceWorkerRequest&); 52 explicit Request(const WebServiceWorkerRequest&);
54 53
55 RefPtrWillBeMember<FetchRequestData> m_request; 54 RefPtrWillBeMember<FetchRequestData> m_request;
56 RefPtrWillBeMember<Headers> m_headers; 55 RefPtrWillBeMember<Headers> m_headers;
57 }; 56 };
58 57
59 } // namespace blink 58 } // namespace blink
60 59
61 #endif // Request_h 60 #endif // Request_h
OLDNEW
« no previous file with comments | « Source/modules/serviceworkers/CacheStorage.h ('k') | Source/modules/serviceworkers/Response.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698