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 CONTENT_BROWSER_FRAME_HOST_MIXED_CONTENT_NAVIGATION_THROTTLE_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_MIXED_CONTENT_NAVIGATION_THROTTLE_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_MIXED_CONTENT_NAVIGATION_THROTTLE_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_MIXED_CONTENT_NAVIGATION_THROTTLE_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 static std::unique_ptr<NavigationThrottle> CreateThrottleForNavigation( | 39 static std::unique_ptr<NavigationThrottle> CreateThrottleForNavigation( |
40 NavigationHandle* navigation_handle); | 40 NavigationHandle* navigation_handle); |
41 | 41 |
42 MixedContentNavigationThrottle(NavigationHandle* navigation_handle); | 42 MixedContentNavigationThrottle(NavigationHandle* navigation_handle); |
43 ~MixedContentNavigationThrottle() override; | 43 ~MixedContentNavigationThrottle() override; |
44 | 44 |
45 // NavigationThrottle overrides. | 45 // NavigationThrottle overrides. |
46 ThrottleCheckResult WillStartRequest() override; | 46 ThrottleCheckResult WillStartRequest() override; |
47 ThrottleCheckResult WillRedirectRequest() override; | 47 ThrottleCheckResult WillRedirectRequest() override; |
48 ThrottleCheckResult WillProcessResponse() override; | 48 ThrottleCheckResult WillProcessResponse() override; |
| 49 const char* GetNameForLogging() override; |
49 | 50 |
50 private: | 51 private: |
51 FRIEND_TEST_ALL_PREFIXES(MixedContentNavigationThrottleTest, IsMixedContent); | 52 FRIEND_TEST_ALL_PREFIXES(MixedContentNavigationThrottleTest, IsMixedContent); |
52 | 53 |
53 // Copy of mixed content related values from the blink::UseCounter enum that | 54 // Copy of mixed content related values from the blink::UseCounter enum that |
54 // are needed to report feature usage during browser side checks. | 55 // are needed to report feature usage during browser side checks. |
55 enum UseCounterFeature { | 56 enum UseCounterFeature { |
56 MIXED_CONTENT_PRESENT = 609, | 57 MIXED_CONTENT_PRESENT = 609, |
57 MIXED_CONTENT_BLOCKABLE = 610, | 58 MIXED_CONTENT_BLOCKABLE = 610, |
58 MIXED_CONTENT_INTERNAL = 615, | 59 MIXED_CONTENT_INTERNAL = 615, |
(...skipping 29 matching lines...) Expand all Loading... |
88 // values are reported to the respective renderer process after each mixed | 89 // values are reported to the respective renderer process after each mixed |
89 // content check is finished. | 90 // content check is finished. |
90 std::set<int> mixed_content_features_; | 91 std::set<int> mixed_content_features_; |
91 | 92 |
92 DISALLOW_COPY_AND_ASSIGN(MixedContentNavigationThrottle); | 93 DISALLOW_COPY_AND_ASSIGN(MixedContentNavigationThrottle); |
93 }; | 94 }; |
94 | 95 |
95 } // namespace content | 96 } // namespace content |
96 | 97 |
97 #endif // CONTENT_BROWSER_FRAME_HOST_MIXED_CONTENT_NAVIGATION_THROTTLE_H_ | 98 #endif // CONTENT_BROWSER_FRAME_HOST_MIXED_CONTENT_NAVIGATION_THROTTLE_H_ |
OLD | NEW |