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

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

Issue 1315743003: [part 1] Make classes and structures in modules/ fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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/fetch/FetchManager.h ('k') | Source/modules/fetch/GlobalFetch.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 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"
(...skipping 11 matching lines...) Expand all
22 class FetchHeaderList; 22 class FetchHeaderList;
23 class SecurityOrigin; 23 class SecurityOrigin;
24 class WebServiceWorkerRequest; 24 class WebServiceWorkerRequest;
25 25
26 class FetchRequestData final : public GarbageCollectedFinalized<FetchRequestData > { 26 class FetchRequestData final : public GarbageCollectedFinalized<FetchRequestData > {
27 WTF_MAKE_NONCOPYABLE(FetchRequestData); 27 WTF_MAKE_NONCOPYABLE(FetchRequestData);
28 public: 28 public:
29 enum Tainting { BasicTainting, CORSTainting, OpaqueTainting }; 29 enum Tainting { BasicTainting, CORSTainting, OpaqueTainting };
30 30
31 class Referrer final { 31 class Referrer final {
32 DISALLOW_ALLOCATION();
32 public: 33 public:
33 Referrer() : m_type(ClientReferrer) { } 34 Referrer() : m_type(ClientReferrer) { }
34 bool isNoReferrer() const { return m_type == NoReferrer; } 35 bool isNoReferrer() const { return m_type == NoReferrer; }
35 bool isClient() const { return m_type == ClientReferrer; } 36 bool isClient() const { return m_type == ClientReferrer; }
36 bool isURL() const { return m_type == URLReferrer; } 37 bool isURL() const { return m_type == URLReferrer; }
37 void setNoReferrer() 38 void setNoReferrer()
38 { 39 {
39 m_referrer = blink::Referrer(); 40 m_referrer = blink::Referrer();
40 m_type = NoReferrer; 41 m_type = NoReferrer;
41 } 42 }
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 // FIXME: Support m_redirectCount; 122 // FIXME: Support m_redirectCount;
122 Tainting m_responseTainting; 123 Tainting m_responseTainting;
123 Member<BodyStreamBuffer> m_buffer; 124 Member<BodyStreamBuffer> m_buffer;
124 String m_mimeType; 125 String m_mimeType;
125 String m_integrity; 126 String m_integrity;
126 }; 127 };
127 128
128 } // namespace blink 129 } // namespace blink
129 130
130 #endif // FetchRequestData_h 131 #endif // FetchRequestData_h
OLDNEW
« no previous file with comments | « Source/modules/fetch/FetchManager.h ('k') | Source/modules/fetch/GlobalFetch.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698