| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |