| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 FetchAPIRequestStructTraits_h | 5 #ifndef FetchAPIRequestStructTraits_h |
| 6 #define FetchAPIRequestStructTraits_h | 6 #define FetchAPIRequestStructTraits_h |
| 7 | 7 |
| 8 #include "platform/wtf/text/WTFString.h" |
| 8 #include "public/platform/WebURLRequest.h" | 9 #include "public/platform/WebURLRequest.h" |
| 9 #include "public/platform/modules/fetch/fetch_api_request.mojom-blink.h" | 10 #include "public/platform/modules/fetch/fetch_api_request.mojom-blink.h" |
| 10 #include "wtf/text/WTFString.h" | |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 class KURL; | 13 class KURL; |
| 14 } | 14 } |
| 15 | 15 |
| 16 namespace mojo { | 16 namespace mojo { |
| 17 | 17 |
| 18 template <> | 18 template <> |
| 19 struct EnumTraits<blink::mojom::FetchCredentialsMode, | 19 struct EnumTraits<blink::mojom::FetchCredentialsMode, |
| 20 blink::WebURLRequest::FetchCredentialsMode> { | 20 blink::WebURLRequest::FetchCredentialsMode> { |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 return blink::mojom::blink::ServiceWorkerFetchType::FETCH; | 128 return blink::mojom::blink::ServiceWorkerFetchType::FETCH; |
| 129 } | 129 } |
| 130 | 130 |
| 131 static bool Read(blink::mojom::FetchAPIRequestDataView, | 131 static bool Read(blink::mojom::FetchAPIRequestDataView, |
| 132 blink::WebServiceWorkerRequest* output); | 132 blink::WebServiceWorkerRequest* output); |
| 133 }; | 133 }; |
| 134 | 134 |
| 135 } // namespace mojo | 135 } // namespace mojo |
| 136 | 136 |
| 137 #endif // FetchAPIRequestStructTraits_h | 137 #endif // FetchAPIRequestStructTraits_h |
| OLD | NEW |