| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef WebInsecureRequestPolicy_h |
| 6 #define WebInsecureRequestPolicy_h |
| 7 |
| 8 namespace blink { |
| 9 |
| 10 // TODO(mkwst): In an ideal world, the combined state would be the same as |
| 11 // "Upgrade". Once we're consistently upgrading all requests, we can replace |
| 12 // this bitfield-style representation with an enum. Until then, we need to |
| 13 // ensure that all relevant flags are set. https://crbug.com/617584 |
| 14 using WebInsecureRequestPolicy = uint8_t; |
| 15 const WebInsecureRequestPolicy kLeaveInsecureRequestsAlone = 0; |
| 16 const WebInsecureRequestPolicy kUpgradeInsecureRequests = 1 << 0; |
| 17 const WebInsecureRequestPolicy kBlockAllMixedContent = 1 << 1; |
| 18 |
| 19 } // namespace blink |
| 20 |
| 21 #endif // WebInsecureRequestPolicy_h |
| OLD | NEW |