Hiroshige Hayashizaki | b3ff61d | 2025-08-12 06:28:08 | [diff] [blame] | 1 | // Copyright 2025 The Chromium Authors |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #include "content/browser/preloading/prefetch/prefetch_servable_state.h" |
| 6 | |
| 7 | namespace content { |
| 8 | |
| 9 | CONTENT_EXPORT std::ostream& operator<<(std::ostream& ostream, |
| 10 | PrefetchServableState servable_state) { |
| 11 | switch (servable_state) { |
| 12 | case PrefetchServableState::kNotServable: |
| 13 | return ostream << "NotServable"; |
| 14 | case PrefetchServableState::kServable: |
| 15 | return ostream << "Servable"; |
| 16 | case PrefetchServableState::kShouldBlockUntilHeadReceived: |
| 17 | return ostream << "ShouldBlockUntilHeadReceived"; |
| 18 | case PrefetchServableState::kShouldBlockUntilEligibilityGot: |
| 19 | return ostream << "ShouldBlockUntilEligibilityGot"; |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | } // namespace content |