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

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

Issue 630403002: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/modules/serviceworkers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
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 FetchRequestData_h 5 #ifndef FetchRequestData_h
6 #define FetchRequestData_h 6 #define FetchRequestData_h
7 7
8 #include "platform/heap/Handle.h" 8 #include "platform/heap/Handle.h"
9 #include "platform/weborigin/KURL.h" 9 #include "platform/weborigin/KURL.h"
10 #include "platform/weborigin/Referrer.h" 10 #include "platform/weborigin/Referrer.h"
11 #include "wtf/PassOwnPtr.h" 11 #include "wtf/PassOwnPtr.h"
12 #include "wtf/PassRefPtr.h" 12 #include "wtf/PassRefPtr.h"
13 #include "wtf/text/AtomicString.h" 13 #include "wtf/text/AtomicString.h"
14 #include "wtf/text/WTFString.h" 14 #include "wtf/text/WTFString.h"
15 15
16 namespace blink { 16 namespace blink {
17 17
18 class BlobDataHandle; 18 class BlobDataHandle;
19 class ExecutionContext; 19 class ExecutionContext;
20 class FetchHeaderList; 20 class FetchHeaderList;
21 struct ResourceLoaderOptions; 21 struct ResourceLoaderOptions;
22 class ResourceRequest; 22 class ResourceRequest;
23 class SecurityOrigin; 23 class SecurityOrigin;
24 struct ThreadableLoaderOptions; 24 struct ThreadableLoaderOptions;
25 class WebServiceWorkerRequest; 25 class WebServiceWorkerRequest;
26 26
27 class FetchRequestData FINAL : public GarbageCollectedFinalized<FetchRequestData > { 27 class FetchRequestData final : public GarbageCollectedFinalized<FetchRequestData > {
28 WTF_MAKE_NONCOPYABLE(FetchRequestData); 28 WTF_MAKE_NONCOPYABLE(FetchRequestData);
29 public: 29 public:
30 enum Mode { SameOriginMode, NoCORSMode, CORSMode, CORSWithForcedPreflight }; 30 enum Mode { SameOriginMode, NoCORSMode, CORSMode, CORSWithForcedPreflight };
31 enum Credentials { OmitCredentials, SameOriginCredentials, IncludeCredential s }; 31 enum Credentials { OmitCredentials, SameOriginCredentials, IncludeCredential s };
32 enum Context { ChildContext, ConnectContext, DownloadContext, FontContext, F ormContext, ImageContext, ManifestContext, MediaContext, NavigateContext, Object Context, PingContext, PopupContext, PrefetchContext, ScriptContext, ServiceWorke rContext, SharedWorkerContext, StyleContext, WorkerContext, NullContext }; 32 enum Context { ChildContext, ConnectContext, DownloadContext, FontContext, F ormContext, ImageContext, ManifestContext, MediaContext, NavigateContext, Object Context, PingContext, PopupContext, PrefetchContext, ScriptContext, ServiceWorke rContext, SharedWorkerContext, StyleContext, WorkerContext, NullContext };
33 enum Tainting { BasicTainting, CORSTainting, OpaqueTainting }; 33 enum Tainting { BasicTainting, CORSTainting, OpaqueTainting };
34 34
35 class Referrer FINAL { 35 class Referrer final {
36 public: 36 public:
37 Referrer() : m_type(ClientReferrer) { } 37 Referrer() : m_type(ClientReferrer) { }
38 bool isNone() const { return m_type == NoneReferrer; } 38 bool isNone() const { return m_type == NoneReferrer; }
39 bool isClient() const { return m_type == ClientReferrer; } 39 bool isClient() const { return m_type == ClientReferrer; }
40 bool isURL() const { return m_type == URLReferrer; } 40 bool isURL() const { return m_type == URLReferrer; }
41 void setNone() 41 void setNone()
42 { 42 {
43 m_referrer = blink::Referrer(); 43 m_referrer = blink::Referrer();
44 m_type = NoneReferrer; 44 m_type = NoneReferrer;
45 } 45 }
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 Credentials m_credentials; 108 Credentials m_credentials;
109 // FIXME: Support m_useURLCredentialsFlag; 109 // FIXME: Support m_useURLCredentialsFlag;
110 // FIXME: Support m_manualRedirectFlag; 110 // FIXME: Support m_manualRedirectFlag;
111 // FIXME: Support m_redirectCount; 111 // FIXME: Support m_redirectCount;
112 Tainting m_responseTainting; 112 Tainting m_responseTainting;
113 }; 113 };
114 114
115 } // namespace blink 115 } // namespace blink
116 116
117 #endif // FetchRequestData_h 117 #endif // FetchRequestData_h
OLDNEW
« no previous file with comments | « Source/modules/serviceworkers/FetchHeaderList.h ('k') | Source/modules/serviceworkers/FetchResponseData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698