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

Side by Side Diff: third_party/WebKit/public/platform/WebInsecureRequestPolicy.h

Issue 2046523005: Introduce WebInsecureRequestPolicy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698